Skip to content

Reach 100% line and branch coverage - #27

Merged
djungelorm merged 3 commits into
mainfrom
test-coverage
Oct 15, 2026
Merged

djungelorm merged 3 commits into
mainfrom
test-coverage

Conversation

@djungelorm

Copy link
Copy Markdown
Owner

Adds tests to bring line and branch coverage from 91% to 100%. Branch coverage is now on, and fail_under = 100 fails the run if coverage drops.

Indexer fix. Indexers rendered as this[, int i]. append_indexer_parameters tested pnodes.children, which always includes the opening [. No test checked indexer signature text before this PR.

split_sig. A comma after an unbalanced closing bracket, as in a>, b, was silently dropped. It now splits the list. This also removes a branch that only malformed input reached.

Tests. test_render.py covers the event directive, debug logging, duplicate descriptions, incremental rebuilds and invalid config. The new test_extrefs.py covers the external link edge cases, including link testing with a faked requests.get.

Cover the event directive, debug logging, duplicate descriptions, rebuilds, invalid config and the external link edge cases, including link testing with a mocked requests.get. Turn on branch coverage and fail the run below 100%.
@djungelorm
djungelorm merged commit 7583e3f into main Oct 15, 2026
7 checks passed
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.

1 participant