Home
last modified time | relevance | path

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

/third_party/rust/crates/which-rs/tests/
H A Dbasic.rs22 const BIN_NAME: &str = "bin"; consts
65 bins.push(mk_bin(&p, BIN_NAME, "").unwrap()); in new()
66 bins.push(mk_bin(&p, BIN_NAME, "exe").unwrap()); in new()
67 bins.push(mk_bin(&p, BIN_NAME, "cmd").unwrap()); in new()
123 assert_eq!(_which(&f, &BIN_NAME).unwrap(), f.bins[0]) in test_which()
130 assert_eq!(_which(&f, &BIN_NAME).unwrap(), f.bins[1]) in test_which()
189 let b = Path::new(&BIN_NAME).with_extension(""); in test_which_extension()
197 let b = Path::new(&BIN_NAME).with_extension("cmd"); in test_which_extension()
228 let actual = _which_all(&f, BIN_NAME) in test_which_all()
239 expected.retain(|p| p.file_stem().unwrap() == BIN_NAME); in test_which_all()
[all...]

Completed in 1 milliseconds