MCPcopy
hub / github.com/RoaringBitmap/roaring / TestBase64_036

Function TestBase64_036

serialization_test.go:35–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestBase64_036(t *testing.T) {
36 rb := BitmapOf(1, 2, 3, 4, 5, 100, 1000)
37
38 bstr, _ := rb.ToBase64()
39 assert.NotEmpty(t, bstr)
40
41 newrb := NewBitmap()
42
43 _, err := newrb.FromBase64(bstr)
44
45 require.NoError(t, err)
46 assert.True(t, rb.Equals(newrb))
47}
48
49func TestSerializationBasic037(t *testing.T) {
50 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…