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

Function checkErr

main_test.go:1326–1330  ·  view source on GitHub ↗
(t *testing.T, err error)

Source from the content-addressed store, hash-verified

1324}
1325
1326func checkErr(t *testing.T, err error) {
1327 if err != nil {
1328 t.Fatalf("unexpected error: %s", err)
1329 }
1330}
1331
1332func getStringFromResponse(t *testing.T, r io.Reader) string {
1333 if r == nil {

Callers 6

TestGetQuerySnippetGETFunction · 0.85
TestGetQuerySnippetPOSTFunction · 0.85
TestServeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected