Skip to content

Commit

Permalink
Added documents exceptions to remaining test_utils files
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishekkochar <[email protected]>
  • Loading branch information
Abhishekkochar committed Sep 16, 2024
1 parent b68da1f commit d4e6744
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 9 deletions.
1 change: 1 addition & 0 deletions crates/chain-state/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use crate::{
in_memory::ExecutedBlock, CanonStateNotification, CanonStateNotifications,
CanonStateSubscriptions,
Expand Down
1 change: 1 addition & 0 deletions crates/consensus/beacon/src/engine/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use crate::{
engine::hooks::PruneHook, hooks::EngineHooks, BeaconConsensusEngine,
BeaconConsensusEngineError, BeaconConsensusEngineHandle, BeaconForkChoiceUpdateError,
Expand Down
1 change: 1 addition & 0 deletions crates/engine/tree/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use reth_chainspec::ChainSpec;
use reth_network_p2p::test_utils::TestFullBlockClient;
use reth_primitives::{BlockBody, SealedHeader, B256};
Expand Down
2 changes: 1 addition & 1 deletion crates/evm/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Helpers for testing.
#![allow(missing_docs)]
use crate::execute::{
BatchExecutor, BlockExecutionInput, BlockExecutionOutput, BlockExecutorProvider, Executor,
};
Expand Down
1 change: 1 addition & 0 deletions crates/exex/exex/src/backfill/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use std::sync::Arc;

use eyre::OptionExt;
Expand Down
2 changes: 1 addition & 1 deletion crates/net/discv4/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Mock discovery support
#![allow(missing_docs)]
use crate::{
proto::{FindNode, Message, Neighbours, NodeEndpoint, Packet, Ping, Pong},
receive_loop, send_loop, Discv4, Discv4Config, Discv4Service, EgressSender, IngressEvent,
Expand Down
2 changes: 1 addition & 1 deletion crates/net/downloaders/src/test_utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Test helper impls.
#![allow(missing_docs)]
#![allow(dead_code)]

use crate::{bodies::test_utils::create_raw_bodies, file_codec::BlockFileCodec};
Expand Down
2 changes: 1 addition & 1 deletion crates/net/eth-wire/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Utilities for testing p2p protocol.
#![allow(missing_docs)]
use crate::{
hello::DEFAULT_TCP_PORT, EthVersion, HelloMessageWithProtocols, P2PStream, ProtocolVersion,
Status, UnauthedP2PStream,
Expand Down
2 changes: 1 addition & 1 deletion crates/net/network-api/src/test_utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! API for integration testing network components.
#![allow(missing_docs)]
pub mod peers_manager;

pub use peers_manager::{PeerCommand, PeersHandle, PeersHandleProvider};
2 changes: 1 addition & 1 deletion crates/net/network/src/test_utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Common helpers for network testing.
#![allow(missing_docs)]
mod init;
mod testnet;

Expand Down
1 change: 1 addition & 0 deletions crates/net/p2p/src/test_utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
mod bodies;
mod full_block;
mod headers;
Expand Down
2 changes: 1 addition & 1 deletion crates/payload/builder/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Utils for testing purposes.
#![allow(missing_docs)]
use crate::{
error::PayloadBuilderError, traits::KeepPayloadJobAlive, EthBuiltPayload,
EthPayloadBuilderAttributes, PayloadBuilderHandle, PayloadBuilderService, PayloadJob,
Expand Down
2 changes: 1 addition & 1 deletion crates/primitives-traits/src/header/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Test utilities to generate random valid headers.
#![allow(missing_docs)]
use crate::Header;
use alloy_primitives::B256;
use proptest::{arbitrary::any, prop_compose};
Expand Down
1 change: 1 addition & 0 deletions crates/revm/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use crate::precompile::HashMap;
use alloc::vec::Vec;
use reth_primitives::{
Expand Down
1 change: 1 addition & 0 deletions crates/stages/stages/src/test_utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use reth_stages_api::StageId;

#[cfg(test)]
Expand Down
1 change: 1 addition & 0 deletions crates/storage/provider/src/test_utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use crate::{providers::StaticFileProvider, HashingWriter, ProviderFactory, TrieWriter};
use reth_chainspec::{ChainSpec, MAINNET};
use reth_db::{
Expand Down
1 change: 1 addition & 0 deletions crates/tracing/src/test_tracer.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use tracing_appender::non_blocking::WorkerGuard;
use tracing_subscriber::EnvFilter;

Expand Down
2 changes: 1 addition & 1 deletion crates/transaction-pool/src/test_utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Internal helpers for testing.
#![allow(missing_docs)]
use crate::{blobstore::InMemoryBlobStore, noop::MockTransactionValidator, Pool, PoolConfig};
use std::ops::Deref;

Expand Down
1 change: 1 addition & 0 deletions crates/trie/trie/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(missing_docs)]
use alloy_primitives::{Address, B256, U256};
use alloy_rlp::encode_fixed_size;
use reth_primitives::Account;
Expand Down

0 comments on commit d4e6744

Please sign in to comment.