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

Function test_file_change_with_mtime

atomic-core/src/record/detect.rs:1089–1094  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1087
1088 #[test]
1089 fn test_file_change_with_mtime() {
1090 let now = SystemTime::now();
1091 let change = FileChange::added("test.rs", Encoding::Utf8).with_mtime(now);
1092
1093 assert!(change.mtime.is_some());
1094 }
1095
1096 #[test]
1097 fn test_file_change_clone() {

Callers

nothing calls this directly

Calls 2

addedFunction · 0.85
with_mtimeMethod · 0.45

Tested by

no test coverage detected