mod buffered_raft_log_test_helpers;
mod common;
mod entry_builder;
pub mod mock;
mod replication_test_helpers;
mod snapshot;
#[cfg(test)]
mod common_test;
#[cfg(test)]
mod entry_builder_test;
pub use buffered_raft_log_test_helpers::*;
pub use common::*;
pub use entry_builder::*;
pub use mock::*;
pub use replication_test_helpers::*;
pub use snapshot::*;
pub fn node_config(db_path: &str) -> crate::RaftNodeConfig {
let mut s = crate::RaftNodeConfig::new().expect("RaftNodeConfig should be inited successfully");
s.cluster.db_root_dir = std::path::PathBuf::from(db_path);
s.validate().expect("RaftNodeConfig should be validated successfully")
}