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

Function TestClientUnsupportedHost

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

Source from the content-addressed store, hash-verified

427}
428
429func TestClientUnsupportedHost(t *testing.T) {
430 for _, host := range []string{"ghe.example.com", "example.ghe.com"} {
431 t.Run(host, func(t *testing.T) {
432 client, _ := newTestClient(t, host)
433
434 _, err := client.GetSubscription(context.Background(), "sub_1")
435
436 require.ErrorIs(t, err, ErrUnsupportedHost)
437 })
438 }
439}

Callers

nothing calls this directly

Calls 3

newTestClientFunction · 0.70
RunMethod · 0.65
GetSubscriptionMethod · 0.65

Tested by

no test coverage detected