nap-core 0.5.10

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

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