Setup store.
This commit is contained in:
parent
646e0597ca
commit
914e7a8146
@ -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 {
|
||||
|
23
src/morethantext/store.rs
Normal file
23
src/morethantext/store.rs
Normal file
@ -0,0 +1,23 @@
|
||||
pub struct Store;
|
||||
|
||||
impl Store {
|
||||
fn new() -> Self {
|
||||
Self {}
|
||||
}
|
||||
|
||||
fn list(&self) -> Vec<String> {
|
||||
Vec::new()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod storage {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn create_new() {
|
||||
let store = Store::new();
|
||||
let expected: Vec<String> = Vec::new();
|
||||
assert_eq!(store.list(), expected);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user