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

Function test_modified_time

atomic-core/src/output/memory.rs:886–892  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

884
885 #[test]
886 fn test_modified_time() {
887 let wc = Memory::new();
888 wc.add_file("test.txt", b"");
889
890 let time = wc.modified_time("test.txt").unwrap();
891 assert!(time > SystemTime::UNIX_EPOCH);
892 }
893
894 #[test]
895 fn test_exists() {

Callers

nothing calls this directly

Calls 3

add_fileMethod · 0.45
unwrapMethod · 0.45
modified_timeMethod · 0.45

Tested by

no test coverage detected