Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

chore(mpt): Noop Provider Refactor#645

Closed
refcell wants to merge 3 commits intomainfrom
rf/feat/mpt-noop-provider-refactor
Closed

chore(mpt): Noop Provider Refactor#645
refcell wants to merge 3 commits intomainfrom
rf/feat/mpt-noop-provider-refactor

Conversation

@refcell
Copy link
Contributor

@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 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
@codecov
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
Contributor

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
Contributor

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
Contributor Author

refcell commented Oct 7, 2024

Replaced by #649

@refcell refcell closed this Oct 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

K-chore Kind: chore M-tests Meta: Testing related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants