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

Function RequireXattrNotFoundError

base/util_testing.go:780–782  ·  view source on GitHub ↗

RequireXattrNotFoundError asserts that the given error represents an xattr not found error.

(t testing.TB, e error)

Source from the content-addressed store, hash-verified

778
779// RequireXattrNotFoundError asserts that the given error represents an xattr not found error.
780func RequireXattrNotFoundError(t testing.TB, e error) {
781 require.True(t, IsXattrNotFoundError(e), fmt.Sprintf("Expected error to be an xattr not found error, but was: %v", e))
782}
783
784func requireCasMismatchError(t testing.TB, err error) {
785 require.Error(t, err, "Expected an error of type IsCasMismatch %+v\n", err)

Callers 3

TestCreateLegacyRevDocFunction · 0.92
RequireXattrNotFoundFunction · 0.85

Calls 1

IsXattrNotFoundErrorFunction · 0.85

Tested by 2

TestCreateLegacyRevDocFunction · 0.74