mur-common 2.92.1

Shared types and traits for the MUR ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

#[tokio::test]
async fn check_env_present() {
    let _env = crate::test_env::EnvGuard::set([("MUR_TEST_CHECK_ENV", "1")]);
    assert!(SecretRef::Env("MUR_TEST_CHECK_ENV".into()).check().await);
}

#[tokio::test]
async fn check_env_absent() {
    assert!(
        !SecretRef::Env("MUR_TEST_CHECK_DEFINITELY_UNSET".into())
            .check()
            .await
    );
}