MCPcopy Create free account
hub / github.com/JordanCoin/codemap / TestBasicTreeOutput

Function TestBasicTreeOutput

main_test.go:72–87  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

70}
71
72func TestBasicTreeOutput(t *testing.T) {
73 output, err := runCodemap(".")
74 if err != nil {
75 t.Fatalf("Basic tree failed: %v", err)
76 }
77
78 // Should contain project name and file stats
79 if !strings.Contains(output, "Files:") && !strings.Contains(output, "Changed:") {
80 t.Error("Output should contain file stats")
81 }
82
83 // Should contain some Go files from this project
84 if !strings.Contains(output, ".go") {
85 t.Error("Output should show .go files for this Go project")
86 }
87}
88
89func TestJSONOutput(t *testing.T) {
90 output, err := runCodemap("--json", ".")

Callers

nothing calls this directly

Calls 2

runCodemapFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected