verifySuperset verifies that every element in 'a' is also found in 'b'. Both sets are sorted and unique.
(a, b []int)
| 486 | // verifySuperset verifies that every element in 'a' is also found in 'b'. |
| 487 | // Both sets are sorted and unique. |
| 488 | func verifySuperset(a, b []int) error { |
| 489 | nextB := 0 |
| 490 | |
| 491 | for _, it := range a { |
| 492 | for nextB < len(b) && b[nextB] < it { |
| 493 | nextB++ |
| 494 | } |
| 495 | |
| 496 | if nextB >= len(b) || b[nextB] != it { |
| 497 | return errors.Errorf("%v not found", it) |
| 498 | } |
| 499 | } |
| 500 | |
| 501 | return nil |
| 502 | } |
| 503 | |
| 504 | func TestIndexEpochManager_RogueBlobs(t *testing.T) { |
| 505 | t.Parallel() |
no test coverage detected