(t *testing.T, kv *DB, key []byte)
| 106 | } |
| 107 | |
| 108 | func 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. |
| 115 | func runBadgerTest(t *testing.T, opts *Options, test func(t *testing.T, db *DB)) { |
no test coverage detected
searching dependent graphs…