(rt *RestTester, username string, expectedOutput string)
| 24 | } |
| 25 | |
| 26 | func 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 | |
| 34 | func compareUserDocSeqsOutput(rt *RestTester, username string, docids []string, expectedOutput string) { |
| 35 | response := rt.SendDiagnosticRequest(http.MethodGet, |
no test coverage detected