Steve Yegge
|
ea7eaafb06
|
bd-211: Remove deprecated rename functions from import_shared.go
- Removed renameImportedIssuePrefixes (wrapper, 3 LOC)
- Removed renameImportedIssuePrefixesOld (deprecated, 61 LOC)
- Removed replaceIDReferences (32 LOC)
- Removed replaceBoundaryAware (31 LOC)
- Removed isBoundary (5 LOC)
- Removed TestIsBoundary (37 LOC)
- Removed TestReplaceBoundaryAware (54 LOC)
- Total: 223 LOC removed (136 LOC code + 91 LOC tests)
- Active implementation is in internal/importer/importer.go
- All tests pass
|
2025-10-27 20:38:13 -07:00 |
|
Steve Yegge
|
d0f6524c90
|
Add test coverage improvements (+2.7% overall)
- cmd/bd: 20.4% → 21.1% (+0.7%)
- Added tests for helper functions: isBoundary, isNumeric,
extractPrefix, getPrefixList, parseLabelArgs, replaceBoundaryAware
- New files: helpers_test.go, simple_helpers_test.go
- internal/rpc: 46.6% → 58.0% (+11.4%)
- Added tests for 11 RPC client methods: SetTimeout, Show, Ready,
Stats, AddDependency, RemoveDependency, AddLabel, RemoveLabel,
Batch, ReposList, ReposReady
- New file: coverage_test.go
Overall coverage: 46.0% → 48.7%
Target: 75% (bd-136)
Amp-Thread-ID: https://ampcode.com/threads/T-a7ce061d-5a77-4654-a931-0a4f24aee192
Co-authored-by: Amp <amp@ampcode.com>
|
2025-10-24 17:06:22 -07:00 |
|