diff --git a/crates/astria-cli/src/commands/sequencer.rs b/crates/astria-cli/src/commands/sequencer.rs index 46259e4763..c8f19bdb65 100644 --- a/crates/astria-cli/src/commands/sequencer.rs +++ b/crates/astria-cli/src/commands/sequencer.rs @@ -501,7 +501,7 @@ async fn submit_transaction( } #[cfg(test)] -mod test { +mod tests { use super::*; #[test] diff --git a/crates/astria-conductor/src/celestia/block_verifier.rs b/crates/astria-conductor/src/celestia/block_verifier.rs index 565f284320..7d9328bc08 100644 --- a/crates/astria-conductor/src/celestia/block_verifier.rs +++ b/crates/astria-conductor/src/celestia/block_verifier.rs @@ -217,7 +217,7 @@ fn verify_vote_signature( } #[cfg(test)] -mod test { +mod tests { use std::collections::BTreeMap; use astria_core::{ diff --git a/crates/astria-conductor/src/conductor/inner.rs b/crates/astria-conductor/src/conductor/inner.rs index 15449c8928..243f69569e 100644 --- a/crates/astria-conductor/src/conductor/inner.rs +++ b/crates/astria-conductor/src/conductor/inner.rs @@ -306,7 +306,7 @@ fn check_for_restart(name: &str, err: &eyre::ErrReport) -> bool { } #[cfg(test)] -mod test { +mod tests { use astria_eyre::eyre::WrapErr as _; #[test] diff --git a/crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__test__ics20_transfer_deposit_memo_snapshot.snap b/crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__tests__ics20_transfer_deposit_memo_snapshot.snap similarity index 88% rename from crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__test__ics20_transfer_deposit_memo_snapshot.snap rename to crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__tests__ics20_transfer_deposit_memo_snapshot.snap index 85d1a4c2b8..b31b2f864d 100644 --- a/crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__test__ics20_transfer_deposit_memo_snapshot.snap +++ b/crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__tests__ics20_transfer_deposit_memo_snapshot.snap @@ -1,5 +1,6 @@ --- source: crates/astria-core/src/protocol/memos/v1alpha1.rs +assertion_line: 28 expression: memo --- { diff --git a/crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__test__ics20_withdrawal_from_rollup_memo_snapshot.snap b/crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__tests__ics20_withdrawal_from_rollup_memo_snapshot.snap similarity index 92% rename from crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__test__ics20_withdrawal_from_rollup_memo_snapshot.snap rename to crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__tests__ics20_withdrawal_from_rollup_memo_snapshot.snap index 0f7388fcdd..d3f43f6eb0 100644 --- a/crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__test__ics20_withdrawal_from_rollup_memo_snapshot.snap +++ b/crates/astria-core/src/protocol/memos/snapshots/astria_core__protocol__memos__v1alpha1__tests__ics20_withdrawal_from_rollup_memo_snapshot.snap @@ -1,5 +1,6 @@ --- source: crates/astria-core/src/protocol/memos/v1alpha1.rs +assertion_line: 19 expression: memo --- { diff --git a/crates/astria-core/src/protocol/memos/v1alpha1.rs b/crates/astria-core/src/protocol/memos/v1alpha1.rs index 9bc1d794a0..d233895875 100644 --- a/crates/astria-core/src/protocol/memos/v1alpha1.rs +++ b/crates/astria-core/src/protocol/memos/v1alpha1.rs @@ -4,7 +4,7 @@ pub use crate::generated::protocol::memos::v1alpha1::{ }; #[cfg(all(feature = "serde", test))] -mod test { +mod tests { use super::*; #[test] diff --git a/crates/astria-core/src/protocol/transaction/v1alpha1/mod.rs b/crates/astria-core/src/protocol/transaction/v1alpha1/mod.rs index d534c9c548..6acba028ae 100644 --- a/crates/astria-core/src/protocol/transaction/v1alpha1/mod.rs +++ b/crates/astria-core/src/protocol/transaction/v1alpha1/mod.rs @@ -554,7 +554,7 @@ enum TransactionFeeResponseErrorKind { } #[cfg(test)] -mod test { +mod tests { use super::*; use crate::{ primitive::v1::{ diff --git a/crates/astria-core/src/protocol/transaction/v1alpha1/snapshots/astria_core__protocol__transaction__v1alpha1__test__signed_transaction_hash.snap b/crates/astria-core/src/protocol/transaction/v1alpha1/snapshots/astria_core__protocol__transaction__v1alpha1__tests__signed_transaction_hash.snap similarity index 89% rename from crates/astria-core/src/protocol/transaction/v1alpha1/snapshots/astria_core__protocol__transaction__v1alpha1__test__signed_transaction_hash.snap rename to crates/astria-core/src/protocol/transaction/v1alpha1/snapshots/astria_core__protocol__transaction__v1alpha1__tests__signed_transaction_hash.snap index e3ec0c3f1a..317e90ac2c 100644 --- a/crates/astria-core/src/protocol/transaction/v1alpha1/snapshots/astria_core__protocol__transaction__v1alpha1__test__signed_transaction_hash.snap +++ b/crates/astria-core/src/protocol/transaction/v1alpha1/snapshots/astria_core__protocol__transaction__v1alpha1__tests__signed_transaction_hash.snap @@ -1,5 +1,6 @@ --- source: crates/astria-core/src/protocol/transaction/v1alpha1/mod.rs +assertion_line: 613 expression: tx.id() --- { diff --git a/crates/astria-eyre/src/lib.rs b/crates/astria-eyre/src/lib.rs index 905fb9e002..05e0137556 100644 --- a/crates/astria-eyre/src/lib.rs +++ b/crates/astria-eyre/src/lib.rs @@ -105,7 +105,7 @@ mod anyhow_conversion { } #[cfg(test)] - mod test { + mod tests { #[test] fn anyhow_to_eyre_preserves_source_chain() { let mut errs = ["foo", "bar", "baz", "qux"]; diff --git a/crates/astria-sequencer/src/address/state_ext.rs b/crates/astria-sequencer/src/address/state_ext.rs index 74a0a776aa..448a80e22a 100644 --- a/crates/astria-sequencer/src/address/state_ext.rs +++ b/crates/astria-sequencer/src/address/state_ext.rs @@ -102,7 +102,7 @@ pub(crate) trait StateWriteExt: StateWrite { impl StateWriteExt for T {} #[cfg(test)] -mod test { +mod tests { use cnidarium::StateDelta; use super::{ diff --git a/crates/astria-sequencer/src/api_state_ext.rs b/crates/astria-sequencer/src/api_state_ext.rs index 17c6b2545c..f0a5d5f708 100644 --- a/crates/astria-sequencer/src/api_state_ext.rs +++ b/crates/astria-sequencer/src/api_state_ext.rs @@ -395,7 +395,7 @@ pub(crate) trait StateWriteExt: StateWrite { impl StateWriteExt for T {} #[cfg(test)] -mod test { +mod tests { use astria_core::{ primitive::v1::TransactionId, protocol::test_utils::ConfigureSequencerBlock, diff --git a/crates/astria-sequencer/src/authority/action.rs b/crates/astria-sequencer/src/authority/action.rs index 435d301d35..130b87624e 100644 --- a/crates/astria-sequencer/src/authority/action.rs +++ b/crates/astria-sequencer/src/authority/action.rs @@ -185,7 +185,7 @@ impl ActionHandler for IbcSudoChangeAction { } #[cfg(test)] -mod test { +mod tests { use astria_core::primitive::v1::TransactionId; use cnidarium::StateDelta; diff --git a/crates/astria-sequencer/src/bridge/query.rs b/crates/astria-sequencer/src/bridge/query.rs index 6c0d054fe1..fe619a9dd8 100644 --- a/crates/astria-sequencer/src/bridge/query.rs +++ b/crates/astria-sequencer/src/bridge/query.rs @@ -291,7 +291,7 @@ fn preprocess_request(params: &[(String, String)]) -> Result StateWriteExt for T {} #[cfg(test)] -mod test { +mod tests { use astria_core::{ primitive::v1::{ asset, diff --git a/crates/astria-sequencer/src/grpc/sequencer.rs b/crates/astria-sequencer/src/grpc/sequencer.rs index 5263a09da6..f7ddf660c4 100644 --- a/crates/astria-sequencer/src/grpc/sequencer.rs +++ b/crates/astria-sequencer/src/grpc/sequencer.rs @@ -215,7 +215,7 @@ impl SequencerService for SequencerServer { } #[cfg(test)] -mod test { +mod tests { use astria_core::{ protocol::test_utils::ConfigureSequencerBlock, sequencerblock::v1alpha1::SequencerBlock, diff --git a/crates/astria-sequencer/src/mempool/mod.rs b/crates/astria-sequencer/src/mempool/mod.rs index c015965ab0..b47f2482a3 100644 --- a/crates/astria-sequencer/src/mempool/mod.rs +++ b/crates/astria-sequencer/src/mempool/mod.rs @@ -409,7 +409,7 @@ impl Mempool { } #[cfg(test)] -mod test { +mod tests { use astria_core::crypto::SigningKey; use super::*; diff --git a/crates/astria-sequencer/src/mempool/transactions_container.rs b/crates/astria-sequencer/src/mempool/transactions_container.rs index a0d1e5ee08..62cd0d2fbd 100644 --- a/crates/astria-sequencer/src/mempool/transactions_container.rs +++ b/crates/astria-sequencer/src/mempool/transactions_container.rs @@ -779,7 +779,7 @@ impl TransactionsContainer Option StateWriteExt for T {} #[cfg(test)] -mod test { +mod tests { use cnidarium::StateDelta; use super::{ diff --git a/crates/astria-sequencer/src/service/consensus.rs b/crates/astria-sequencer/src/service/consensus.rs index 4fd31287cb..001d7aceae 100644 --- a/crates/astria-sequencer/src/service/consensus.rs +++ b/crates/astria-sequencer/src/service/consensus.rs @@ -196,7 +196,7 @@ impl Consensus { } #[cfg(test)] -mod test { +mod tests { use std::{ collections::HashMap, str::FromStr, diff --git a/crates/astria-sequencer/src/service/info/mod.rs b/crates/astria-sequencer/src/service/info/mod.rs index e27935e4bc..072dfcb353 100644 --- a/crates/astria-sequencer/src/service/info/mod.rs +++ b/crates/astria-sequencer/src/service/info/mod.rs @@ -177,7 +177,7 @@ impl Service for Info { } #[cfg(test)] -mod test { +mod tests { use astria_core::{ primitive::v1::asset, protocol::{