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