MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / testBoltDatastore

Function testBoltDatastore

lib/datastore/boltdb_test.go:11–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func testBoltDatastore() (DataStore, error) {
12 tmpFile, err := os.CreateTemp("", "test_flydb_boltdb")
13 if err != nil {
14 return nil, err
15 }
16 err = os.Remove(tmpFile.Name())
17 if err != nil {
18 return nil, err
19 }
20
21 // Successfully creates and returns a store
22
23 return NewLogBoltDbStorage(config.Config{LogDataStoragePath: tmpFile.Name()})
24}
25
26func TestBoltDbStore_DeleteRange(t *testing.T) {
27 r, err := testBoltDatastore()

Callers 10

TestBoltDbStore_GetLogFunction · 0.85
TestBoltDbStore_StoreLogFunction · 0.85
TestBoltDbStore_SetFunction · 0.85
TestBoltDbStore_GetFunction · 0.85

Calls 1

NewLogBoltDbStorageFunction · 0.85

Tested by

no test coverage detected