keyhog-verifier 0.5.73

keyhog-verifier: parallel async credential verification framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Verifier proxy edge: whitespace HTTPS_PROXY is inactive

use crate::contract::support::with_proxy_contract_env;
use keyhog_verifier::proxy_is_active;

#[test]
fn proxy_whitespace_https_proxy_not_active() {
    with_proxy_contract_env(|| {
        unsafe {
            std::env::set_var("HTTPS_PROXY", "   ");
        }
        assert!(!proxy_is_active(None));
        unsafe {
            std::env::remove_var("HTTPS_PROXY");
        }
    });
}