batpak 0.8.0

Event sourcing with causal graphs and caller-defined gates. Sync API, no async runtime.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::store_data_dir_identity_hash;

#[test]
fn data_dir_identity_hash_canonicalizes_existing_path_spellings() {
    let dir = tempfile::TempDir::new().expect("create temp dir");
    let raw_spelling = dir.path().join(".");
    let canonical =
        crate::store::platform::fs::canonicalize(dir.path()).expect("canonicalize temp dir");

    assert_eq!(
        store_data_dir_identity_hash(&raw_spelling),
        store_data_dir_identity_hash(&canonical)
    );
}