(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func 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 | |
| 89 | func TestJSONOutput(t *testing.T) { |
| 90 | output, err := runCodemap("--json", ".") |
nothing calls this directly
no test coverage detected