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

Function MockTest

db/db_test.go:30–36  ·  view source on GitHub ↗
(t *testing.T, callFunc func(txn *Transaction))

Source from the content-addressed store, hash-verified

28}
29
30func MockTest(t *testing.T, callFunc func(txn *Transaction)) {
31 txn, err := mockDB.Begin()
32 assert.NoError(t, err)
33 callFunc(txn)
34 err = txn.Commit(context.TODO())
35 assert.NoError(t, err)
36}

Callers 15

setValueFunction · 0.85
getValueFunction · 0.85
TestGetStringFunction · 0.85
TestStringGetFunction · 0.85
TestStringSetFunction · 0.85
TestStringLenFunction · 0.85
TestStringExistFunction · 0.85
TestStringAppendFunction · 0.85
TestStringGetSetFunction · 0.85
TestStringGetRangeFunction · 0.85
TestStringSetRangeFunction · 0.85
TestStringIncrFunction · 0.85

Calls 2

BeginMethod · 0.80
CommitMethod · 0.80

Tested by

no test coverage detected