(b *testing.B)
| 333 | } |
| 334 | |
| 335 | func BenchmarkEqualRowNumber(b *testing.B) { |
| 336 | r1 := RowNumber{1, 2, 3, 4, 5, 6, 7, 8} |
| 337 | r2 := RowNumber{1, 2, 3, 5, 7, 9, 11, 13} |
| 338 | |
| 339 | for d := 0; d <= MaxDefinitionLevel; d++ { |
| 340 | b.Run(strconv.Itoa(d), func(b *testing.B) { |
| 341 | for i := 0; i < b.N; i++ { |
| 342 | EqualRowNumber(d, r1, r2) |
| 343 | } |
| 344 | }) |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | func assertPanic(t *testing.T, f func()) { |
| 349 | defer func() { |
nothing calls this directly
no test coverage detected