MCPcopy
hub / github.com/cli/cli / TestPreviewRun_UnsupportedHost

Function TestPreviewRun_UnsupportedHost

pkg/cmd/skills/preview/preview_test.go:445–454  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

443}
444
445func TestPreviewRun_UnsupportedHost(t *testing.T) {
446 ios, _, _, _ := iostreams.Test()
447 err := previewRun(&PreviewOptions{
448 IO: ios,
449 HttpClient: func() (*http.Client, error) { return &http.Client{}, nil },
450 repo: ghrepo.NewWithHost("github", "awesome-copilot", "acme.ghes.com"),
451 Telemetry: &telemetry.NoOpService{},
452 })
453 require.ErrorContains(t, err, "does not currently support GitHub Enterprise Server")
454}
455
456func TestPreviewRun_Interactive(t *testing.T) {
457 skillContent := "# Selected Skill\n\nContent here."

Callers

nothing calls this directly

Calls 3

TestFunction · 0.92
NewWithHostFunction · 0.92
previewRunFunction · 0.85

Tested by

no test coverage detected