summaryrefslogtreecommitdiffstats
path: root/filter_test.go
diff options
context:
space:
mode:
authorSamuel Stauffer <samuel@descolada.com>2014-03-19 22:05:10 +0100
committerSamuel Stauffer <samuel@descolada.com>2014-03-19 22:05:10 +0100
commit4e3f3713c8f6debc9a2844af538094968142a714 (patch)
tree0c479514925aabf0bf8776b7756d8a7204820aec /filter_test.go
parentStylistic fixes, update imports, and some format string fixes (diff)
downloadldap-4e3f3713c8f6debc9a2844af538094968142a714.tar
ldap-4e3f3713c8f6debc9a2844af538094968142a714.tar.gz
ldap-4e3f3713c8f6debc9a2844af538094968142a714.tar.bz2
ldap-4e3f3713c8f6debc9a2844af538094968142a714.tar.lz
ldap-4e3f3713c8f6debc9a2844af538094968142a714.tar.xz
ldap-4e3f3713c8f6debc9a2844af538094968142a714.tar.zst
ldap-4e3f3713c8f6debc9a2844af538094968142a714.zip
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])
}
}