Skip to content

Commit 8e64b7f

Browse files
committed
refactor(common): rename mithril_common::test_utils module to test
1 parent 5851af0 commit 8e64b7f

File tree

218 files changed

+252
-257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+252
-257
lines changed

internal/cardano-node/mithril-cardano-node-chain/src/chain_observer/pallas_observer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ mod tests {
529529
use tokio::net::UnixListener;
530530

531531
use mithril_common::crypto_helper::ColdKeyGenerator;
532-
use mithril_common::test_utils::TempDir;
532+
use mithril_common::test::TempDir;
533533

534534
use super::*;
535535

internal/cardano-node/mithril-cardano-node-chain/src/chain_reader/pallas_chain_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ mod tests {
160160
use std::fs;
161161
use tokio::net::UnixListener;
162162

163-
use mithril_common::{current_function, entities::BlockNumber, test_utils::TempDir};
163+
use mithril_common::{current_function, entities::BlockNumber, test::TempDir};
164164

165165
use crate::test::TestLogger;
166166

internal/cardano-node/mithril-cardano-node-chain/src/test/double/chain_observer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl ChainObserver for FakeChainObserver {
212212

213213
#[cfg(test)]
214214
mod tests {
215-
use mithril_common::test_utils::double::{Dummy, fake_data};
215+
use mithril_common::test::double::{Dummy, fake_data};
216216

217217
use super::*;
218218

internal/cardano-node/mithril-cardano-node-internal-database/src/digesters/cache/json_provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl ImmutableFileDigestCacheProvider for JsonImmutableFileDigestCacheProvider {
109109
mod tests {
110110
use std::{collections::BTreeMap, path::PathBuf};
111111

112-
use mithril_common::test_utils::TempDir;
112+
use mithril_common::test::TempDir;
113113

114114
use crate::digesters::cache::{
115115
ImmutableFileDigestCacheProvider, JsonImmutableFileDigestCacheProvider,

internal/cardano-node/mithril-cardano-node-internal-database/src/digesters/cache/json_provider_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl<'a> JsonImmutableFileDigestCacheProviderBuilder<'a> {
8686
mod tests {
8787
use std::path::PathBuf;
8888

89-
use mithril_common::test_utils::TempDir;
89+
use mithril_common::test::TempDir;
9090

9191
use crate::digesters::cache::JsonImmutableFileDigestCacheProviderBuilder;
9292

internal/cardano-node/mithril-cardano-node-internal-database/src/entities/immutable_file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ mod tests {
201201
use std::io::prelude::*;
202202

203203
use mithril_common::temp_dir_create;
204-
use mithril_common::test_utils::TempDir;
204+
use mithril_common::test::TempDir;
205205

206206
use super::*;
207207

internal/cardano-node/mithril-cardano-node-internal-database/src/entities/ledger_state_snapshot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ mod tests {
191191
use std::fs::{File, create_dir};
192192
use std::io::prelude::*;
193193

194-
use mithril_common::test_utils::temp_dir_create;
194+
use mithril_common::test::temp_dir_create;
195195

196196
use super::*;
197197

internal/mithril-dmq/src/consumer/pallas.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ mod tests {
144144

145145
use std::{fs, future, time::Duration, vec};
146146

147-
use mithril_common::{crypto_helper::TryToBytes, current_function, test_utils::TempDir};
147+
use mithril_common::{crypto_helper::TryToBytes, current_function, test::TempDir};
148148
use pallas_network::{
149149
facades::DmqServer,
150150
miniprotocols::{localmsgnotification, localmsgsubmission::DmqMsg},

internal/mithril-dmq/src/message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ mod tests {
9494
use mithril_common::{
9595
crypto_helper::{KesSignerFake, TryToBytes},
9696
entities::{BlockNumber, ChainPoint, TimePoint},
97-
test_utils::double::Dummy,
97+
test::double::Dummy,
9898
};
9999

100100
use super::*;

internal/mithril-dmq/src/publisher/pallas.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ mod tests {
9393
use mithril_common::{
9494
crypto_helper::KesSignerFake,
9595
current_function,
96-
test_utils::{TempDir, double::Dummy},
96+
test::{TempDir, double::Dummy},
9797
};
9898

9999
use crate::{test::payload::DmqMessageTestPayload, test_tools::TestLogger};

0 commit comments

Comments
 (0)