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

Function BenchmarkEquality

bitarray/bitarray_test.go:290–299  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

288}
289
290func BenchmarkEquality(b *testing.B) {
291 ba := newBitArray(160000)
292 other := newBitArray(ba.Capacity())
293
294 b.ResetTimer()
295
296 for i := 0; i < b.N; i++ {
297 ba.Equals(other)
298 }
299}
300
301func TestIntersects(t *testing.T) {
302 ba := newBitArray(10)

Callers

nothing calls this directly

Calls 3

newBitArrayFunction · 0.85
CapacityMethod · 0.65
EqualsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…