Skip to content

test: close the de-graphene coverage gap#99

Merged
chrisbc merged 1 commit into
deploy-testfrom
test/coverage-gap
Jun 26, 2026
Merged

test: close the de-graphene coverage gap#99
chrisbc merged 1 commit into
deploy-testfrom
test/coverage-gap

Conversation

@chrisbc

@chrisbc chrisbc commented Jun 26, 2026

Copy link
Copy Markdown
Member

Follow-up to #98. The de-graphene cleanup churned a lot of source, leaving codecov patch/project red on the promote PR #97. This covers the new lines directly so #97 goes green.

  • tests/test_compute.pycolor_scale/compute.py: get_normaliser (log/lin/error), log_intervals (narrow/wide/same-decade/slim+ensure_max), compute_colour_scale (log/lin/unknown-normalisation), get_colour_values (incl. the Nonex000000 sentinel).
  • tests/test_schema_helpers.py_style_dict(None), _fso_dict(falsy), and the null-sortby-item skip in filter_ruptures.

compute.py/schema.py/ruptures.py/geojson_style_util.py now 100%. One genuinely unreachable legacy branch in log_intervals.slim (the sole caller passes the minimum as max, so largest < it never holds) is marked # pragma: no cover with a note.

96 pass / 10 skipped; ruff + mypy clean.

The cleanup churned a lot of source (new graphene-free compute + ported resolvers), leaving
codecov patch/project red on PR #97. Cover the new lines directly:

- tests/test_compute.py — color_scale/compute.py: get_normaliser (log/lin/error),
  log_intervals (narrow/wide/same-decade/slim+ensure_max), compute_colour_scale (log/lin/
  unknown-normalisation error), get_colour_values (incl. the None->"x000000" sentinel).
- tests/test_schema_helpers.py — _style_dict(None), _fso_dict(falsy), and the null-sortby-item
  skip in filter_ruptures.

compute.py/schema.py/ruptures.py/geojson_style_util.py now 100%. One genuinely unreachable
legacy branch in log_intervals.slim (caller passes the min as 'max', so largest < it never
holds) is marked '# pragma: no cover' with a note.

96 pass / 10 skipped; ruff + mypy clean.
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.08%. Comparing base (ffeda01) to head (1475e21).

Additional details and impacted files
@@               Coverage Diff               @@
##           deploy-test      #99      +/-   ##
===============================================
+ Coverage        93.82%   95.08%   +1.26%     
===============================================
  Files               12       12              
  Lines             1101     1099       -2     
  Branches            64       63       -1     
===============================================
+ Hits              1033     1045      +12     
+ Misses              48       41       -7     
+ Partials            20       13       -7     
Flag Coverage Δ
unittests 95.08% <ø> (+1.26%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chrisbc chrisbc merged commit aa9a0e0 into deploy-test Jun 26, 2026
3 checks passed
@chrisbc chrisbc deleted the test/coverage-gap branch June 26, 2026 01:42
chrisbc added a commit that referenced this pull request Jun 26, 2026
Record the deploy-test→main promote (#97, 5ed8586), prod deploy success, the pre-staged+closed
rollback #101, the 30-min watch (6/6, 0 failures), the #99/#100 coverage epilogue, and the
non-regression KeyError note (empty fault_system in unchanged shared compute).
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