Skip to content

Add Python API tests to improve coverage (94% → 95%) - #1174

Merged
jeromekelleher merged 1 commit into
tskit-dev:mainfrom
jeromekelleher:python-api-coverage
Mar 30, 2026
Merged

jeromekelleher merged 1 commit into
tskit-dev:mainfrom
jeromekelleher:python-api-coverage

Conversation

@jeromekelleher

Copy link
Copy Markdown
Member

Closes #1165

  • matching.py: 98% → 100% (add_vestigial_root validation, AncestorMatcher optional kwargs)
  • config.py: 95% → 99% (field spec resolution, parsing edge cases, format optional fields)
  • pipeline.py: 90% → 91% (_erase_flanks no-intervals, augment_sites missing metadata)

- matching.py: 98% → 100% (add_vestigial_root validation, AncestorMatcher optional kwargs)
- config.py: 95% → 99% (field spec resolution, parsing edge cases, format optional fields)
- pipeline.py: 90% → 91% (_erase_flanks no-intervals, augment_sites missing metadata)
@codecov

codecov Bot commented Mar 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.32%. Comparing base (b1f2cd0) to head (c1e74de).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1174      +/-   ##
==========================================
+ Coverage   90.53%   91.32%   +0.79%     
==========================================
  Files          15       15              
  Lines        4542     4542              
  Branches      711      711              
==========================================
+ Hits         4112     4148      +36     
+ Misses        307      286      -21     
+ Partials      123      108      -15     
Flag Coverage Δ
C 81.60% <ø> (ø)
c-python 71.46% <ø> (ø)
python-tests 91.88% <ø> (+1.25%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Python API 92.03% <ø> (+1.28%) ⬆️
Python C interface 89.14% <ø> (ø)
C library 90.53% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jeromekelleher
jeromekelleher merged commit 16a2e0c into tskit-dev:main Mar 30, 2026
13 checks passed
@jeromekelleher
jeromekelleher deleted the python-api-coverage branch March 30, 2026 08:09
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.

Review and improve test coverage

1 participant