(t *testing.T)
| 297 | } |
| 298 | |
| 299 | func TestGetAfterDelete(t *testing.T) { |
| 300 | runBadgerTest(t, nil, func(t *testing.T, db *DB) { |
| 301 | // populate with one entry |
| 302 | key := []byte("key") |
| 303 | txnSet(t, db, key, []byte("val1"), 0x00) |
| 304 | require.NoError(t, db.Update(func(txn *Txn) error { |
| 305 | err := txn.Delete(key) |
| 306 | require.NoError(t, err) |
| 307 | |
| 308 | _, err = txn.Get(key) |
| 309 | require.Equal(t, ErrKeyNotFound, err) |
| 310 | return nil |
| 311 | })) |
| 312 | }) |
| 313 | } |
| 314 | |
| 315 | func TestTxnTooBig(t *testing.T) { |
| 316 | runBadgerTest(t, nil, func(t *testing.T, db *DB) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…