MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / TestDB_GetKeyNotFound

Function TestDB_GetKeyNotFound

db_test.go:836–844  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

834}
835
836func 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
846func TestDB_Backup(t *testing.T) {
847 if runtime.GOOS == "windows" {

Callers

nothing calls this directly

Calls 6

GetTestBytesFunction · 0.92
GetRandomBytesFunction · 0.92
runNutsDBTestFunction · 0.85
txCreateBucketFunction · 0.85
txGetFunction · 0.85
txPutFunction · 0.85

Tested by

no test coverage detected