Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back references #473

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Back references #473

merged 2 commits into from
Oct 17, 2024

Conversation

arvidn
Copy link
Contributor

@arvidn arvidn commented Sep 24, 2024

This PR makes two changes:

  1. It simplifies the back-references CLVM deserializer using let else and panic!() to make it clear to the reader that it's always supposed to find pairs in those positions. The variables are also renamed to make it clearer what's happening.
  2. It simplifies the tests by parameterizing them (with rstest) rather than having a series of function calls, one for each test case.

Copy link

Pull Request Test Coverage Report for Build 11012825993

Details

  • 8 of 10 (80.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.09%) to 93.923%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/serde/de_br.rs 8 10 80.0%
Totals Coverage Status
Change from base Build 11002343682: -0.09%
Covered Lines: 5610
Relevant Lines: 5973

💛 - Coveralls

Copy link
Contributor

@richardkiss richardkiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good.

@arvidn arvidn enabled auto-merge October 17, 2024 16:42
@arvidn arvidn merged commit 1b804d5 into main Oct 17, 2024
29 checks passed
@arvidn arvidn deleted the back-references branch October 17, 2024 20:22
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.

2 participants