-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactor: use mock test utils in update skeleton tests #320
refactor: use mock test utils in update skeleton tests #320
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @AvivYossef-starkware and the rest of your teammates on Graphite |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #320 +/- ##
=======================================
Coverage 70.03% 70.03%
=======================================
Files 38 38
Lines 2109 2109
Branches 2109 2109
=======================================
Hits 1477 1477
Misses 562 562
Partials 70 70 ☔ View full report in Codecov by Sentry. |
7f3b84f
to
efead81
Compare
820db4f
to
bbaa973
Compare
efead81
to
031e6ae
Compare
bbaa973
to
ca1fd58
Compare
031e6ae
to
2835fec
Compare
ff53cf1
to
2c72154
Compare
2835fec
to
dd68329
Compare
2c72154
to
22f324c
Compare
dd68329
to
c63563f
Compare
22f324c
to
c2be47f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 3 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @AvivYossef-starkware)
crates/committer/src/patricia_merkle_tree/internal_test_utils.rs
line 29 at r2 (raw file):
use rstest::{fixture, rstest}; use crate::patricia_merkle_tree::filled_tree::tree::FilledTreeImpl;
if you move this above the use ethnum::U256
will it be sorted better...?
Code quote:
use crate::patricia_merkle_tree::filled_tree::tree::FilledTreeImpl;
crates/committer/src/patricia_merkle_tree/updated_skeleton_tree/create_tree_helper_test.rs
line 503 at r2 (raw file):
#[tokio::test] async fn test_update_non_modified_storage_tree(#[case] root_hash: HashOutput) { use crate::patricia_merkle_tree::internal_test_utils::OriginalSkeletonMockTrieConfig;
move to top
Code quote:
use crate::patricia_merkle_tree::internal_test_utils::OriginalSkeletonMockTrieConfig
crates/committer/src/patricia_merkle_tree/updated_skeleton_tree/tree_test.rs
line 148 at r2 (raw file):
#[case::non_empty_modifications(HashMap::from([(NodeIndex::FIRST_LEAF + NodeIndex::from(7), MockLeaf::default())]))] fn test_updated_empty_tree(#[case] modifications: LeafModifications<MockLeaf>) { use crate::patricia_merkle_tree::internal_test_utils::OriginalSkeletonMockTrieConfig;
move to top
Code quote:
use crate::patricia_merkle_tree::internal_test_utils::OriginalSkeletonMockTrieConfig;
51282ef
to
760e4bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 3 files reviewed, 3 unresolved discussions (waiting on @dorimedini-starkware)
crates/committer/src/patricia_merkle_tree/internal_test_utils.rs
line 29 at r2 (raw file):
Previously, dorimedini-starkware wrote…
if you move this above the
use ethnum::U256
will it be sorted better...?
Yes.
crates/committer/src/patricia_merkle_tree/updated_skeleton_tree/create_tree_helper_test.rs
line 503 at r2 (raw file):
Previously, dorimedini-starkware wrote…
move to top
Done.
crates/committer/src/patricia_merkle_tree/updated_skeleton_tree/tree_test.rs
line 148 at r2 (raw file):
Previously, dorimedini-starkware wrote…
move to top
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware)
crates/committer/src/patricia_merkle_tree/updated_skeleton_tree/create_tree_helper_test.rs
line 503 at r2 (raw file):
Previously, AvivYossef-starkware wrote…
Done.
nope
760e4bc
to
172dc30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)
crates/committer/src/patricia_merkle_tree/updated_skeleton_tree/create_tree_helper_test.rs
line 503 at r2 (raw file):
Previously, dorimedini-starkware wrote…
nope
Sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware)
This change is