(b *testing.B)
| 490 | } |
| 491 | |
| 492 | func BenchmarkUnrollInReverseBool(b *testing.B) { |
| 493 | for api, testsize := range testSizes { |
| 494 | b.Run(testsize.Name, func(b *testing.B) { |
| 495 | verify := verifyIndex[api] |
| 496 | ap := testsize.AP |
| 497 | b.SetBytes(int64(ap.TotalSize())) |
| 498 | for i := 0; i < b.N; i++ { |
| 499 | it := unrollinreversebool.NewIterator(ap) |
| 500 | total := 0 |
| 501 | for index, done := it.Next(); !done; index, done = it.Next() { |
| 502 | total += verify[index] * index |
| 503 | } |
| 504 | _ = total |
| 505 | } |
| 506 | }) |
| 507 | } |
| 508 | } |
| 509 | |
| 510 | // special |
| 511 | // func TestUnrollInReverseHardcode(t *testing.T) { |
nothing calls this directly
no test coverage detected