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

Function test_file_change_metadata_only

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

Source from the content-addressed store, hash-verified

1057
1058 #[test]
1059 fn test_file_change_metadata_only() {
1060 let change = FileChange::metadata_only(
1061 "test.rs",
1062 Inode::ROOT,
1063 Position::ROOT,
1064 FileMetadata::file(),
1065 FileMetadata::executable(),
1066 );
1067
1068 assert!(change.kind.is_metadata_only());
1069 assert!(change.metadata.is_some());
1070 }
1071
1072 #[test]
1073 fn test_file_change_with_metadata() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected