From a3bb9e3d84b81e3fe22d5314313b9e4a8526f482 Mon Sep 17 00:00:00 2001 From: Abhishekkochar Date: Sat, 14 Sep 2024 00:12:47 +0800 Subject: [PATCH 1/6] Fix: Allow missing docs for test modules --- crates/metrics/metrics-derive/tests/metrics.rs | 1 + crates/metrics/metrics-derive/tests/trybuild.rs | 1 + crates/net/network/tests/it/main.rs | 1 + crates/rpc/rpc-testing-util/tests/it/main.rs | 1 + crates/storage/libmdbx-rs/tests/cursor.rs | 1 + crates/storage/libmdbx-rs/tests/environment.rs | 1 + crates/storage/libmdbx-rs/tests/transaction.rs | 1 + 7 files changed, 7 insertions(+) diff --git a/crates/metrics/metrics-derive/tests/metrics.rs b/crates/metrics/metrics-derive/tests/metrics.rs index 5c79b0a3d387..a07ccc8a7ce1 100644 --- a/crates/metrics/metrics-derive/tests/metrics.rs +++ b/crates/metrics/metrics-derive/tests/metrics.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use metrics::{ Counter, Gauge, Histogram, Key, KeyName, Label, Metadata, Recorder, SharedString, Unit, }; diff --git a/crates/metrics/metrics-derive/tests/trybuild.rs b/crates/metrics/metrics-derive/tests/trybuild.rs index 9ab8d32e1027..3b06a672502d 100644 --- a/crates/metrics/metrics-derive/tests/trybuild.rs +++ b/crates/metrics/metrics-derive/tests/trybuild.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] #[test] fn compile_test() { let t = trybuild::TestCases::new(); diff --git a/crates/net/network/tests/it/main.rs b/crates/net/network/tests/it/main.rs index c23f93e0ec6d..090e60c7a31e 100644 --- a/crates/net/network/tests/it/main.rs +++ b/crates/net/network/tests/it/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod big_pooled_txs_req; mod connect; mod multiplex; diff --git a/crates/rpc/rpc-testing-util/tests/it/main.rs b/crates/rpc/rpc-testing-util/tests/it/main.rs index 4f65af8f959c..4e754ffcc2e3 100644 --- a/crates/rpc/rpc-testing-util/tests/it/main.rs +++ b/crates/rpc/rpc-testing-util/tests/it/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod trace; const fn main() {} diff --git a/crates/storage/libmdbx-rs/tests/cursor.rs b/crates/storage/libmdbx-rs/tests/cursor.rs index 306b87c0de6a..0e02eafd9abe 100644 --- a/crates/storage/libmdbx-rs/tests/cursor.rs +++ b/crates/storage/libmdbx-rs/tests/cursor.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use reth_libmdbx::*; use std::borrow::Cow; use tempfile::tempdir; diff --git a/crates/storage/libmdbx-rs/tests/environment.rs b/crates/storage/libmdbx-rs/tests/environment.rs index 85cf9a62a584..99453ef113af 100644 --- a/crates/storage/libmdbx-rs/tests/environment.rs +++ b/crates/storage/libmdbx-rs/tests/environment.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use byteorder::{ByteOrder, LittleEndian}; use reth_libmdbx::*; use tempfile::tempdir; diff --git a/crates/storage/libmdbx-rs/tests/transaction.rs b/crates/storage/libmdbx-rs/tests/transaction.rs index 8cdd2531c585..c7e8e3fcd37d 100644 --- a/crates/storage/libmdbx-rs/tests/transaction.rs +++ b/crates/storage/libmdbx-rs/tests/transaction.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use reth_libmdbx::*; use std::{ borrow::Cow, From 8fb0278b6277186a90f2ea1d6ea4c4121b682894 Mon Sep 17 00:00:00 2001 From: Abhishekkochar Date: Sat, 14 Sep 2024 12:11:29 +0800 Subject: [PATCH 2/6] Pin the Nighlty version to 2024-09-10 --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0eef396640a2..1cb7566a5068 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,7 +39,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly with: - toolchain: nightly-2024-09-09 + toolchain: nightly-2024-09-10 components: clippy - uses: Swatinem/rust-cache@v2 with: From 3c17ac3d6d087ceb18a3fcb96db5863258507827 Mon Sep 17 00:00:00 2001 From: Abhishekkochar Date: Sat, 14 Sep 2024 15:06:26 +0800 Subject: [PATCH 3/6] Refractor to suggested comments --- .github/workflows/lint.yml | 2 +- crates/metrics/metrics-derive/tests/metrics.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1cb7566a5068..0a06f66b771e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,7 +39,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly with: - toolchain: nightly-2024-09-10 + toolchain: nightly components: clippy - uses: Swatinem/rust-cache@v2 with: diff --git a/crates/metrics/metrics-derive/tests/metrics.rs b/crates/metrics/metrics-derive/tests/metrics.rs index a07ccc8a7ce1..933c82afca5b 100644 --- a/crates/metrics/metrics-derive/tests/metrics.rs +++ b/crates/metrics/metrics-derive/tests/metrics.rs @@ -1,4 +1,4 @@ -#![allow(missing_docs)] +#![expect(missing_docs)] use metrics::{ Counter, Gauge, Histogram, Key, KeyName, Label, Metadata, Recorder, SharedString, Unit, }; From 4e9fb26b9cd6024eff8a2d15ce8543321f0c44d6 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sat, 14 Sep 2024 10:25:50 +0200 Subject: [PATCH 4/6] expect missing docs --- testing/ef-tests/tests/tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/ef-tests/tests/tests.rs b/testing/ef-tests/tests/tests.rs index afbaa2e796e7..ee0d7bf95c2c 100644 --- a/testing/ef-tests/tests/tests.rs +++ b/testing/ef-tests/tests/tests.rs @@ -1,4 +1,5 @@ #![cfg(feature = "ef-tests")] +#![expect(missing_docs)] use ef_tests::{cases::blockchain_test::BlockchainTests, suite::Suite}; From b68da1f9b4c19a5a32c4f51a62fa173a9ce6e9d9 Mon Sep 17 00:00:00 2001 From: Abhishekkochar Date: Sun, 15 Sep 2024 21:37:21 +0800 Subject: [PATCH 5/6] Added #[allow(missing_docs)] to remaining test modules to bypass documentation warnings Signed-off-by: Abhishekkochar --- crates/ethereum/node/tests/e2e/main.rs | 1 + crates/ethereum/node/tests/it/main.rs | 1 + crates/net/eth-wire/tests/fuzz_roundtrip.rs | 2 +- crates/net/eth-wire/tests/new_block.rs | 2 +- crates/net/eth-wire/tests/new_pooled_transactions.rs | 2 +- crates/net/eth-wire/tests/pooled_transactions.rs | 2 +- crates/net/network/tests/it/connect.rs | 1 - crates/optimism/node/tests/e2e/main.rs | 1 + crates/optimism/node/tests/it/main.rs | 1 + crates/rpc/rpc-builder/tests/it/main.rs | 1 + crates/rpc/rpc-engine-api/tests/it/main.rs | 1 + crates/transaction-pool/tests/it/main.rs | 2 +- crates/trie/db/tests/fuzz_in_memory_nodes.rs | 1 + crates/trie/db/tests/post_state.rs | 1 + crates/trie/db/tests/proof.rs | 1 + crates/trie/db/tests/trie.rs | 1 + crates/trie/db/tests/walker.rs | 1 + 17 files changed, 16 insertions(+), 6 deletions(-) diff --git a/crates/ethereum/node/tests/e2e/main.rs b/crates/ethereum/node/tests/e2e/main.rs index e7bd7f032fea..4058073b42d4 100644 --- a/crates/ethereum/node/tests/e2e/main.rs +++ b/crates/ethereum/node/tests/e2e/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod blobs; mod dev; mod eth; diff --git a/crates/ethereum/node/tests/it/main.rs b/crates/ethereum/node/tests/it/main.rs index be04f7ed89e4..8d00188929af 100644 --- a/crates/ethereum/node/tests/it/main.rs +++ b/crates/ethereum/node/tests/it/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod builder; mod exex; diff --git a/crates/net/eth-wire/tests/fuzz_roundtrip.rs b/crates/net/eth-wire/tests/fuzz_roundtrip.rs index 7c01e1e1eb20..6fffe57768ab 100644 --- a/crates/net/eth-wire/tests/fuzz_roundtrip.rs +++ b/crates/net/eth-wire/tests/fuzz_roundtrip.rs @@ -1,5 +1,5 @@ //! Round-trip encoding fuzzing for the `eth-wire` crate. - +#![allow(missing_docs)] use alloy_rlp::{Decodable, Encodable}; use serde::Serialize; use std::fmt::Debug; diff --git a/crates/net/eth-wire/tests/new_block.rs b/crates/net/eth-wire/tests/new_block.rs index a1a6e043e382..f83b03cd3494 100644 --- a/crates/net/eth-wire/tests/new_block.rs +++ b/crates/net/eth-wire/tests/new_block.rs @@ -1,5 +1,5 @@ //! Decoding tests for [`NewBlock`] - +#![allow(missing_docs)] use alloy_rlp::Decodable; use reth_eth_wire::NewBlock; use reth_primitives::hex; diff --git a/crates/net/eth-wire/tests/new_pooled_transactions.rs b/crates/net/eth-wire/tests/new_pooled_transactions.rs index 48022185ce49..6fa07ce6006b 100644 --- a/crates/net/eth-wire/tests/new_pooled_transactions.rs +++ b/crates/net/eth-wire/tests/new_pooled_transactions.rs @@ -1,5 +1,5 @@ //! Decoding tests for [`NewPooledTransactions`] - +#![allow(missing_docs)] use alloy_rlp::Decodable; use reth_eth_wire::NewPooledTransactionHashes66; use reth_primitives::hex; diff --git a/crates/net/eth-wire/tests/pooled_transactions.rs b/crates/net/eth-wire/tests/pooled_transactions.rs index 5f7431f3dd73..ff5d9dfa0eba 100644 --- a/crates/net/eth-wire/tests/pooled_transactions.rs +++ b/crates/net/eth-wire/tests/pooled_transactions.rs @@ -1,5 +1,5 @@ //! Decoding tests for [`PooledTransactions`] - +#![allow(missing_docs)] use alloy_rlp::{Decodable, Encodable}; use reth_eth_wire::{EthVersion, PooledTransactions, ProtocolMessage}; use reth_primitives::{hex, PooledTransactionsElement}; diff --git a/crates/net/network/tests/it/connect.rs b/crates/net/network/tests/it/connect.rs index 8201b3280bcf..f01f9e0b9e5a 100644 --- a/crates/net/network/tests/it/connect.rs +++ b/crates/net/network/tests/it/connect.rs @@ -1,5 +1,4 @@ //! Connection tests - use std::{collections::HashSet, net::SocketAddr, time::Duration}; use alloy_node_bindings::Geth; diff --git a/crates/optimism/node/tests/e2e/main.rs b/crates/optimism/node/tests/e2e/main.rs index 5e0d022d22a0..b7ab3ad97d36 100644 --- a/crates/optimism/node/tests/e2e/main.rs +++ b/crates/optimism/node/tests/e2e/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] #[cfg(feature = "optimism")] mod p2p; diff --git a/crates/optimism/node/tests/it/main.rs b/crates/optimism/node/tests/it/main.rs index 573a944351c1..810b9750611e 100644 --- a/crates/optimism/node/tests/it/main.rs +++ b/crates/optimism/node/tests/it/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] #[cfg(feature = "optimism")] mod builder; diff --git a/crates/rpc/rpc-builder/tests/it/main.rs b/crates/rpc/rpc-builder/tests/it/main.rs index a64ad1da2f54..1ce295f8e187 100644 --- a/crates/rpc/rpc-builder/tests/it/main.rs +++ b/crates/rpc/rpc-builder/tests/it/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod auth; mod http; mod middleware; diff --git a/crates/rpc/rpc-engine-api/tests/it/main.rs b/crates/rpc/rpc-engine-api/tests/it/main.rs index fb4c7fa0d4a0..3431c0c646f1 100644 --- a/crates/rpc/rpc-engine-api/tests/it/main.rs +++ b/crates/rpc/rpc-engine-api/tests/it/main.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod payload; const fn main() {} diff --git a/crates/transaction-pool/tests/it/main.rs b/crates/transaction-pool/tests/it/main.rs index ead33a328ddf..772d00e914d4 100644 --- a/crates/transaction-pool/tests/it/main.rs +++ b/crates/transaction-pool/tests/it/main.rs @@ -1,5 +1,5 @@ //! transaction-pool integration tests - +#![allow(missing_docs)] #[cfg(feature = "test-utils")] mod blobs; #[cfg(feature = "test-utils")] diff --git a/crates/trie/db/tests/fuzz_in_memory_nodes.rs b/crates/trie/db/tests/fuzz_in_memory_nodes.rs index 3637dc8ba8f7..a9250fc25d54 100644 --- a/crates/trie/db/tests/fuzz_in_memory_nodes.rs +++ b/crates/trie/db/tests/fuzz_in_memory_nodes.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use proptest::prelude::*; use reth_db::{ cursor::{DbCursorRO, DbCursorRW, DbDupCursorRW}, diff --git a/crates/trie/db/tests/post_state.rs b/crates/trie/db/tests/post_state.rs index 16cece392384..46e9e1052984 100644 --- a/crates/trie/db/tests/post_state.rs +++ b/crates/trie/db/tests/post_state.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use proptest::prelude::*; use proptest_arbitrary_interop::arb; use reth_db::{tables, test_utils::create_test_rw_db}; diff --git a/crates/trie/db/tests/proof.rs b/crates/trie/db/tests/proof.rs index db9d708d4f52..18c4e304f83c 100644 --- a/crates/trie/db/tests/proof.rs +++ b/crates/trie/db/tests/proof.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use reth_chainspec::{Chain, ChainSpec, HOLESKY, MAINNET}; use reth_primitives::{constants::EMPTY_ROOT_HASH, keccak256, Account, Address, Bytes, B256, U256}; use reth_provider::test_utils::{create_test_provider_factory, insert_genesis}; diff --git a/crates/trie/db/tests/trie.rs b/crates/trie/db/tests/trie.rs index 007ce3069d4a..5db6a697a346 100644 --- a/crates/trie/db/tests/trie.rs +++ b/crates/trie/db/tests/trie.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use proptest::{prelude::ProptestConfig, proptest}; use proptest_arbitrary_interop::arb; use reth_db::{tables, test_utils::TempDatabase, DatabaseEnv}; diff --git a/crates/trie/db/tests/walker.rs b/crates/trie/db/tests/walker.rs index 19d5c5c32a98..5d8a5cc486ca 100644 --- a/crates/trie/db/tests/walker.rs +++ b/crates/trie/db/tests/walker.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use reth_db::tables; use reth_db_api::{cursor::DbCursorRW, transaction::DbTxMut}; use reth_primitives::B256; From d4e67443136edc5a42abe8a4a34532a2cba78a1d Mon Sep 17 00:00:00 2001 From: Abhishekkochar Date: Mon, 16 Sep 2024 14:12:44 +0800 Subject: [PATCH 6/6] Added documents exceptions to remaining test_utils files Signed-off-by: Abhishekkochar --- crates/chain-state/src/test_utils.rs | 1 + crates/consensus/beacon/src/engine/test_utils.rs | 1 + crates/engine/tree/src/test_utils.rs | 1 + crates/evm/src/test_utils.rs | 2 +- crates/exex/exex/src/backfill/test_utils.rs | 1 + crates/net/discv4/src/test_utils.rs | 2 +- crates/net/downloaders/src/test_utils/mod.rs | 2 +- crates/net/eth-wire/src/test_utils.rs | 2 +- crates/net/network-api/src/test_utils/mod.rs | 2 +- crates/net/network/src/test_utils/mod.rs | 2 +- crates/net/p2p/src/test_utils/mod.rs | 1 + crates/payload/builder/src/test_utils.rs | 2 +- crates/primitives-traits/src/header/test_utils.rs | 2 +- crates/revm/src/test_utils.rs | 1 + crates/stages/stages/src/test_utils/mod.rs | 1 + crates/storage/provider/src/test_utils/mod.rs | 1 + crates/tracing/src/test_tracer.rs | 1 + crates/transaction-pool/src/test_utils/mod.rs | 2 +- crates/trie/trie/src/test_utils.rs | 1 + 19 files changed, 19 insertions(+), 9 deletions(-) diff --git a/crates/chain-state/src/test_utils.rs b/crates/chain-state/src/test_utils.rs index d101b309a92a..4bbd75815ddc 100644 --- a/crates/chain-state/src/test_utils.rs +++ b/crates/chain-state/src/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use crate::{ in_memory::ExecutedBlock, CanonStateNotification, CanonStateNotifications, CanonStateSubscriptions, diff --git a/crates/consensus/beacon/src/engine/test_utils.rs b/crates/consensus/beacon/src/engine/test_utils.rs index 72e5d825fecb..c25e4aa24be7 100644 --- a/crates/consensus/beacon/src/engine/test_utils.rs +++ b/crates/consensus/beacon/src/engine/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use crate::{ engine::hooks::PruneHook, hooks::EngineHooks, BeaconConsensusEngine, BeaconConsensusEngineError, BeaconConsensusEngineHandle, BeaconForkChoiceUpdateError, diff --git a/crates/engine/tree/src/test_utils.rs b/crates/engine/tree/src/test_utils.rs index d76fabf43f6f..9dba4fffcb01 100644 --- a/crates/engine/tree/src/test_utils.rs +++ b/crates/engine/tree/src/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use reth_chainspec::ChainSpec; use reth_network_p2p::test_utils::TestFullBlockClient; use reth_primitives::{BlockBody, SealedHeader, B256}; diff --git a/crates/evm/src/test_utils.rs b/crates/evm/src/test_utils.rs index c3aa34a56a45..ca0332d9219f 100644 --- a/crates/evm/src/test_utils.rs +++ b/crates/evm/src/test_utils.rs @@ -1,5 +1,5 @@ //! Helpers for testing. - +#![allow(missing_docs)] use crate::execute::{ BatchExecutor, BlockExecutionInput, BlockExecutionOutput, BlockExecutorProvider, Executor, }; diff --git a/crates/exex/exex/src/backfill/test_utils.rs b/crates/exex/exex/src/backfill/test_utils.rs index 26f92ea87f09..cfcccac6a9c2 100644 --- a/crates/exex/exex/src/backfill/test_utils.rs +++ b/crates/exex/exex/src/backfill/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use std::sync::Arc; use eyre::OptionExt; diff --git a/crates/net/discv4/src/test_utils.rs b/crates/net/discv4/src/test_utils.rs index 06133dba6790..640249b0a042 100644 --- a/crates/net/discv4/src/test_utils.rs +++ b/crates/net/discv4/src/test_utils.rs @@ -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, diff --git a/crates/net/downloaders/src/test_utils/mod.rs b/crates/net/downloaders/src/test_utils/mod.rs index 320e7ce24952..a67d94a66679 100644 --- a/crates/net/downloaders/src/test_utils/mod.rs +++ b/crates/net/downloaders/src/test_utils/mod.rs @@ -1,5 +1,5 @@ //! Test helper impls. - +#![allow(missing_docs)] #![allow(dead_code)] use crate::{bodies::test_utils::create_raw_bodies, file_codec::BlockFileCodec}; diff --git a/crates/net/eth-wire/src/test_utils.rs b/crates/net/eth-wire/src/test_utils.rs index 5dfd8d74bae1..73d6847b34a3 100644 --- a/crates/net/eth-wire/src/test_utils.rs +++ b/crates/net/eth-wire/src/test_utils.rs @@ -1,5 +1,5 @@ //! Utilities for testing p2p protocol. - +#![allow(missing_docs)] use crate::{ hello::DEFAULT_TCP_PORT, EthVersion, HelloMessageWithProtocols, P2PStream, ProtocolVersion, Status, UnauthedP2PStream, diff --git a/crates/net/network-api/src/test_utils/mod.rs b/crates/net/network-api/src/test_utils/mod.rs index a3108a476d85..b5ff6fdfc723 100644 --- a/crates/net/network-api/src/test_utils/mod.rs +++ b/crates/net/network-api/src/test_utils/mod.rs @@ -1,5 +1,5 @@ //! API for integration testing network components. - +#![allow(missing_docs)] pub mod peers_manager; pub use peers_manager::{PeerCommand, PeersHandle, PeersHandleProvider}; diff --git a/crates/net/network/src/test_utils/mod.rs b/crates/net/network/src/test_utils/mod.rs index 71639bc71502..86d06768e216 100644 --- a/crates/net/network/src/test_utils/mod.rs +++ b/crates/net/network/src/test_utils/mod.rs @@ -1,5 +1,5 @@ //! Common helpers for network testing. - +#![allow(missing_docs)] mod init; mod testnet; diff --git a/crates/net/p2p/src/test_utils/mod.rs b/crates/net/p2p/src/test_utils/mod.rs index 1abd215d0245..799828e32d49 100644 --- a/crates/net/p2p/src/test_utils/mod.rs +++ b/crates/net/p2p/src/test_utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] mod bodies; mod full_block; mod headers; diff --git a/crates/payload/builder/src/test_utils.rs b/crates/payload/builder/src/test_utils.rs index e4083d3ab386..a0bfd2642453 100644 --- a/crates/payload/builder/src/test_utils.rs +++ b/crates/payload/builder/src/test_utils.rs @@ -1,5 +1,5 @@ //! Utils for testing purposes. - +#![allow(missing_docs)] use crate::{ error::PayloadBuilderError, traits::KeepPayloadJobAlive, EthBuiltPayload, EthPayloadBuilderAttributes, PayloadBuilderHandle, PayloadBuilderService, PayloadJob, diff --git a/crates/primitives-traits/src/header/test_utils.rs b/crates/primitives-traits/src/header/test_utils.rs index ef5c0d025360..93857eb4ddda 100644 --- a/crates/primitives-traits/src/header/test_utils.rs +++ b/crates/primitives-traits/src/header/test_utils.rs @@ -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}; diff --git a/crates/revm/src/test_utils.rs b/crates/revm/src/test_utils.rs index f54f10a381a3..663e8a99da59 100644 --- a/crates/revm/src/test_utils.rs +++ b/crates/revm/src/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use crate::precompile::HashMap; use alloc::vec::Vec; use reth_primitives::{ diff --git a/crates/stages/stages/src/test_utils/mod.rs b/crates/stages/stages/src/test_utils/mod.rs index 4e5344b22755..b6e92db0bc35 100644 --- a/crates/stages/stages/src/test_utils/mod.rs +++ b/crates/stages/stages/src/test_utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use reth_stages_api::StageId; #[cfg(test)] diff --git a/crates/storage/provider/src/test_utils/mod.rs b/crates/storage/provider/src/test_utils/mod.rs index e2d7e6d77d2d..4747d7655ee4 100644 --- a/crates/storage/provider/src/test_utils/mod.rs +++ b/crates/storage/provider/src/test_utils/mod.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use crate::{providers::StaticFileProvider, HashingWriter, ProviderFactory, TrieWriter}; use reth_chainspec::{ChainSpec, MAINNET}; use reth_db::{ diff --git a/crates/tracing/src/test_tracer.rs b/crates/tracing/src/test_tracer.rs index 532ad5243def..6ac9a76963c5 100644 --- a/crates/tracing/src/test_tracer.rs +++ b/crates/tracing/src/test_tracer.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use tracing_appender::non_blocking::WorkerGuard; use tracing_subscriber::EnvFilter; diff --git a/crates/transaction-pool/src/test_utils/mod.rs b/crates/transaction-pool/src/test_utils/mod.rs index 363d6e2a4f83..c6ff38fe376b 100644 --- a/crates/transaction-pool/src/test_utils/mod.rs +++ b/crates/transaction-pool/src/test_utils/mod.rs @@ -1,5 +1,5 @@ //! Internal helpers for testing. - +#![allow(missing_docs)] use crate::{blobstore::InMemoryBlobStore, noop::MockTransactionValidator, Pool, PoolConfig}; use std::ops::Deref; diff --git a/crates/trie/trie/src/test_utils.rs b/crates/trie/trie/src/test_utils.rs index 0d0462be90f2..ba32b0532445 100644 --- a/crates/trie/trie/src/test_utils.rs +++ b/crates/trie/trie/src/test_utils.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use alloy_primitives::{Address, B256, U256}; use alloy_rlp::encode_fixed_size; use reth_primitives::Account;