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

Function testMemoryDatastore

lib/datastore/inmem_test.go:10–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func testMemoryDatastore() DataStore {
11 ds, _ := NewLogInMemStorage(config.Config{})
12 return ds
13}
14func createRaftLog(idx uint64, data string) *raft.Log {
15 return &raft.Log{
16 Data: []byte(data),

Callers 10

TestInMemStore_GetLogFunction · 0.85
TestInMemStore_StoreLogFunction · 0.85
TestInMemStore_StoreLogsFunction · 0.85
TestInMemStore_LastIndexFunction · 0.85
TestInMemStore_SetFunction · 0.85
TestInMemStore_GetFunction · 0.85
TestInMemStore_SetUint64Function · 0.85
TestInMemStore_GetUint64Function · 0.85

Calls 1

NewLogInMemStorageFunction · 0.85

Tested by

no test coverage detected