From 4e3f3713c8f6debc9a2844af538094968142a714 Mon Sep 17 00:00:00 2001 From: Samuel Stauffer Date: Wed, 19 Mar 2014 14:05:10 -0700 Subject: Some more cleanup --- filter_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'filter_test.go') 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]) } } -- cgit v1.2.3