(t *testing.T)
| 352 | } |
| 353 | |
| 354 | func TestSparseBitArrayToNums(t *testing.T) { |
| 355 | sba := newSparseBitArray() |
| 356 | |
| 357 | sba.SetBit(s - 1) |
| 358 | sba.SetBit(s + 1) |
| 359 | |
| 360 | expected := []uint64{s - 1, s + 1} |
| 361 | |
| 362 | results := sba.ToNums() |
| 363 | assert.Equal(t, expected, results) |
| 364 | } |
| 365 | |
| 366 | func BenchmarkSparseBitArrayToNums(b *testing.B) { |
| 367 | numItems := uint64(1000) |
nothing calls this directly
no test coverage detected
searching dependent graphs…