Skip to content

Commit

Permalink
test_utils: Rename mock_macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyhunsen committed Dec 12, 2024
1 parent 190d071 commit affbb17
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 323 deletions.
3 changes: 1 addition & 2 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ pub mod extended_rpc;
pub mod hashes;
pub mod header_chain_prover;
pub mod merkle;
pub mod mock;
pub mod musig2;
pub mod operator;
pub mod rpc;
Expand All @@ -33,7 +32,7 @@ pub mod verifier;
pub mod watchtower;

#[cfg(test)]
mod mock_macro;
mod test_utils;

pub type ConnectorUTXOTree = Vec<Vec<OutPoint>>;
// pub type HashTree = Vec<Vec<HashType>>;
Expand Down
95 changes: 0 additions & 95 deletions core/src/mock/common.rs

This file was deleted.

57 changes: 0 additions & 57 deletions core/src/mock/database.rs

This file was deleted.

158 changes: 0 additions & 158 deletions core/src/mock/env.rs

This file was deleted.

8 changes: 0 additions & 8 deletions core/src/mock/mod.rs

This file was deleted.

6 changes: 5 additions & 1 deletion core/src/mock_macro.rs → core/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
//! # Mock
//! # Testing Utilities
//!
//! This crate provides testing utilities, which are not possible to be included
//! in binaries. There will be multiple prerequisites that these macros require.
//! Please check comments of each for more information.
/// Creates a temporary database for testing, using current thread's name as the
/// database name.
Expand Down
4 changes: 2 additions & 2 deletions core/tests/common/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! # Common Utilities for Integration Tests
#[path = "../../src/mock_macro.rs"]
mod mock_macro;
#[path = "../../src/test_utils.rs"]
mod test_utils;

use crate::{create_test_config_with_thread_name, initialize_database};
use bitcoin::consensus::encode::deserialize_hex;
Expand Down

0 comments on commit affbb17

Please sign in to comment.