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

Function assertHTTPError

db/functions/function_test.go:630–635  ·  view source on GitHub ↗
(t *testing.T, err error, status int)

Source from the content-addressed store, hash-verified

628}
629
630func assertHTTPError(t *testing.T, err error, status int) bool {
631 var httpErr *base.HTTPError
632 return assert.Error(t, err) &&
633 assert.ErrorAs(t, err, &httpErr) &&
634 assert.Equal(t, status, httpErr.Status, "Error is: %#v", err)
635}
636
637//////// SETUP FUNCTIONS
638

Callers 7

testUserFunctionsCommonFunction · 0.70
testUserFunctionsAsAdminFunction · 0.70
testUserFunctionsAsUserFunction · 0.70
TestUserFunctionsCRUDFunction · 0.70
testUserQueriesCommonFunction · 0.70
testUserQueriesAsAdminFunction · 0.70
testUserQueriesAsUserFunction · 0.70

Calls 2

ErrorMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected