(t *testing.T)
| 427 | } |
| 428 | |
| 429 | func 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 | } |
nothing calls this directly
no test coverage detected