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

Function testFlyDbDatastore

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

Source from the content-addressed store, hash-verified

9)
10
11func testFlyDbDatastore() (DataStore, error) {
12 tmpFile, err := os.CreateTemp("", "test_flydb_storage")
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 opts := config.Config{}
21 opts.LogDataStorageSize = 64 * 1024 * 1024
22 opts.LogDataStoragePath = tmpFile.Name()
23 // Successfully creates and returns a store
24 return NewLogFlyDbStorage(opts)
25}
26
27func TestFlyDbStore_DeleteRange(t *testing.T) {
28 r, err := testFlyDbDatastore()

Callers 10

TestFlyDbStore_LastIndexFunction · 0.85
TestFlyDbStore_GetLogFunction · 0.85
TestFlyDbStore_StoreLogFunction · 0.85
TestFlyDbStore_StoreLogsFunction · 0.85
TestFlyDbStore_SetFunction · 0.85
TestFlyDbStore_GetFunction · 0.85
TestFlyDbStore_SetUint64Function · 0.85
TestFlyDbStore_GetUint64Function · 0.85

Calls 1

NewLogFlyDbStorageFunction · 0.85

Tested by

no test coverage detected