Skip to content

Commit

Permalink
🎨 Split fuzz code into multiple files to improve crate structure
Browse files Browse the repository at this point in the history
  • Loading branch information
lukacan committed Jul 20, 2024
1 parent 892166f commit 3f9cd4f
Show file tree
Hide file tree
Showing 14 changed files with 428 additions and 383 deletions.
2 changes: 1 addition & 1 deletion crates/client/src/commander.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use tokio::{

use crate::constants::*;
use tokio::io::AsyncBufReadExt;
use trident_fuzz::fuzzing_stats::FuzzingStatistics;
use trident_fuzz::fuzz_stats::FuzzingStatistics;

#[derive(Error, Debug)]
pub enum Error {
Expand Down
12 changes: 8 additions & 4 deletions crates/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ pub mod fuzzing {
pub use trident_derive_fuzz_deserialize::FuzzDeserialize;
pub use trident_derive_fuzz_test_executor::FuzzTestExecutor;

/// trident macros
pub use trident_fuzz::convert_entry;
pub use trident_fuzz::fuzz_trident;
pub use trident_fuzz::show_account;
/// trident macros
pub use trident_fuzz::*;

pub use solana_program_test::processor;
Expand All @@ -47,10 +47,14 @@ pub mod fuzzing {
pub use super::temp_clone::*;
/// trident methods
pub use trident_fuzz::accounts_storage::*;
pub use trident_fuzz::data_builder::build_ix_fuzz_data;
pub use trident_fuzz::data_builder::*;
pub use trident_fuzz::error::*;
pub use trident_fuzz::fuzzing_stats::FuzzingStatistics;
pub use trident_fuzz::fuzz_client::FuzzClient;
pub use trident_fuzz::fuzz_data::build_ix_fuzz_data;
pub use trident_fuzz::fuzz_data::*;
pub use trident_fuzz::fuzz_deserialize::FuzzDeserialize;
pub use trident_fuzz::fuzz_stats::FuzzingStatistics;
pub use trident_fuzz::fuzz_test_executor::FuzzTestExecutor;
pub use trident_fuzz::ix_ops::IxOps;
pub use trident_fuzz::program_test_client_blocking::ProgramTestClientBlocking;
pub use trident_fuzz::snapshot::Snapshot;

Expand Down
2 changes: 1 addition & 1 deletion crates/fuzz/src/accounts_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::collections::HashMap;

use solana_sdk::{pubkey::Pubkey, signature::Keypair};

use crate::{data_builder::FuzzClient, AccountId};
use crate::{fuzz_client::FuzzClient, AccountId};

pub struct PdaStore {
pub pubkey: Pubkey,
Expand Down
Loading

0 comments on commit 3f9cd4f

Please sign in to comment.