(t *testing.T)
| 378 | } |
| 379 | |
| 380 | func TestPrintPostInstallGuide(t *testing.T) { |
| 381 | var b bytes.Buffer |
| 382 | printPostInstallGuide(&b, mcpInstallOptions{ |
| 383 | Client: "all", |
| 384 | Server: "http://localhost:8080/", |
| 385 | }, codexInstallPlan{ |
| 386 | UseCLI: false, |
| 387 | ConfigPath: "/tmp/.codex/config.toml", |
| 388 | }) |
| 389 | |
| 390 | out := b.String() |
| 391 | if !strings.Contains(out, "GraphJin MCP connection added.") { |
| 392 | t.Fatalf("expected completion message, got:\n%s", out) |
| 393 | } |
| 394 | if !strings.Contains(out, "Claude Desktop / Claude Code") { |
| 395 | t.Fatalf("expected claude quick guide, got:\n%s", out) |
| 396 | } |
| 397 | if !strings.Contains(out, "OpenAI Codex") { |
| 398 | t.Fatalf("expected codex quick guide, got:\n%s", out) |
| 399 | } |
| 400 | if !strings.Contains(out, "Config written to: /tmp/.codex/config.toml") { |
| 401 | t.Fatalf("expected codex config path note, got:\n%s", out) |
| 402 | } |
| 403 | } |
nothing calls this directly
no test coverage detected