Setup store.

This commit is contained in:
Jeff Baskin 2023-05-30 00:18:13 -04:00
parent 646e0597ca
commit 914e7a8146
2 changed files with 25 additions and 0 deletions

View File

@ -1,5 +1,6 @@
mod cache; mod cache;
mod error; mod error;
mod store;
use async_std::{ use async_std::{
channel::{unbounded, Sender}, channel::{unbounded, Sender},
@ -8,6 +9,7 @@ use async_std::{
}; };
use cache::Cache; use cache::Cache;
use error::{ErrorCode, MTTError}; use error::{ErrorCode, MTTError};
use store::Store;
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
struct Data { struct Data {

23
src/morethantext/store.rs Normal file
View 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);
}
}