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

Function test_tracked_file_new

atomic-repository/src/tracking/tests.rs:288–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286
287#[test]
288fn test_tracked_file_new() {
289 let file = TrackedFile::new(PathBuf::from("src/main.rs"), Inode::new(42), false);
290
291 assert_eq!(file.path, PathBuf::from("src/main.rs"));
292 assert_eq!(file.inode, Inode::new(42));
293 assert!(!file.is_directory);
294}
295
296#[test]
297fn test_tracked_file_directory() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected