MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / Clean

Method Clean

engine/db.go:547–555  ·  view source on GitHub ↗

Clean the DB data directory after the test is complete

()

Source from the content-addressed store, hash-verified

545
546// Clean the DB data directory after the test is complete
547func (db *DB) Clean() {
548 if db != nil {
549 _ = db.Close()
550 err := os.RemoveAll(db.options.DirPath)
551 if err != nil {
552 panic(err)
553 }
554 }
555}

Callers 15

TestDB_WriteBatchFunction · 0.95
TestDB_WriteBatchRestartFunction · 0.95
TestDB_WriteBatch1Function · 0.95
TestDB_NewIteratorFunction · 0.95
TestPutAndGetFunction · 0.95
TestDB_MergeFunction · 0.95
TestDB_Merge2Function · 0.95
TestDB_Merge3Function · 0.95
TestNewHTTPServerFunction · 0.45
TestPutFunction · 0.45

Calls 1

CloseMethod · 0.95

Tested by 15

TestDB_WriteBatchFunction · 0.76
TestDB_WriteBatchRestartFunction · 0.76
TestDB_WriteBatch1Function · 0.76
TestDB_NewIteratorFunction · 0.76
TestPutAndGetFunction · 0.76
TestDB_MergeFunction · 0.76
TestDB_Merge2Function · 0.76
TestDB_Merge3Function · 0.76
TestNewHTTPServerFunction · 0.36
TestPutFunction · 0.36