mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 14:40:37 +00:00
20 lines
463 B
Rust
20 lines
463 B
Rust
#[cfg(all(feature = "static-curl", not(feature = "protocol-ftp")))]
|
|
#[test]
|
|
fn static_with_ftp_disabled() {
|
|
assert!(curl::Version::get()
|
|
.protocols()
|
|
.filter(|&p| p == "ftp")
|
|
.next()
|
|
.is_none());
|
|
}
|
|
|
|
#[cfg(all(feature = "static-curl", feature = "protocol-ftp"))]
|
|
#[test]
|
|
fn static_with_ftp_enabled() {
|
|
assert!(curl::Version::get()
|
|
.protocols()
|
|
.filter(|&p| p == "ftp")
|
|
.next()
|
|
.is_some());
|
|
}
|