Skip to main content

radroots_net/
lib.rs

1pub use radroots_net_core as core;
2
3pub fn coverage_core_alias_available() -> bool {
4    let _ = core::config::NetConfig::default();
5    true
6}
7
8pub fn coverage_branch_probe(input: bool) -> bool {
9    if input { true } else { false }
10}
11
12#[cfg(test)]
13mod tests {
14    use super::{coverage_branch_probe, coverage_core_alias_available};
15
16    #[test]
17    fn core_alias_probe_is_callable() {
18        assert!(coverage_core_alias_available());
19    }
20
21    #[test]
22    fn coverage_branch_probe_hits_both_paths() {
23        assert!(coverage_branch_probe(true));
24        assert!(!coverage_branch_probe(false));
25    }
26}