Move add_version and get_child_version to server module

..and add some tests specifically for those functions, in the absence of
all the HTTP nonsense.
This commit is contained in:
Dustin J. Mitchell
2020-11-26 19:44:30 -05:00
parent fb22b9686f
commit 5b1b911bf7
5 changed files with 201 additions and 73 deletions

View File

@@ -4,12 +4,12 @@ use taskchampion::Uuid;
mod inmemory;
pub(crate) use inmemory::InMemoryStorage;
#[derive(Clone)]
#[derive(Clone, PartialEq, Debug)]
pub(crate) struct Client {
pub(crate) latest_version_id: Uuid,
}
#[derive(Clone)]
#[derive(Clone, PartialEq, Debug)]
pub(crate) struct Version {
pub(crate) version_id: Uuid,
pub(crate) parent_version_id: Uuid,