Skip to content

Commit 8a96408

Browse files
JordanCoinclaude
andcommitted
Add main_test.go for full coverage support
All packages need test files to avoid covdata errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8057c7b commit 8a96408

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

main_test.go

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package main
2+
3+
import (
4+
"testing"
5+
)
6+
7+
func TestParseDirectory(t *testing.T) {
8+
// Test with current directory (should find README.md at minimum)
9+
docs := parseDirectory(".")
10+
11+
if len(docs) == 0 {
12+
t.Error("expected to find at least one markdown file")
13+
}
14+
15+
// Check that README.md was found
16+
found := false
17+
for _, doc := range docs {
18+
if doc.Filename == "README.md" {
19+
found = true
20+
break
21+
}
22+
}
23+
24+
if !found {
25+
t.Error("expected to find README.md")
26+
}
27+
}

0 commit comments

Comments
 (0)