(t *testing.T)
| 312 | } |
| 313 | |
| 314 | func TestDB_DeleteANonExistKey(t *testing.T) { |
| 315 | runNutsDBTest(t, nil, func(t *testing.T, db *DB) { |
| 316 | testBucket := "test_bucket" |
| 317 | txCreateBucket(t, db, DataStructureBTree, testBucket, nil) |
| 318 | |
| 319 | txDel(t, db, testBucket, testutils.GetTestBytes(0), ErrKeyNotFound) |
| 320 | txPut(t, db, testBucket, testutils.GetTestBytes(1), testutils.GetRandomBytes(24), Persistent, nil, nil) |
| 321 | txDel(t, db, testBucket, testutils.GetTestBytes(0), ErrKeyNotFound) |
| 322 | }) |
| 323 | } |
| 324 | |
| 325 | func TestDB_CheckListExpired(t *testing.T) { |
| 326 | runNutsDBTestWithMockClock(t, nil, func(t *testing.T, db *DB, mc ttl.Clock) { |
nothing calls this directly
no test coverage detected