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

Function test_tracked_file_new

atomic-core/src/record/workflow/collect.rs:620–628  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

618
619 #[test]
620 fn test_tracked_file_new() {
621 let pos = Position::new(NodeId::new(1), ChangePosition::new(0));
622 let file = TrackedFile::new("src/main.rs", Inode::new(42), pos);
623
624 assert_eq!(file.path, "src/main.rs");
625 assert_eq!(file.inode, Inode::new(42));
626 assert_eq!(file.position, pos);
627 assert!(!file.is_directory);
628 }
629
630 #[test]
631 fn test_tracked_file_as_directory() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected