Download codex-rs/cli/src/doctor/windows_dev_drive_tests.rs from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/cli/src/doctor/windows_dev_drive_tests.rs
- Command line
-
hf download hf://SaylorTwift/codex/codex-rs/cli/src/doctor/windows_dev_drive_tests.rs
-
curl -L -o windows_dev_drive_tests.rs https://huggingface.co/SaylorTwift/codex/resolve/main/codex-rs/cli/src/doctor/windows_dev_drive_tests.rs
438 Bytes
| use std::path::PathBuf; | |
| use pretty_assertions::assert_eq; | |
| use super::DEV_VOLUME; | |
| use super::volume_flags; | |
| fn the_windows_system_volume_is_not_a_dev_drive() { | |
| let system_root = std::env::var_os("SystemRoot") | |
| .map(PathBuf::from) | |
| .expect("Windows exposes its system directory"); | |
| let flags = volume_flags(&system_root).expect("the system volume can be inspected"); | |
| assert_eq!(flags & DEV_VOLUME, 0); | |
| } | |