Skip to content

Commit

Permalink
fix: unused-parameter t (warning from revive)
Browse files Browse the repository at this point in the history
  • Loading branch information
KEINOS committed Apr 20, 2024
1 parent ab291c0 commit c08f94e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tokenizer/lattice/mem/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ func FuzzPool(f *testing.F) {
f.Add("this is a test with a long string")
f.Add("これは、いささか長いテスト用の文字列です。")

f.Fuzz(func(t *testing.T, s string) {
a := bufPool.Get()
a.Bar += s
bufPool.Put(a)
f.Fuzz(func(_ *testing.T, s string) {
a := bufPool.Get() // get
a.Bar += s // append
bufPool.Put(a) // put
})
}

0 comments on commit c08f94e

Please sign in to comment.