MCPcopy Create free account
hub / github.com/RoaringBitmap/roaring / TestBase64_036

Function TestBase64_036

roaring64/serialization_test.go:52–64  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

50}
51
52func TestBase64_036(t *testing.T) {
53 rb := BitmapOf(1, 2, 3, 4, 5, 100, 1000)
54
55 bstr, _ := rb.ToBase64()
56 assert.NotEmpty(t, bstr)
57
58 newrb := NewBitmap()
59
60 _, err := newrb.FromBase64(bstr)
61
62 require.NoError(t, err)
63 assert.True(t, rb.Equals(newrb))
64}
65
66func TestSerializationBasic037(t *testing.T) {
67 rb := BitmapOf(1, 2, 3, 4, 5, 100, 1000)

Callers

nothing calls this directly

Calls 5

FromBase64Method · 0.95
BitmapOfFunction · 0.70
NewBitmapFunction · 0.70
ToBase64Method · 0.45
EqualsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…