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

Function createRaftLog

lib/datastore/inmem_test.go:14–19  ·  view source on GitHub ↗
(idx uint64, data string)

Source from the content-addressed store, hash-verified

12 return ds
13}
14func createRaftLog(idx uint64, data string) *raft.Log {
15 return &raft.Log{
16 Data: []byte(data),
17 Index: idx,
18 }
19}
20
21func TestInMemStore_GetLog(t *testing.T) {
22 ds := testMemoryDatastore()

Calls

no outgoing calls

Tested by

no test coverage detected