AppFlowy/rust-lib/flowy-test/src/lib.rs

26 lines
450 B
Rust
Raw Normal View History

2021-07-17 00:24:17 +00:00
pub mod builder;
2021-07-16 15:18:12 +00:00
mod helper;
mod tester;
use crate::helper::root_dir;
use flowy_sdk::FlowySDK;
2021-07-17 00:24:17 +00:00
use std::sync::Once;
2021-07-06 06:14:47 +00:00
pub mod prelude {
2021-07-17 00:24:17 +00:00
pub use crate::{
builder::{TestBuilder, *},
helper::*,
tester::Tester,
};
2021-07-08 13:23:44 +00:00
pub use flowy_dispatch::prelude::*;
2021-07-06 06:14:47 +00:00
}
static INIT: Once = Once::new();
pub fn init_sdk() {
let root_dir = root_dir();
INIT.call_once(|| {
FlowySDK::new(&root_dir).construct();
2021-07-06 06:14:47 +00:00
});
}