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

chore(mpt): Noop Provider Refactor #645

Closed
wants to merge 3 commits into from

Conversation

refcell
Copy link
Collaborator

@refcell refcell commented Oct 7, 2024

Description

Pulls Noop provider and hinter into the test-utils feat flag.

This increases code coverage % since these noop impls were not, and don't need to be covered as they are test utilities, shared by the benchmark code.

@refcell refcell added K-chore Kind: chore M-tests Meta: Testing related A-mpt Area: kona-mpt crate labels Oct 7, 2024
@refcell refcell self-assigned this Oct 7, 2024
@refcell refcell requested a review from clabby as a code owner October 7, 2024 19:41
@refcell refcell force-pushed the rf/feat/mpt-noop-provider-refactor branch from 27c25e3 to 085bdeb Compare October 7, 2024 20:11
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.2%. Comparing base (4bf4264) to head (2af87af).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

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


/// The default, no-op implementation of the [TrieHinter] trait, used for testing.
#[derive(Debug, Clone, Copy)]
pub struct NoopTrieHinter;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think these belong in test utils unfortunately. Succinct and other downstream implementers use this - non FPVM targets don't have hints.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Specifically the hinter - if we really want to we can keep the provider behind the test utils, but may as well also distribute it if we have the noop hinter distributed.

@refcell
Copy link
Collaborator Author

refcell commented Oct 7, 2024

Replaced by #649

@refcell refcell closed this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-mpt Area: kona-mpt crate K-chore Kind: chore M-tests Meta: Testing related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants