CS110L-Lab/proj-2/balancebeam/tests/common/mod.rs
2020-10-07 15:58:20 -07:00

23 lines
454 B
Rust

mod balancebeam;
mod echo_server;
mod error_server;
mod server;
use std::sync;
pub use balancebeam::BalanceBeam;
pub use echo_server::EchoServer;
pub use error_server::ErrorServer;
pub use server::Server;
static INIT_TESTS: sync::Once = sync::Once::new();
pub fn init_logging() {
INIT_TESTS.call_once(|| {
pretty_env_logger::formatted_builder()
.is_test(true)
.parse_filters("info")
.init();
});
}