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

Migrate pallet-paged-list-fuzzer to umbrella crate #6930

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = ["experimental", "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
Loading