MCPcopy Create free account
hub / github.com/distributedio/titan / getValue

Function getValue

db/string_test.go:28–37  ·  view source on GitHub ↗
(t *testing.T, key []byte, value []byte)

Source from the content-addressed store, hash-verified

26}
27
28func getValue(t *testing.T, key []byte, value []byte) {
29 callFunc := func(txn *Transaction) {
30 s, err := GetString(txn, key)
31 assert.NoError(t, err)
32 val, err := s.Get()
33 assert.NoError(t, err)
34 assert.Equal(t, value, val)
35 }
36 MockTest(t, callFunc)
37}
38
39var (
40 TestExistKey = []byte("StringKey")

Callers 1

TestStringSetBitFunction · 0.85

Calls 3

GetStringFunction · 0.85
MockTestFunction · 0.85
GetMethod · 0.80

Tested by

no test coverage detected