(b *testing.B)
| 54 | } |
| 55 | |
| 56 | func BenchmarkBinary(b *testing.B) { |
| 57 | testCase := generateBenchmarkTestCase() |
| 58 | b.ResetTimer() // this is important because the generateBenchmarkTestCase() is expensive |
| 59 | for i := 0; i < b.N; i++ { |
| 60 | _, _ = Binary(testCase, i, 0, len(testCase)-1) |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | func BenchmarkBinaryIterative(b *testing.B) { |
| 65 | testCase := generateBenchmarkTestCase() |
nothing calls this directly
no test coverage detected