Improve Test Coverage on Low-Coverage Packages
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start with AGENTS.md for the test conventions, then inspect the listed packages under internal/tools, internal/config, internal/db, and cmd/replicator. Run the existing Go tests to see what is already covered and identify gaps against the acceptance criteria. Done means the specified handler, config, database, and CLI tests are added and all coverage targets are met.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Raise test coverage on packages currently at 0% or below 40% to make the coverage ratchets in #24 meaningful and enforceable.
Context
Coverage ratchets (#24) will fail CI if coverage drops below a threshold. However, five packages currently have coverage so low that a global
ratchet would either need to be set unrealistically low or exempt them.
Current coverage (as of 2026-07-16):
| Package | Coverage | Status |
|---|---|---|
internal/tools/org |
0.0% | No tests |
internal/tools/forge |
0.0% | No tests |
internal/tools/comms |
0.0% | No tests |
internal/tools/memory |
0.0% | No tests |
internal/tools/registry |
0.0% | No tests |
internal/config |
0.0% | No tests |
internal/db |
34.6% | Under-tested |
cmd/replicator |
24.4% | CLI entrypoint |
The tools/* packages are thin MCP handler wrappers — they delegate to domain packages. The config package handles path resolution. These are small surface areas that should be straightforward to cover.
Acceptance Criteria
-
internal/tools/*packages: add handler-level tests exercising the happy path and one error case per tool -
internal/config: add tests for path resolution and defaults -
internal/db: raise coverage to ≥ 50% (currently 34.6%) -
cmd/replicator: add CLI smoke tests forversion,doctor, andcellssubcommands - Global coverage rises to ≥ 65% (from 58.4%)
References
- Issue: #24 (coverage ratchets — depends on this for enforceable thresholds)
- Constitution Principle IV: "Coverage regressions MUST be treated as test failures."
- Test conventions:
AGENTS.md— stdlibtestingonly,t.Errorf/t.Fatalf,db.OpenMemory()for DB tests,t.TempDir()for git tests
- Ngôn ngữ chính
- Go
- Star
- 0
- Fork
- 9
- Merge trung bình
- 1 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 18
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của unbound-force/replicator
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
unbound-force/replicator#95 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug github_actions
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 80/100
unbound-force/replicator#89 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
unbound-force/replicator#85 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
unbound-force/replicator#77 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
unbound-force/replicator#63 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của unbound-force/replicator
Issue tương tự
-
area/networking kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
siderolabs/talos#14972 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
kubectl wait outputs cryptic "error: unrecognized condition: []" when --for is omittedCó thể đã có người làm @muskan-creates352 đã nhận hôm nay. Đang mởkind/bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
kubernetes/kubectl#1910 · 1 bình luận ·
-
Add Shiro (Remote) MCP serverĐang mởneeds-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
stacklok/toolhive-catalog#1967 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
unbound-force/gaze#353 ·
Maintainer thường phản hồi trong vòng 1 ngày