(t *testing.T)
| 834 | } |
| 835 | |
| 836 | func TestDB_GetKeyNotFound(t *testing.T) { |
| 837 | runNutsDBTest(t, nil, func(t *testing.T, db *DB) { |
| 838 | bucket := "bucket" |
| 839 | txCreateBucket(t, db, DataStructureBTree, bucket, nil) |
| 840 | txGet(t, db, bucket, testutils.GetTestBytes(0), nil, ErrKeyNotFound) |
| 841 | txPut(t, db, bucket, testutils.GetTestBytes(1), testutils.GetRandomBytes(24), Persistent, nil, nil) |
| 842 | txGet(t, db, bucket, testutils.GetTestBytes(0), nil, ErrKeyNotFound) |
| 843 | }) |
| 844 | } |
| 845 | |
| 846 | func TestDB_Backup(t *testing.T) { |
| 847 | if runtime.GOOS == "windows" { |
nothing calls this directly
no test coverage detected