Skip to content

Exempt lifecycle and construction methods from test gaps (#854 with main merged) - #867

Merged
tirth8205 merged 2 commits into
mainfrom
pr-854-main-merge
Aug 19, 2026
Merged

Exempt lifecycle and construction methods from test gaps (#854 with main merged)#867
tirth8205 merged 2 commits into
mainfrom
pr-854-main-merge

Conversation

@tirth8205

Copy link
Copy Markdown
Owner

Carries #854 (author asemraza) with current main merged in and the test-anchor conflict against #852 resolved by keeping both tests. Validated locally: tests/test_changes.py 38 passed, full suite 2456 passed, ruff and mypy clean.

Opened because the source branch needs a conflict resolution that cannot be pushed to the fork from here. Merging this lands the original commits unchanged, so #854 will show as merged.

Part of #850.

asemraza and others added 2 commits August 13, 2026 20:11
setUp, tearDown, constructors and their xUnit/unittest variants are
exercised implicitly by every test that touches their class. Listing
them as test gaps inflates the gap count and pushes noise into the
Untested summary, which erodes trust in the panel for real gaps.

Partial fix; the container-resolution linkage itself is tracked in
issue 850 and in issue 851.

Part of #850
Keep both tests at the shared anchor in tests/test_changes.py: the
relative-path flows regression from #852 and the lifecycle exemption
regression from this branch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012fHfGDiZedoxjpKzanHri3
@github-actions

Copy link
Copy Markdown

code-review-graph review

Overall risk: 0.30 (LOW) — 3 changed function(s)/class(es), 0 affected flow(s), 1 test gap(s)

Risk-scored changes

Risk Level Symbol Location Tested
0.30 low code_review_graph/changes.py::analyze_changes code_review_graph/changes.py:393 yes
0.05 low tests/test_changes.py::TestChanges tests/test_changes.py:24 no
0.05 low tests/test_changes.py::TestChanges.test_analyze_changes_lifecycle_methods_not_test_gaps tests/test_changes.py:406 (test)

Test gaps

  • tests/test_changes.py::TestChanges (tests/test_changes.py:24)

Token savings: this graph-backed report used ~12,473 fewer tokens (~95%) than reading every changed file in full (estimated, chars/4 approximation).


Powered by code-review-graph — local-first analysis; no code leaves the CI runner.

@tirth8205
tirth8205 merged commit bebc646 into main Aug 19, 2026
17 checks passed
@tirth8205
tirth8205 deleted the pr-854-main-merge branch August 19, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants