MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / TestKeyNotFound

Function TestKeyNotFound

base/bucket_test.go:528–539  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

526}
527
528func TestKeyNotFound(t *testing.T) {
529 ctx := TestCtx(t)
530 bucket := GetTestBucket(t)
531 defer bucket.Close(ctx)
532 ds := bucket.GetSingleDataStore()
533 var body []byte
534 _, getErr := ds.Get("nonexistentKey", &body)
535 RequireDocNotFoundError(t, getErr)
536
537 _, _, getRawErr := ds.GetRaw("nonexistentKey")
538 RequireDocNotFoundError(t, getRawErr)
539}

Callers

nothing calls this directly

Calls 7

TestCtxFunction · 0.85
GetTestBucketFunction · 0.85
RequireDocNotFoundErrorFunction · 0.85
CloseMethod · 0.65
GetSingleDataStoreMethod · 0.45
GetMethod · 0.45
GetRawMethod · 0.45

Tested by

no test coverage detected