Removed session as separate code.
This commit is contained in:
@ -1,14 +1,12 @@
|
||||
mod database;
|
||||
mod entry;
|
||||
mod error;
|
||||
mod session;
|
||||
mod store;
|
||||
|
||||
use async_std::path::PathBuf;
|
||||
use database::Database;
|
||||
use entry::Entry;
|
||||
use error::{DBError, ErrorCode};
|
||||
use session::Session;
|
||||
use std::{slice, str};
|
||||
use store::Store;
|
||||
|
||||
@ -134,10 +132,6 @@ impl MoreThanText {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn new_session(&self) -> Session {
|
||||
Session::new()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
@ -367,16 +361,3 @@ mod create {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod sessions {
|
||||
use super::*;
|
||||
use tempfile::tempdir;
|
||||
|
||||
#[async_std::test]
|
||||
async fn create_session() {
|
||||
let dir = tempdir().unwrap();
|
||||
let mtt = MoreThanText::new(dir.path().to_str().unwrap()).await.unwrap();
|
||||
mtt.new_session();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user