MCPcopy Index your code
hub / github.com/cli/cli / TestValidateSupportedHost

Function TestValidateSupportedHost

internal/skills/source/source_test.go:73–78  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func 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}

Callers

nothing calls this directly

Calls 1

ValidateSupportedHostFunction · 0.85

Tested by

no test coverage detected