Files
morethantext-web/src/morethantext/store.rs

25 lines
381 B
Rust
Raw Normal View History

2023-06-03 15:27:26 -04:00
#[derive(Clone)]
2023-05-30 00:18:13 -04:00
pub struct Store;
impl Store {
2023-06-03 15:27:26 -04:00
pub fn new() -> Self {
2023-05-30 00:18:13 -04:00
Self {}
}
2023-06-03 15:27:26 -04:00
pub fn list(&self) -> Vec<String> {
2023-05-30 00:18:13 -04:00
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);
}
}