(t *testing.T)
| 170 | } |
| 171 | |
| 172 | func TestMetaFile_Compact(t *testing.T) { |
| 173 | mFile, err := bfs.OpenMetaFile("testdata/test.m", &sync.RWMutex{}) |
| 174 | if err != nil { |
| 175 | t.Fatal(err) |
| 176 | } |
| 177 | defer func() { |
| 178 | _ = mFile.Close() |
| 179 | }() |
| 180 | |
| 181 | err = mFile.Compact() |
| 182 | if err != nil { |
| 183 | t.Fatal(err) |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | func TestMetaFile_RemoveAll(t *testing.T) { |
| 188 | mFile, err := bfs.OpenMetaFile("testdata/test.m", &sync.RWMutex{}) |
nothing calls this directly
no test coverage detected