fastmash 0.7.1

Fast command-line statistics on text data, compatible with GNU datamash
1
2
3
4
5
6
7
8
9
10
11
//! Select the local Cargo executable or an installed command for integration tests.
use std::ffi::OsString;

pub fn fastmash() -> OsString {
    std::env::var_os("FASTMASH_TEST_BINARY").unwrap_or_else(|| {
        match option_env!("CARGO_BIN_EXE_fastmash") {
            Some(path) => path.into(),
            None => panic!("Cargo executable is only available to integration tests"),
        }
    })
}