diff --git a/src/morethantext/mod.rs b/src/morethantext/mod.rs index 3e5746d..5e77c20 100644 --- a/src/morethantext/mod.rs +++ b/src/morethantext/mod.rs @@ -1,5 +1,6 @@ mod cache; mod error; +mod store; use async_std::{ channel::{unbounded, Sender}, @@ -8,6 +9,7 @@ use async_std::{ }; use cache::Cache; use error::{ErrorCode, MTTError}; +use store::Store; #[derive(Clone, Debug)] struct Data { diff --git a/src/morethantext/store.rs b/src/morethantext/store.rs new file mode 100644 index 0000000..1f95a27 --- /dev/null +++ b/src/morethantext/store.rs @@ -0,0 +1,23 @@ +pub struct Store; + +impl Store { + fn new() -> Self { + Self {} + } + + fn list(&self) -> Vec { + Vec::new() + } +} + +#[cfg(test)] +mod storage { + use super::*; + + #[test] + fn create_new() { + let store = Store::new(); + let expected: Vec = Vec::new(); + assert_eq!(store.list(), expected); + } +}