Skip to content

Commit

Permalink
[Fuzzing] Group fuzz targets by component/area.
Browse files Browse the repository at this point in the history
Closes: diem#5699
  • Loading branch information
JoshLind authored and bors-libra committed Aug 21, 2020
1 parent d1c748c commit 46979e4
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions testsuite/libra-fuzzer/src/fuzz_targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,29 @@ mod transaction;
mod vm;

static ALL_TARGETS: Lazy<BTreeMap<&'static str, Box<dyn FuzzTargetImpl>>> = Lazy::new(|| {
// List fuzz targets here in this format:
let targets: Vec<Box<dyn FuzzTargetImpl>> = vec![
// List fuzz targets here in this format.
// Consensus
Box::new(consensus::ConsensusProposal::default()),
// Executor
Box::new(executor::ExecuteAndCommitChunk::default()),
// JSON RPC Service
Box::new(json_rpc_service::JsonRpcSubmitTransactionRequest::default()),
// Mempool
Box::new(mempool::MempoolIncomingTransactions::default()),
// Move VM
Box::new(move_vm::ValueTarget::default()),
// Network
Box::new(network::RpcInboundRequest::default()),
// Network Noise
Box::new(network_noise::NetworkNoiseInitiator::default()),
Box::new(network_noise::NetworkNoiseResponder::default()),
Box::new(network_noise::NetworkNoiseStream::default()),
// Secure JSON RPC Client
Box::new(secure_json_rpc_client::SecureJsonRpcSubmitTransaction::default()),
Box::new(secure_json_rpc_client::SecureJsonRpcGetAccountState::default()),
Box::new(secure_json_rpc_client::SecureJsonRpcGetAccountTransaction::default()),
// Secure Storage Vault
Box::new(secure_storage_vault::VaultGenericResponse::default()),
Box::new(secure_storage_vault::VaultPolicyReadResponse::default()),
Box::new(secure_storage_vault::VaultPolicyListResponse::default()),
Expand All @@ -50,11 +59,15 @@ static ALL_TARGETS: Lazy<BTreeMap<&'static str, Box<dyn FuzzTargetImpl>>> = Lazy
Box::new(secure_storage_vault::VaultTransitRestoreResponse::default()),
Box::new(secure_storage_vault::VaultTransitSignResponse::default()),
Box::new(secure_storage_vault::VaultUnsealedResponse::default()),
// State Sync
Box::new(state_sync::StateSyncMsg::default()),
// Box::new(storage::StorageSaveBlocks::default()),
// Storage
// Box::new(storage::StorageSaveBlocks::default()),
Box::new(storage::StorageSchemaDecode::default()),
// Transaction
Box::new(transaction::LanguageTransactionExecution::default()),
Box::new(transaction::SignedTransactionTarget::default()),
// VM
Box::new(vm::CompiledModuleTarget::default()),
];
targets
Expand Down

0 comments on commit 46979e4

Please sign in to comment.