(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func TestValidateSupportedHost(t *testing.T) { |
| 74 | require.NoError(t, ValidateSupportedHost("github.com")) |
| 75 | require.NoError(t, ValidateSupportedHost("mycompany.ghe.com"), "GHEC data residency tenancy hosts should be accepted") |
| 76 | require.ErrorContains(t, ValidateSupportedHost("acme.ghes.com"), "does not currently support GitHub Enterprise Server") |
| 77 | require.ErrorContains(t, ValidateSupportedHost("github.localhost"), "unsupported host") |
| 78 | } |
nothing calls this directly
no test coverage detected