Files
Kris MooreandClaude Sonnet 4.5 9e9bcd01b0 Add comprehensive test suite with coverage reporting
Test Suite:
- Add table-driven tests for validation functions
- tools/dataset_test.go - validateDatasetName, validateEncryptionOptions
- tools/smb_test.go - validateShareName, validateSharePath
- tools/nfs_test.go - validateCIDR, validateNFSHost
- 100% coverage on all validation functions
- 122 test cases covering valid inputs, edge cases, and error conditions

Test Infrastructure:
- Use Go table-driven test pattern for maintainability
- Clear test names describing each scenario
- Comprehensive error message validation
- Edge case coverage (empty strings, boundary values, special characters)

Coverage Reporting:
- Updated GitHub Actions workflow to generate coverage reports
- Run tests with -coverprofile and -covermode=atomic
- Upload coverage artifacts for review
- Display coverage summary in GitHub Actions output
- Add coverage files to .gitignore

Overall project coverage: 3.8% (validation functions: 100%)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 12:39:07 -05:00

29 lines
253 B
Plaintext

# Binaries (root directory only)
/truenas-mcp
/truenas-mcp-*
*.exe
*.dll
*.so
*.dylib
# Test binary
*.test
# Output of go coverage
*.out
# Dependency directories
vendor/
# IDE
.idea/
.vscode/
*.swp
*.swo
*~
# OS
.DS_Store
coverage.out
coverage.txt