Skip to content

Conversation

@watany-dev
Copy link
Owner

Add comprehensive tests for nil node handling in YAML parsing:

  • nil key node in doc.Content
  • nil value node in doc.Content
  • nil job key node in jobs.Content
  • nil doc node

This achieves 100% coverage for load.go.

…romNode

Add comprehensive tests for nil node handling in YAML parsing:
- nil key node in doc.Content
- nil value node in doc.Content
- nil job key node in jobs.Content
- nil doc node

This achieves 100% coverage for load.go.
Add test case for the defensive programming branch in shouldSkipJob
where a dependency job was not executed. This covers the edge case
that normally shouldn't occur with proper topological sort.

Achieves 100% coverage for shouldSkipJob function.
Add comprehensive tests for StepExecutor.Execute error handling:
- Strict mode: returns error when condition evaluation fails
- Permissive mode: logs warning and continues execution

This achieves 100% coverage for the Execute function.
Add tests for ValidatePathWithSymlinkResolution edge cases:
- os.Lstat permission error (skipped when run as root)
- Broken symlink detection via EvalSymlinks error
- EvalSymlinks error on basePath

Improves security package coverage from 87.0% to 89.1%.
Add test case for UnmarshalYAML Decode error when needs field
contains invalid YAML mapping instead of string or string slice.

Improves workflow package coverage from 93.0% to 94.2%.
Add tests for edge cases in evaluator functions:
- Unknown node type in evaluateNode
- Unknown unary operator in evaluateUnary
- Unknown binary operator in evaluateBinary
- nil Env in resolveIdentifier

Improves expression package coverage from 97.3% to 98.4%.
Add test case that creates a detached HEAD state by checking out
a commit SHA directly, verifying GitHeadRef returns empty string.

This achieves 100% coverage for util package.
@watany-dev watany-dev merged commit 0010863 into main Dec 28, 2025
4 checks passed
@watany-dev watany-dev deleted the claude/analyze-test-coverage-Jo55g branch December 28, 2025 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants