MCPcopy Create free account
hub / github.com/compozy/agh / doRequestErrorForTest

Function doRequestErrorForTest

internal/registry/github/client_test.go:1107–1113  ·  view source on GitHub ↗
(ctx context.Context, client *Client, rawURL string, accept string)

Source from the content-addressed store, hash-verified

1105}
1106
1107func doRequestErrorForTest(ctx context.Context, client *Client, rawURL string, accept string) error {
1108 response, err := client.doRequest(ctx, rawURL, accept)
1109 if response != nil {
1110 _ = response.Body.Close()
1111 }
1112 return err
1113}
1114
1115func mustParseURL(raw string) *url.URL {
1116 parsed, err := url.Parse(raw)

Callers 2

Calls 2

CloseMethod · 0.65
doRequestMethod · 0.45

Tested by

no test coverage detected