MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_from_root

Function test_from_root

atomic-repository/src/changestore/tests.rs:564–575  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

562
563#[test]
564fn test_from_root() {
565 let temp_dir = create_temp_dir();
566 let root = temp_dir.path();
567
568 let store =
569 ChangeStore::from_root(root, DEFAULT_CACHE_CAPACITY).expect("Failed to create store");
570
571 // Verify the changes directory was created in the right place
572 let expected_dir = root.join(atomic_core::DOT_DIR).join("changes");
573 assert_eq!(store.changes_dir(), expected_dir);
574 assert!(expected_dir.exists());
575}
576
577// Multiple Changes with Same Prefix Tests
578

Callers

nothing calls this directly

Calls 2

create_temp_dirFunction · 0.85
pathMethod · 0.45

Tested by

no test coverage detected