diff options
author | Luke Shumaker <lukeshu@datawire.io> | 2022-08-16 21:12:43 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@datawire.io> | 2022-08-16 21:12:43 -0600 |
commit | 92fb9209ca44f758e4da893756c48c2bc05615a5 (patch) | |
tree | 48075c4bfe964e05fadc83db72d1a8f71fb4a9c9 /compat/json/borrowed_encode_test.go | |
parent | f60e90677ad8cb84662749fe123b834492a06934 (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.go | 4 |
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") } |