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

Function test_from_root

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

Source from the content-addressed store, hash-verified

496
497#[test]
498fn test_from_root() {
499 let temp_dir = create_temp_dir();
500 let root = temp_dir.path();
501
502 let store =
503 ChangeStore::from_root(root, DEFAULT_CACHE_CAPACITY).expect("Failed to create store");
504
505 // Verify the changes directory was created in the right place
506 let expected_dir = root.join(atomic_core::DOT_DIR).join("changes");
507 assert_eq!(store.changes_dir(), expected_dir);
508 assert!(expected_dir.exists());
509}
510
511// Multiple Changes with Same Prefix Tests
512

Callers

nothing calls this directly

Calls 2

create_temp_dirFunction · 0.85
pathMethod · 0.45

Tested by

no test coverage detected