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

Function test_file_change_with_metadata

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

Source from the content-addressed store, hash-verified

1071
1072 #[test]
1073 fn test_file_change_with_metadata() {
1074 let change =
1075 FileChange::added("test.rs", Encoding::Utf8).with_metadata(FileMetadata::executable());
1076
1077 assert!(change.metadata.is_some());
1078 assert!(change.metadata.unwrap().is_executable());
1079 }
1080
1081 #[test]
1082 fn test_file_change_with_size() {

Callers

nothing calls this directly

Calls 2

addedFunction · 0.85
with_metadataMethod · 0.45

Tested by

no test coverage detected