Skip to content

test: 100% coverage - #190

Merged
ItsANameToo merged 7 commits into
developfrom
test/100-percent-coverage
Dec 2, 2026
Merged

ItsANameToo merged 7 commits into
developfrom
test/100-percent-coverage

Conversation

@alexbarnsley

Copy link
Copy Markdown
Member

Summary

https://app.clickup.com/t/2570579/1dfhrmr9vfg

requires #188

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

The deserializer sliced the vendor field from the wrong offset, so vendorFieldHex was always empty and the id of transactions with a vendor field was wrong. Serializing a vendorFieldHex crashed, and the vendor field length was written in characters rather than bytes.
…igned deserialization

str() of an HTLC_LOCK_EXPIRATION_TYPE raised a TypeError, verify_schnorr_secondsig returned None when valid, and the signature check in parse_signatures had an operator precedence bug that set an empty signature on unsigned transactions.
The sign methods on the Vote and DelegateRegistration builders called a parent sign method that no longer exists, so they always raised. The Transaction _handle_transaction_type and _handle_signature methods were never called. The serializer and deserializer lookup loops had branches that could never run.
@codecov-commenter

codecov-commenter commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d514bcb) to head (faca9a7).

Additional details and impacted files
@@              Coverage Diff              @@
##           develop      #190       +/-   ##
=============================================
+ Coverage    89.21%   100.00%   +10.78%     
=============================================
  Files           53        53               
  Lines          983       938       -45     
  Branches        89        76       -13     
=============================================
+ Hits           877       938       +61     
+ Misses          68         0       -68     
+ Partials        38         0       -38     

☔ 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.

@alexbarnsley alexbarnsley changed the title test(master): 100 percent coverage test(master): 100% coverage Dec 2, 2026
@alexbarnsley alexbarnsley changed the title test(master): 100% coverage test: 100% coverage Dec 2, 2026
Base automatically changed from chore/update-dependencies to develop December 2, 2026 14:30
@alexbarnsley
alexbarnsley marked this pull request as ready for review December 2, 2026 15:45
@ItsANameToo
ItsANameToo merged commit ed70d38 into develop Dec 2, 2026
3 checks passed
@ItsANameToo
ItsANameToo deleted the test/100-percent-coverage branch December 2, 2026 16:03
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.

3 participants