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

Function test_file_status_entry_new

atomic-repository/src/status.rs:1208–1217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1206
1207 #[test]
1208 fn test_file_status_entry_new() {
1209 let entry = FileStatusEntry::new(PathBuf::from("src/main.rs"), FileStatus::Modified);
1210
1211 assert_eq!(entry.path(), Path::new("src/main.rs"));
1212 assert_eq!(entry.status(), FileStatus::Modified);
1213 assert!(entry.inode().is_none());
1214 assert!(entry.recorded_hash().is_none());
1215 assert!(entry.current_hash().is_none());
1216 assert!(entry.details().is_none());
1217 }
1218
1219 #[test]
1220 fn test_file_status_entry_with_details() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected