mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 14:43:05 -03:00
address review feedback
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
@ -119,7 +119,10 @@ func BenchmarkTokenizer_BaselineCopy(b *testing.B) {
|
||||
b.ReportAllocs()
|
||||
for i := 0; i < b.N; i++ {
|
||||
for _, test := range Tests {
|
||||
test.content = append([]byte(nil), test.content...)
|
||||
if len(test.content) > ByteLimit {
|
||||
test.content = test.content[:ByteLimit]
|
||||
}
|
||||
_ = append([]byte(nil), test.content...)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user