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

Function compareUserDocSeqsOutput

rest/diagnostic_api_test.go:34–40  ·  view source on GitHub ↗
(rt *RestTester, username string, docids []string, expectedOutput string)

Source from the content-addressed store, hash-verified

32}
33
34func compareUserDocSeqsOutput(rt *RestTester, username string, docids []string, expectedOutput string) {
35 response := rt.SendDiagnosticRequest(http.MethodGet,
36 "/{{.keyspace}}/_user/"+username+"?docids="+strings.Join(docids, ","), ``)
37 RequireStatus(rt.TB(), response, http.StatusOK)
38 rt.TB().Logf("All channels response: %s", response.BodyString())
39 require.JSONEq(rt.TB(), rt.mustTemplateResource(expectedOutput), response.BodyString())
40}
41
42type userGrant struct {
43 user string

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