MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestNewMetaFile

Function TestNewMetaFile

internal/utils/bfs/meta_file_test.go:15–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func 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
29func TestNewMetaFile_Large(t *testing.T) {
30 var count = 2

Callers

nothing calls this directly

Calls 4

OpenMetaFileFunction · 0.92
HashFunction · 0.92
CloseMethod · 0.65
FileHeaderMethod · 0.45

Tested by

no test coverage detected