d_engine_core/test_utils/
mod.rs

1//! the test_utils folder here will share utils or test components betwee unit
2//! tests and integrations tests
3mod common;
4mod entry_builder;
5pub mod mock;
6mod snapshot;
7
8#[cfg(test)]
9mod common_test;
10
11#[cfg(test)]
12mod entry_builder_test;
13
14pub use common::*;
15pub use entry_builder::*;
16pub use mock::*;
17pub use snapshot::*;
18
19pub fn node_config(db_path: &str) -> crate::RaftNodeConfig {
20    let mut s =
21        crate::RaftNodeConfig::new().expect("RaftNodeConfig should be inited successfully.");
22    s.cluster.db_root_dir = std::path::PathBuf::from(db_path);
23    s
24}