Repository navigation
test(coverage): burn-down phase 2 — zero rustledger exemptions - #238
Merged
Merged
Conversation
…rs the gate Deletes every remaining rustledger/* coverage exemption. 30 new unit tests: - backend.py (70% -> 100%): the broken-install ImportError path raises an actionable RustledgerError. - options.py (60% -> 100%): display formatting (precision, commas, quantize) and RLBooking equality semantics — documenting that RLBooking is unhashable (unlike beancount's Booking enum). - loader.py (84% -> 100%): the entire Python-plugin runner (import failure, __plugins__ vs module-name dispatch, config passing, foreign-error adaptation, raising plugins), display-precision edges, both error wire formats, and the FFI-provided display_precision branches in load_string AND load_uncached via a stubbed engine. Also deletes a provably-dead `if counts:` guard. - types.py (80% -> 100%): FrozenDict semantics, all three cost-number wire generations (v0.20 list / v0.19 fields / flat scalar), typed custom values, meta normalization, amount/cost serializers, and directive_to_json edges via duck-typed beancount-style stubs. The unreachable exit edge of the directive elif-chain is eliminated structurally (last elif -> else; membership enforced at type resolution). - engine.py and __init__.py were already fully covered — exemptions simply dropped. 659 passed, 100.00% with no rustledger exemptions for the first time.
robcohen
enabled auto-merge (squash)
July 3, 2026 21:04
robcohen
force-pushed
the
test/burn-down-2
branch
from
July 3, 2026 21:04
5dc923f to
4286fde
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #237 (the v0.20.1 upgrade — merge that first; this contains its commits until then).
Completes the coverage burn-down: every remaining
rustledger/*exemption is deleted frompyproject.toml. 30 new unit tests:backend.pyoptions.pyRLBookingsemantics (documents that it's unhashable, unlike beancount's enum)loader.py__plugins__/module-name dispatch, config, foreign-error adaptation, raising plugins), both error wire formats, FFI-precision branches in both load paths via a stubbed engine; deletes one provably-dead guardtypes.pyelif-chain exit eliminated structurally (lastelif→else, membership enforced at type resolution)engine.py,__init__.pyAlso from this work session: item 3 of the improvement list (mutation-endpoint smoke) verified already satisfied by existing
test_json_apicoverage, and item 4 (abs(NULL)) fixed upstream as rustledger#1711.Validation
659 passed, 100.00% with no
rustledger/exemptions for the first time; pinned ruff + mypy clean.🤖 Generated with Claude Code