MCPcopy Create free account
hub / github.com/cli/cli / TestClientUnsupportedHost

Function TestClientUnsupportedHost

pkg/cmd/event/client/client_test.go:465–475  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

463}
464
465func TestClientUnsupportedHost(t *testing.T) {
466 for _, host := range []string{"ghe.example.com", "example.ghe.com"} {
467 t.Run(host, func(t *testing.T) {
468 client, _ := newTestClient(t, host)
469
470 _, err := client.GetSubscription(context.Background(), "sub_1")
471
472 require.ErrorIs(t, err, ErrUnsupportedHost)
473 })
474 }
475}

Callers

nothing calls this directly

Calls 3

newTestClientFunction · 0.70
RunMethod · 0.65
GetSubscriptionMethod · 0.65

Tested by

no test coverage detected