summaryrefslogtreecommitdiff
path: root/compat/json/borrowed_encode_test.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2022-08-16 21:12:43 -0600
committerLuke Shumaker <lukeshu@datawire.io>2022-08-16 21:12:43 -0600
commit92fb9209ca44f758e4da893756c48c2bc05615a5 (patch)
tree48075c4bfe964e05fadc83db72d1a8f71fb4a9c9 /compat/json/borrowed_encode_test.go
parentf60e90677ad8cb84662749fe123b834492a06934 (diff)
Indicate why each of the lines in borrowed files were MODIFIED
Diffstat (limited to 'compat/json/borrowed_encode_test.go')
-rw-r--r--compat/json/borrowed_encode_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/json/borrowed_encode_test.go b/compat/json/borrowed_encode_test.go
index 11c2db4..c193e1c 100644
--- a/compat/json/borrowed_encode_test.go
+++ b/compat/json/borrowed_encode_test.go
@@ -25,7 +25,7 @@ type Optionals struct {
Ir int `json:"omitempty"` // actually named omitempty, not an option
Io int `json:"io,omitempty"`
- Slr []string `json:"slr,random"` //nolint:staticcheck // testing handling of unknown options // MODIFIED
+ Slr []string `json:"slr,random"` //nolint:staticcheck // testing handling of unknown options // MODIFIED: added nolint annotation
Slo []string `json:"slo,omitempty"`
Mr map[string]any `json:"mr"`
@@ -1156,7 +1156,7 @@ func TestMarshalPanic(t *testing.T) {
t.Errorf("panic() = (%T)(%v), want 0xdead", got, got)
}
}()
- _, _ = Marshal(&marshalPanic{}) // MODIFIED
+ _, _ = Marshal(&marshalPanic{}) // MODIFIED: added _, _ dogsled for the linter
t.Error("Marshal should have panicked")
}