(b *testing.B)
| 62 | } |
| 63 | |
| 64 | func BenchmarkBinaryIterative(b *testing.B) { |
| 65 | testCase := generateBenchmarkTestCase() |
| 66 | b.ResetTimer() // this is important because the generateBenchmarkTestCase() is expensive |
| 67 | for i := 0; i < b.N; i++ { |
| 68 | _, _ = BinaryIterative(testCase, i) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | func BenchmarkLowerBound(b *testing.B) { |
| 73 | testCase := generateBenchmarkTestCase() |
nothing calls this directly
no test coverage detected