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

Function compareAllChannelsOutput

rest/diagnostic_api_test.go:26–32  ·  view source on GitHub ↗
(rt *RestTester, username string, expectedOutput string)

Source from the content-addressed store, hash-verified

24}
25
26func compareAllChannelsOutput(rt *RestTester, username string, expectedOutput string) {
27 response := rt.SendDiagnosticRequest(http.MethodGet,
28 "/{{.db}}/_user/"+username+"/_all_channels", ``)
29 RequireStatus(rt.TB(), response, http.StatusOK)
30 rt.TB().Logf("All channels response: %s", response.BodyString())
31 require.JSONEq(rt.TB(), rt.mustTemplateResource(expectedOutput), response.BodyString())
32}
33
34func compareUserDocSeqsOutput(rt *RestTester, username string, docids []string, expectedOutput string) {
35 response := rt.SendDiagnosticRequest(http.MethodGet,

Callers 2

requestMethod · 0.85
requestMethod · 0.85

Calls 6

RequireStatusFunction · 0.85
SendDiagnosticRequestMethod · 0.80
BodyStringMethod · 0.80
mustTemplateResourceMethod · 0.80
TBMethod · 0.65
LogfMethod · 0.45

Tested by

no test coverage detected