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

Function assertHTTPError

db/database_test.go:168–173  ·  view source on GitHub ↗
(t *testing.T, err error, status int)

Source from the content-addressed store, hash-verified

166}
167
168func assertHTTPError(t *testing.T, err error, status int) bool {
169 var httpErr *base.HTTPError
170 return assert.Error(t, err) &&
171 assert.ErrorAs(t, err, &httpErr) &&
172 assert.Equal(t, status, httpErr.Status)
173}
174
175func TestDatabase(t *testing.T) {
176

Calls 2

ErrorMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected