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

Function test_file_metadata_with_permissions

atomic-core/src/output/traits.rs:777–781  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

775
776 #[test]
777 fn test_file_metadata_with_permissions() {
778 let meta = FileMetadata::file().with_permissions(0o600);
779 assert_eq!(meta.permissions, 0o600);
780 assert!(!meta.is_executable());
781 }
782
783 #[test]
784 fn test_file_metadata_bytes_roundtrip() {

Callers

nothing calls this directly

Calls 1

with_permissionsMethod · 0.80

Tested by

no test coverage detected