summaryrefslogtreecommitdiffstats
path: root/filter_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'filter_test.go')
-rw-r--r--filter_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/filter_test.go b/filter_test.go
index 4c4ce65..70f5aa3 100644
--- a/filter_test.go
+++ b/filter_test.go
@@ -54,10 +54,10 @@ func BenchmarkFilterCompile(b *testing.B) {
filters[idx] = i.filterStr
}
- max_idx := len(filters)
+ maxIdx := len(filters)
b.StartTimer()
for i := 0; i < b.N; i++ {
- CompileFilter(filters[i%max_idx])
+ CompileFilter(filters[i%maxIdx])
}
}
@@ -70,9 +70,9 @@ func BenchmarkFilterDecompile(b *testing.B) {
filters[idx], _ = CompileFilter(i.filterStr)
}
- max_idx := len(filters)
+ maxIdx := len(filters)
b.StartTimer()
for i := 0; i < b.N; i++ {
- DecompileFilter(filters[i%max_idx])
+ DecompileFilter(filters[i%maxIdx])
}
}