MCPcopy
hub / github.com/dgraph-io/badger / txnDelete

Function txnDelete

db_test.go:108–112  ·  view source on GitHub ↗
(t *testing.T, kv *DB, key []byte)

Source from the content-addressed store, hash-verified

106}
107
108func txnDelete(t *testing.T, kv *DB, key []byte) {
109 txn := kv.NewTransaction(true)
110 require.NoError(t, txn.Delete(key))
111 require.NoError(t, txn.Commit())
112}
113
114// Opens a badger db and runs a a test on it.
115func runBadgerTest(t *testing.T, opts *Options, test func(t *testing.T, db *DB)) {

Callers 6

TestGetFunction · 0.85
TestValueGCFunction · 0.85
TestValueGC2Function · 0.85
TestValueGC4Function · 0.85
TestValueLogTriggerFunction · 0.85

Calls 3

NewTransactionMethod · 0.80
CommitMethod · 0.80
DeleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…