Home
last modified time | relevance | path

Searched refs:BIN_NAME (Results 1 – 1 of 1) sorted by relevance

/external/rust/crates/which/tests/
Dbasic.rs21 const BIN_NAME: &'static str = "bin"; constant
64 bins.push(mk_bin(&p, &BIN_NAME, "").unwrap()); in new()
65 bins.push(mk_bin(&p, &BIN_NAME, "exe").unwrap()); in new()
66 bins.push(mk_bin(&p, &BIN_NAME, "cmd").unwrap()); in new()
118 assert_eq!(_which(&f, &BIN_NAME).unwrap(), f.bins[0]) in test_which()
125 assert_eq!(_which(&f, &BIN_NAME).unwrap(), f.bins[1]) in test_which()
132 let b = Path::new(&BIN_NAME).with_extension(""); in test_which_extension()
140 let b = Path::new(&BIN_NAME).with_extension("cmd"); in test_which_extension()
160 let actual = _which_all(&f, BIN_NAME) in test_which_all()
175 expected.retain(|p| p.file_name().unwrap() == BIN_NAME); in test_which_all()
[all …]