nap-core 0.4.3

Core library for the Narrative Addressing Protocol
Documentation
1
2
3
4
5
6
7
use crate::repository::Repository;
use crate::test_utils::mock_backend::MockBackend;
use tempfile::TempDir;

pub fn mock_repo(tmp: &TempDir) -> Repository {
    Repository::init(tmp.path(), "testverse", Box::new(MockBackend::new())).unwrap()
}