(t *testing.T)
| 443 | } |
| 444 | |
| 445 | func 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 | |
| 456 | func TestPreviewRun_Interactive(t *testing.T) { |
| 457 | skillContent := "# Selected Skill\n\nContent here." |
nothing calls this directly
no test coverage detected