MCPcopy Index your code
hub / github.com/Workiva/go-datastructures / TestGetCompressedBit

Function TestGetCompressedBit

bitarray/sparse_bitarray_test.go:26–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24)
25
26func TestGetCompressedBit(t *testing.T) {
27 ba := newSparseBitArray()
28
29 result, err := ba.GetBit(5)
30 assert.Nil(t, err)
31 assert.False(t, result)
32}
33
34func BenchmarkGetCompressedBit(b *testing.B) {
35 numItems := 1000

Callers

nothing calls this directly

Calls 2

newSparseBitArrayFunction · 0.85
GetBitMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…