Skip to content

Conversation

@watany-dev
Copy link
Owner

Add comprehensive tests to cover all error scenarios during file exploration:

  • Symlink loop causing os.Stat to return non-NotExist error
  • Valid symlink to workflow file handling
  • Broken symlink graceful skipping
  • Symlink pointing to directory handling
  • Race condition tests for file/directory deletion
  • /proc filesystem symlink tests for edge cases
  • Race condition test for ReadDir errors

Coverage improved from 85.3% to 100% for DiscoverWorkflows.

Add comprehensive tests to cover all error scenarios during file exploration:
- Symlink loop causing os.Stat to return non-NotExist error
- Valid symlink to workflow file handling
- Broken symlink graceful skipping
- Symlink pointing to directory handling
- Race condition tests for file/directory deletion
- /proc filesystem symlink tests for edge cases
- Race condition test for ReadDir errors

Coverage improved from 85.3% to 100% for DiscoverWorkflows.
@watany-dev watany-dev merged commit 2a5b3b7 into main Dec 28, 2025
4 checks passed
@watany-dev watany-dev deleted the claude/improve-workflow-test-coverage-9dofn branch December 28, 2025 03:09
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.

3 participants