diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-04-04 14:00:21 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-04-04 14:05:25 +0200 |
commit | 9bf57ebad51b8e1b21bcdba47e9536f0e17880a2 (patch) | |
tree | 42527fdfdf3835f8a11787175564174c6cb926f7 /src/test_impl.rs | |
parent | 080771bc233c25e067706e67cba2becbc0748980 (diff) |
Implement branching
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/test_impl.rs')
-rw-r--r-- | src/test_impl.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test_impl.rs b/src/test_impl.rs index da86543..ae7ce0c 100644 --- a/src/test_impl.rs +++ b/src/test_impl.rs @@ -31,7 +31,12 @@ impl crate::Node for Node { } } -#[derive(Debug)] +/// The backend for the tests +/// +/// This is `Clone` because we can test branching only with a clonable backend. +/// A real backend would not implement the storage itself, but rather a way to retrieve the data +/// from some storage mechansim (think IPFS), and thus `Clone`ing a backend is nothing esotheric. +#[derive(Clone, Debug)] pub struct Backend(pub(crate) Vec<Option<Node>>); #[async_trait] |