MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / tutorialsResponse

Function tutorialsResponse

internal/server/task3452_tutorials_test.go:24–30  ·  view source on GitHub ↗
(status int, ctype, body string)

Source from the content-addressed store, hash-verified

22func (f tutorialsRoundTrip) RoundTrip(r *http.Request) (*http.Response, error) { return f(r) }
23
24func tutorialsResponse(status int, ctype, body string) *http.Response {
25 return &http.Response{
26 StatusCode: status,
27 Header: http.Header{"Content-Type": {ctype}},
28 Body: io.NopCloser(strings.NewReader(body)),
29 }
30}
31
32const tutorialsTestCatalog = `{
33 "version": 1,

Calls

no outgoing calls

Tested by

no test coverage detected