Skip to content

Commit 0b05bfd

Browse files
committed
update to range over int
1 parent dd55b93 commit 0b05bfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/bitfield/gotestdox
22

3-
go 1.18
3+
go 1.22
44

55
require (
66
github.com/fatih/color v1.15.0

prettifier_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestPrettify(t *testing.T) {
2222

2323
func BenchmarkPrettify(b *testing.B) {
2424
input := "TestParseJSON_CorrectlyParsesASingleGoTestJSONOutputLine"
25-
for i := 0; i < b.N; i++ {
25+
for range b.N {
2626
_ = gotestdox.Prettify(input)
2727
}
2828
}

0 commit comments

Comments
 (0)