MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / checkResponse

Function checkResponse

main_test.go:1343–1348  ·  view source on GitHub ↗
(t *testing.T, r io.Reader, expected string)

Source from the content-addressed store, hash-verified

1341}
1342
1343func checkResponse(t *testing.T, r io.Reader, expected string) {
1344 got := getStringFromResponse(t, r)
1345 if !strings.Contains(got, expected) {
1346 t.Fatalf("got: %q; expected: %q", got, expected)
1347 }
1348}
1349
1350func httpGet(t *testing.T, url string, statusCode int) *http.Response {
1351 resp, err := http.Get(url)

Callers 3

TestGetFullQueryGzippedFunction · 0.85
TestDecompressionFunction · 0.85
TestServeFunction · 0.85

Calls 2

getStringFromResponseFunction · 0.85
ContainsMethod · 0.80

Tested by

no test coverage detected