MCPcopy
hub / github.com/cubefs/cubefs / testCleanSnapshot

Function testCleanSnapshot

metanode/multi_ver_test.go:943–951  ·  view source on GitHub ↗
(t *testing.T, verSeq uint64)

Source from the content-addressed store, hash-verified

941}
942
943func testCleanSnapshot(t *testing.T, verSeq uint64) {
944 t.Logf("action[testCleanSnapshot] verseq [%v]", verSeq)
945 log.LogDebugf("action[testCleanSnapshot] verseq [%v]", verSeq)
946 assert.True(t, testVerListRemoveVer(t, verSeq))
947 if verSeq == 0 {
948 verSeq = math.MaxUint64
949 }
950 testDeleteDirTree(t, 1, verSeq)
951}
952
953// create
954func testSnapshotDeletion(t *testing.T, topFirst bool) {

Callers 1

testSnapshotDeletionFunction · 0.85

Calls 3

LogDebugfFunction · 0.92
testVerListRemoveVerFunction · 0.85
testDeleteDirTreeFunction · 0.85

Tested by

no test coverage detected