• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codozor / fwkeeper / 19593835155
47%
main: 45%

Build:
Build:
LAST BUILD BRANCH: feat/error-classification-pod-lifecycle
DEFAULT BRANCH: main
Ran 22 Nov 2025 09:55AM UTC
Jobs 1
Files 13
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Nov 2025 09:52AM UTC coverage: 5.928% (+5.9%) from 0.0%
19593835155

Pull #7

github

SebastienLaurent-CF
✅ test: Add Phase 1 test coverage for critical paths

Implement comprehensive unit tests for configuration loading and validation,
covering happy paths and error cases. Tests validate port ranges, detect
conflicts, and ensure proper error handling.

Test Coverage (Phase 1):
- Config loading and parsing:
  * Valid configuration with multiple forwards
  * Invalid ports (out of range, non-numeric)
  * Port conflicts detection (duplicate local ports)
  * CUE schema validation errors
- Port validation:
  * Valid range (1-65535)
  * Edge cases (0, 1, 65535, 65536, 99999, negative)
  * Non-numeric ports and malformed specifications
  * Both single ports and local:remote mappings

Files Added:
- internal/config/config_test.go - Unit tests for config validation
- internal/config/testdata/valid.cue - Valid configuration test data
- internal/config/testdata/port-conflict.cue - Port conflict test case
- internal/config/testdata/invalid-ports.cue - Invalid ports test case
- internal/config/testdata/duplicate-names.cue - Duplicate names test case

Test Results:
- 5 test functions with 13 total test cases
- Port validation edge cases: 9 sub-tests
- All tests passing (1 skipped for known CUE limitation)

Dependencies Added:
- github.com/stretchr/testify - Test assertions and utilities

Documentation:
- Add Testing section to README with commands
- Document test status and planned phases
- Include coverage report generation instructions

Test Commands:
```bash
go test ./...                    # Run all tests
go test -v ./internal/config     # Verbose config tests
go test -cover ./...             # Show coverage percentage
go test -v -run TestPortValidation ./internal/config  # Specific test
```

Planned Next Phases:
- Phase 2 (3-5h): Locator implementations, forward names, hot-reload tests
- Phase 3 (5-10h): Runner lifecycle, reconnection behavior
Pull Request #7: ✅ test: Add Phase 1 test coverage for critical paths

46 of 776 relevant lines covered (5.93%)

0.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19593835155.1 22 Nov 2025 09:55AM UTC 13
5.93
GitHub Action Run
Source Files on build 19593835155
  • Tree
  • List 13
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #7
  • PR Base - main (#19593418837)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc