Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/nornir

crates/mimir-driver/tests/fixture-targets/twin/src/main.rs

//! the bin target `twin`: the same crate name as the lib

struct Config {
    level: u8,
}

fn helper() -> u8 {
    Config { level: 2 }.level
}

fn main() {
    println!("{}", helper() + twin::run());
}

#[cfg(test)]
mod tests {
    // the bin's own test harness: the bin's ids
    #[test]
    fn helps() {
        assert_eq!(super::helper(), 2);
    }
}