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

Function RequireDocNotFoundError

base/util_testing.go:775–777  ·  view source on GitHub ↗

RequireDocNotFoundError asserts that the given error represents a document not found error.

(t testing.TB, e error)

Source from the content-addressed store, hash-verified

773
774// RequireDocNotFoundError asserts that the given error represents a document not found error.
775func RequireDocNotFoundError(t testing.TB, e error) {
776 require.True(t, IsDocNotFoundError(e), fmt.Sprintf("Expected error to be a doc not found error, but was: %v", e))
777}
778
779// RequireXattrNotFoundError asserts that the given error represents an xattr not found error.
780func RequireXattrNotFoundError(t testing.TB, e error) {

Calls 1

IsDocNotFoundErrorFunction · 0.85