Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
lint:
runs-on: ubuntu-latest
env:
GOLANGCI_LINT_VERSION: v2.11.3
GOLANGCI_LINT_VERSION: v2.15.0

steps:
- name: Checkout code
Expand All @@ -33,7 +33,7 @@ jobs:
test:
strategy:
matrix:
go-version: [ "1.25", "1.26" ]
go-version: [ "1.26", "1.27" ]
runs-on: ubuntu-latest
env:
GOTESTSUM_VERSION: v1.13.0
Expand Down
7 changes: 6 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ formatters:
- goimports
settings:
gofumpt:
extra-rules: true
extra:
group-params: true
clothe-returns: true
balance-calls: true
gci:
sections:
- standard
Expand All @@ -25,9 +28,11 @@ linters:
- err113
- exhaustive
- exhaustruct
- exhaustruct_v5
- funcorder
- funlen
- gochecknoglobals
- gomodguard
- mnd
- nlreturn
- noinlineerr
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hamba/testutils

go 1.25.13
go 1.26.9

require (
github.com/ryanuber/go-glob v1.0.0
Expand Down
20 changes: 10 additions & 10 deletions retry/rety_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,36 @@ func TestT(t *testing.T) {
},
{
name: "Logf",
fn: func(t *SubT) { t.Logf("%s", "test") },
wantLog: []string{"test"},
fn: func(t *SubT) { t.Logf("%s", "test1") },
wantLog: []string{"test1"},
wantFailed: false,
wantExit: false,
},
{
name: "Error",
fn: func(t *SubT) { t.Error("test") },
wantLog: []string{"test"},
fn: func(t *SubT) { t.Error("test2") },
wantLog: []string{"test2"},
wantFailed: true,
wantExit: false,
},
{
name: "Errorf",
fn: func(t *SubT) { t.Errorf("%s", "test") },
wantLog: []string{"test"},
fn: func(t *SubT) { t.Errorf("%s", "test3") },
wantLog: []string{"test3"},
wantFailed: true,
wantExit: false,
},
{
name: "Fatal",
fn: func(t *SubT) { t.Fatal("test") },
wantLog: []string{"test"},
fn: func(t *SubT) { t.Fatal("test4") },
wantLog: []string{"test4"},
wantFailed: true,
wantExit: true,
},
{
name: "Fatalf",
fn: func(t *SubT) { t.Fatalf("%s", "test") },
wantLog: []string{"test"},
fn: func(t *SubT) { t.Fatalf("%s", "test5") },
wantLog: []string{"test5"},
wantFailed: true,
wantExit: true,
},
Expand Down
Loading