(t *testing.T)
| 13 | ) |
| 14 | |
| 15 | func TestNewMetaFile(t *testing.T) { |
| 16 | mFile, err := bfs.OpenMetaFile("testdata/test.m", &sync.RWMutex{}) |
| 17 | if err != nil { |
| 18 | t.Fatal(err) |
| 19 | } |
| 20 | defer func() { |
| 21 | _ = mFile.Close() |
| 22 | }() |
| 23 | |
| 24 | var header, _ = mFile.FileHeader(bfs.Hash("123456")) |
| 25 | logs.PrintAsJSON(header, t) |
| 26 | //logs.PrintAsJSON(mFile.Headers(), t) |
| 27 | } |
| 28 | |
| 29 | func TestNewMetaFile_Large(t *testing.T) { |
| 30 | var count = 2 |
nothing calls this directly
no test coverage detected