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

Function TestDoRequestRejectsInvalidURL

internal/registry/github/client_test.go:874–882  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

872}
873
874func TestDoRequestRejectsInvalidURL(t *testing.T) {
875 t.Parallel()
876
877 client := NewClient("")
878 err := doRequestErrorForTest(context.Background(), client, "://bad", acceptJSON)
879 if err == nil {
880 t.Fatal("doRequest() error = nil, want invalid URL failure")
881 }
882}
883
884func TestCheckRateLimitErrorsWhenRemainingZero(t *testing.T) {
885 t.Parallel()

Callers

nothing calls this directly

Calls 2

NewClientFunction · 0.70
doRequestErrorForTestFunction · 0.70

Tested by

no test coverage detected