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

Function TestMetaFile_Compact

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

Source from the content-addressed store, hash-verified

170}
171
172func 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
187func TestMetaFile_RemoveAll(t *testing.T) {
188 mFile, err := bfs.OpenMetaFile("testdata/test.m", &sync.RWMutex{})

Callers

nothing calls this directly

Calls 3

OpenMetaFileFunction · 0.92
CloseMethod · 0.65
CompactMethod · 0.45

Tested by

no test coverage detected