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

Function TestRequest

rest/utilities_testing_test.go:330–335  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

328}
329
330func TestRequest(t *testing.T) {
331 assert.PanicsWithValue(t, `http.NewRequest failed: parse "http://localhost%": invalid URL escape "%"`, func() {
332 // invalid URL escape - should panic (with a prefix in message)
333 _ = Request(http.MethodGet, "%", "")
334 })
335}
336
337func TestUtilitiesProposeChangesBatch(t *testing.T) {
338 // Currently proposeChanges sends the full history to match the Couchbase Lite 4.0.0 implementation. When CBL

Callers

nothing calls this directly

Calls 1

RequestFunction · 0.85

Tested by

no test coverage detected