Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/importinpututil/spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func TestSpec_PublicAPI_FormatResolvedValue_MarshalFailure(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
s, ok := importinpututil.FormatResolvedValue(tt.value)
assert.False(t, ok, "FormatResolvedValue should return ok=false when JSON marshalling fails: %s", tt.name)
assert.Equal(t, "", s, "FormatResolvedValue should return empty string when JSON marshalling fails: %s", tt.name)
assert.Empty(t, s, "FormatResolvedValue should return empty string when JSON marshalling fails: %s", tt.name)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/tdd] The assert.Empty substitution is the correct testifylint-preferred idiom — assert.Empty(t, s) is semantically equivalent to assert.Equal(t, "", s) but more expressive and consistent with the assertion library's vocabulary.

One broader note: the PR description lists this as one of three changes, alongside schema additions and a regression test. However, those schema changes and the regression test were already present on the base commit (2a7fd2b) — so this lint fix is the only new change introduced by this PR. Worth updating the PR title and description to reflect the narrower scope.

})
}
}
Expand Down
Loading