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

Function TestDoRequestRejectsEmptyURL

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

Source from the content-addressed store, hash-verified

862}
863
864func TestDoRequestRejectsEmptyURL(t *testing.T) {
865 t.Parallel()
866
867 client := NewClient("")
868 err := doRequestErrorForTest(context.Background(), client, "", acceptJSON)
869 if err == nil {
870 t.Fatal("doRequest() error = nil, want empty URL failure")
871 }
872}
873
874func TestDoRequestRejectsInvalidURL(t *testing.T) {
875 t.Parallel()

Callers

nothing calls this directly

Calls 2

NewClientFunction · 0.70
doRequestErrorForTestFunction · 0.70

Tested by

no test coverage detected