Skip to main content

check

Function check 

Source
pub fn check(compiled: &str) -> Result<(), String>
Expand description

Err with what to do when the test binary was compiled from another checkout than the one running it. compiled is the invoking crate’s env!("CARGO_MANIFEST_DIR"). Ok when the binary isn’t run by cargo (no CARGO_MANIFEST_DIR at run time), so it can’t tell.