Skip to content

Commit

Permalink
Migrate pallet-paged-list-fuzzer to umbrella crate (paritytech#6930)
Browse files Browse the repository at this point in the history
Part of  paritytech#6504

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Giuseppe Re <giuseppe.re@parity.io>
  • Loading branch information
3 people authored and mordamax committed Jan 21, 2025
1 parent bef51c6 commit 7d7c9b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions substrate/frame/paged-list/fuzzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ path = "src/paged_list.rs"

[dependencies]
arbitrary = { workspace = true }
frame = { workspace = true, features = ["runtime"] }
honggfuzz = { workspace = true }

frame-support = { features = ["std"], workspace = true }
pallet-paged-list = { features = ["std"], workspace = true }
sp-io = { features = ["std"], workspace = true }

[features]
default = ["std"]
std = [
"frame/std",
"pallet-paged-list/std",
]
7 changes: 5 additions & 2 deletions substrate/frame/paged-list/fuzzer/src/paged_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@
use arbitrary::Arbitrary;
use honggfuzz::fuzz;

use frame_support::{storage::StorageList, StorageNoopGuard};
use frame::{
prelude::*, runtime::prelude::storage::storage_noop_guard::StorageNoopGuard,
testing_prelude::TestExternalities,
};

use pallet_paged_list::mock::{PagedList as List, *};
use sp_io::TestExternalities;
type Meta = MetaOf<Test, ()>;

fn main() {
Expand Down

0 comments on commit 7d7c9b6

Please sign in to comment.