From 623a7d5952b77a76f4bf122f3e057fd2249bc99d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Apr 2025 22:47:59 +0000 Subject: deps(actions): Bump golangci/golangci-lint-action from 6 to 7 (#2357) * deps(actions): Bump golangci/golangci-lint-action from 6 to 7 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v7) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * fix(lint): Fixing new lint errors Signed-off-by: Dave Henderson --------- Signed-off-by: dependabot[bot] Signed-off-by: Dave Henderson Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dave Henderson --- strings/strings_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'strings') diff --git a/strings/strings_test.go b/strings/strings_test.go index 9c3afa8d..df4d7ac6 100644 --- a/strings/strings_test.go +++ b/strings/strings_test.go @@ -60,8 +60,8 @@ func BenchmarkIndent(b *testing.B) { } func TestTrunc(t *testing.T) { - assert.Equal(t, "", Trunc(5, "")) - assert.Equal(t, "", Trunc(0, "hello, world")) + assert.Empty(t, Trunc(5, "")) + assert.Empty(t, Trunc(0, "hello, world")) assert.Equal(t, "hello", Trunc(5, "hello, world")) assert.Equal(t, "hello, world", Trunc(12, "hello, world")) assert.Equal(t, "hello, world", Trunc(42, "hello, world")) @@ -78,15 +78,15 @@ func TestShellQuote(t *testing.T) { func TestSort(t *testing.T) { in := []string{} expected := []string{} - assert.EqualValues(t, expected, Sort(in)) + assert.Equal(t, expected, Sort(in)) in = []string{"c", "a", "b"} expected = []string{"a", "b", "c"} - assert.EqualValues(t, expected, Sort(in)) + assert.Equal(t, expected, Sort(in)) in = []string{"42", "45", "18"} expected = []string{"18", "42", "45"} - assert.EqualValues(t, expected, Sort(in)) + assert.Equal(t, expected, Sort(in)) } func TestCaseFuncs(t *testing.T) { @@ -176,5 +176,5 @@ func TestSkipLines(t *testing.T) { out, err = SkipLines(4, "foo\nbar\n\nbaz") require.NoError(t, err) - assert.Equal(t, "", out) + assert.Empty(t, out) } -- cgit v1.2.3