| 96 | } |
| 97 | |
| 98 | func 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 | |
| 113 | func TestSerializationBasic4WriteAndReadFile040(t *testing.T) { |
| 114 | fname := "testdata/all3.classic" |