test: consolidate the type-audit round's scattered test files#70
Conversation
The type-coverage audit round (#62-#69) added many small single-purpose test files. Fold them into thematic homes without changing any test logic (verified: 210 -> 210 test funcs, full suite green). Net -11 files (35 -> 24). Black-box (convert_test): - identity_key -> hashable_test (map keys) - decorate_key -> order_test (key ordering) - func_pointer -> panics_test (panic prevention) - gointerface_nil -> interface_test (GoInterface) - collection_elem, uintptr -> checked_conv_test (checked conversion) - typed_nil, low_misc -> review_misc_test (misc) White-box (convert): - stable_key, truth_nilable -> internal_test Root (starlight): - eval_nil_reader -> starlight_test Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 103 |
| Duplication | 2 |
🟢 Coverage ∅ diff coverage · +0.00% coverage variation
Metric Results Coverage variation ✅ +0.00% coverage variation (-1.00%) Diff coverage ✅ ∅ diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (a2f7d0e) 2124 1915 90.16% Head commit (1231a51) 2124 (+0) 1915 (+0) 90.16% (+0.00%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#70) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #70 +/- ##
=======================================
Coverage 87.12% 87.12%
=======================================
Files 8 8
Lines 1662 1662
=======================================
Hits 1448 1448
Misses 131 131
Partials 83 83 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Why
The type-coverage audit round (#62–#69) added many small single-purpose test files. This folds them into thematic homes — no test logic changes (verified: 210 → 210 test funcs, full suite green). Net −11 files (35 → 24).
Consolidation
Black-box (
convert_test):identity_key_testhashable_test(map keys)decorate_key_testorder_test(key ordering)func_pointer_testpanics_test(panic prevention)gointerface_nil_testinterface_test(GoInterface)collection_elem_test+uintptr_testchecked_conv_test(checked conversion)typed_nil_test+low_misc_testreview_misc_test(misc)White-box (
convert):stable_key_test+truth_nilable_test→internal_testRoot (
starlight):eval_nil_reader_test→starlight_testPure test reorganization. Full suite
-race -count=2; Go 1.19 via Docker.🤖 Generated with Claude Code