(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func TestMetaFile_FileHeaders(t *testing.T) { |
| 80 | mFile, openErr := bfs.OpenMetaFile("testdata/test2.m", &sync.RWMutex{}) |
| 81 | if openErr != nil { |
| 82 | if bfs.IsNotExist(openErr) { |
| 83 | return |
| 84 | } |
| 85 | t.Fatal(openErr) |
| 86 | } |
| 87 | _ = mFile.Close() |
| 88 | for hash, lazyHeader := range mFile.FileHeaders() { |
| 89 | header, err := lazyHeader.FileHeaderUnsafe() |
| 90 | if err != nil { |
| 91 | t.Fatal(err) |
| 92 | } |
| 93 | t.Log(hash, header.ModifiedAt, header.BodySize) |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | func TestMetaFile_WriteMeta(t *testing.T) { |
| 98 | mFile, err := bfs.OpenMetaFile("testdata/test.m", &sync.RWMutex{}) |
nothing calls this directly
no test coverage detected