1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-05 18:41:01 +00:00

refactor(tests): use b.Loop() instead of for range b.N

See https://tip.golang.org/doc/go1.24#new-benchmark-function
This commit is contained in:
jvoisin 2025-06-18 16:11:32 +02:00
parent 59e464ca66
commit bbcea7392a
3 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ func BenchmarkSanitize(b *testing.B) {
}
testCases[filename][1] = string(data)
}
for range b.N {
for b.Loop() {
for _, v := range testCases {
SanitizeHTMLWithDefaultOptions(v[0], v[1])
}