24 lines
356 B
Rust
24 lines
356 B
Rust
|
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);
|
||
|
}
|
||
|
}
|