-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workingcriticalCritical issues that must be fixed immediatelyCritical issues that must be fixed immediatelytestingIssues related to tests and test coverageIssues related to tests and test coverage
Description
Problem
Two critical packages are missing test files entirely:
internal/git/git.go
- Nogit_test.go
fileinternal/prompt/prompt.go
- Noprompt_test.go
file
Impact
- No test coverage for git integration functionality
- No test coverage for prompt generation and formatting
- Reduces confidence in code quality and reliability
- Makes refactoring risky
Current Status
When running make test-unit
, these packages show:
Required Actions
-
Create
internal/git/git_test.go
with comprehensive tests for:- Git repository detection
- Branch name extraction
- Status checking (staged, unstaged, untracked files)
- Ahead/behind commit counting
- Error handling
-
Create
internal/prompt/prompt_test.go
with comprehensive tests for:- Prompt format string parsing
- Git information integration
- Color scheme application
- Various prompt configurations
Files to Create
internal/git/git_test.go
internal/prompt/prompt_test.go
Priority
Critical - Test coverage is essential for code quality and maintenance.
Reference
See TODO.md item #3
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcriticalCritical issues that must be fixed immediatelyCritical issues that must be fixed immediatelytestingIssues related to tests and test coverageIssues related to tests and test coverage