test-binary-features 0.0.1

Programmatic testing of Rust binary crate features
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::indicators::{BinaryCrateName, SpawningMode};
#[test]
fn binary_crate_name_borrow() {
    assert_eq!(BinaryCrateName::Main.borrow(), "main");
    assert_eq!(
        BinaryCrateName::Other("other_binary").borrow(),
        "other_binary"
    );
}

#[test]
fn spawning_mode_has_error() {
    assert!(!SpawningMode::ProcessAll.has_error());
    assert!(SpawningMode::FinishActive.has_error());
    assert!(SpawningMode::StopAll.has_error());
}