diff options
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") } |