(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestBlocksFile_RemoveAll(t *testing.T) { |
| 71 | bFile, err := bfs.OpenBlocksFile("testdata/test.b", bfs.DefaultBlockFileOptions) |
| 72 | if err != nil { |
| 73 | if os.IsNotExist(err) { |
| 74 | return |
| 75 | } |
| 76 | t.Fatal(err) |
| 77 | } |
| 78 | defer func() { |
| 79 | _ = bFile.Close() |
| 80 | }() |
| 81 | |
| 82 | err = bFile.RemoveAll() |
| 83 | if err != nil { |
| 84 | t.Fatal(err) |
| 85 | } |
| 86 | } |
nothing calls this directly
no test coverage detected