Setup store.
This commit is contained in:
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user