Skip to content

Commit

Permalink
Fix thelper lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bodgit committed Apr 30, 2022
1 parent 8866195 commit 9574cbb
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ func ExampleOpenReader() {
// 10
}

func benchmarkArchive(file string, b *testing.B) {
func benchmarkArchive(b *testing.B, file string) {
b.Helper()

h := crc32.NewIEEE()

for n := 0; n < b.N; n++ {
Expand Down Expand Up @@ -121,29 +123,29 @@ func benchmarkArchive(file string, b *testing.B) {
}

func BenchmarkBzip2(b *testing.B) {
benchmarkArchive("bzip2.7z", b)
benchmarkArchive(b, "bzip2.7z")
}

func BenchmarkCopy(b *testing.B) {
benchmarkArchive("copy.7z", b)
benchmarkArchive(b, "copy.7z")
}

func BenchmarkDeflate(b *testing.B) {
benchmarkArchive("deflate.7z", b)
benchmarkArchive(b, "deflate.7z")
}

func BenchmarkDelta(b *testing.B) {
benchmarkArchive("delta.7z", b)
benchmarkArchive(b, "delta.7z")
}

func BenchmarkLZMA(b *testing.B) {
benchmarkArchive("lzma.7z", b)
benchmarkArchive(b, "lzma.7z")
}

func BenchmarkLZMA2(b *testing.B) {
benchmarkArchive("lzma2.7z", b)
benchmarkArchive(b, "lzma2.7z")
}

func BenchmarkBCJ2(b *testing.B) {
benchmarkArchive("bcj2.7z", b)
benchmarkArchive(b, "bcj2.7z")
}

0 comments on commit 9574cbb

Please sign in to comment.