(t *testing.T)
| 525 | } |
| 526 | |
| 527 | func TestBitArrayToNums(t *testing.T) { |
| 528 | ba := newBitArray(s * 2) |
| 529 | |
| 530 | ba.SetBit(s - 1) |
| 531 | ba.SetBit(s + 1) |
| 532 | |
| 533 | expected := []uint64{s - 1, s + 1} |
| 534 | |
| 535 | result := ba.ToNums() |
| 536 | |
| 537 | assert.Equal(t, expected, result) |
| 538 | } |
| 539 | |
| 540 | func BenchmarkBitArrayToNums(b *testing.B) { |
| 541 | numItems := uint64(1000) |
nothing calls this directly
no test coverage detected
searching dependent graphs…