MCPcopy Index your code
hub / github.com/RoaringBitmap/roaring / TestSerializationReadRunsFromFile039

Function TestSerializationReadRunsFromFile039

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

Source from the content-addressed store, hash-verified

96}
97
98func TestSerializationReadRunsFromFile039(t *testing.T) {
99 fn := "testdata/bitmapwithruns.bin"
100
101 by, err := os.ReadFile(fn)
102 if err != nil {
103 fmt.Fprintf(os.Stderr, "\n\nIMPORTANT: For testing file IO, the roaring library requires disk access.\nWe omit some tests for now.\n\n")
104 return
105 }
106
107 newrb := NewBitmap()
108 _, err = newrb.ReadFrom(bytes.NewBuffer(by))
109
110 require.NoError(t, err)
111}
112
113func TestSerializationBasic4WriteAndReadFile040(t *testing.T) {
114 fname := "testdata/all3.classic"

Callers

nothing calls this directly

Calls 2

ReadFromMethod · 0.95
NewBitmapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…