summaryrefslogtreecommitdiffstats
path: root/vendor/curl/tests/protocols.rs
blob: 7215fe9728f3a9f45352528007e3cc5654d536db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#[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());
}