(b *testing.B)
| 31 | } |
| 32 | |
| 33 | func BenchmarkSelectK(b *testing.B) { |
| 34 | testCase := generateBenchmarkTestCase() |
| 35 | testCase = append(testCase, 1) // make sure len(testCase)/2+1 is valid |
| 36 | b.ResetTimer() |
| 37 | |
| 38 | for i := 0; i < b.N; i++ { |
| 39 | _, _ = SelectK(testCase, len(testCase)/2) |
| 40 | } |
| 41 | } |
nothing calls this directly
no test coverage detected