MCPcopy
hub / github.com/wavetermdev/waveterm / initDb

Function initDb

pkg/filestore/blockstore_test.go:24–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22)
23
24func initDb(t *testing.T) {
25 t.Logf("initializing db for %q", t.Name())
26 useTestingDb = true
27 partDataSize = 50
28 warningCount = &atomic.Int32{}
29 stopFlush.Store(true)
30 err := InitFilestore()
31 if err != nil {
32 t.Fatalf("error initializing filestore: %v", err)
33 }
34}
35
36func cleanupDb(t *testing.T) {
37 t.Logf("cleaning up db for %q", t.Name())

Callers 11

TestCreateFunction · 0.85
TestDeleteFunction · 0.85
TestSetMetaFunction · 0.85
TestWriteAtFunction · 0.85
TestAppendFunction · 0.85
TestWriteFileFunction · 0.85
TestCircularWritesFunction · 0.85
TestMultiPartFunction · 0.85
TestSimpleDBFlushFunction · 0.85
TestConcurrentAppendFunction · 0.85
TestIJsonFunction · 0.85

Calls 2

InitFilestoreFunction · 0.85
NameMethod · 0.45

Tested by

no test coverage detected