MCPcopy
hub / github.com/dosco/graphjin / TestPrintPostInstallGuide

Function TestPrintPostInstallGuide

cmd/mcp_install_test.go:380–403  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

378}
379
380func 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}

Callers

nothing calls this directly

Calls 2

printPostInstallGuideFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected