• Home
  • Raw
  • Download

Lines Matching refs:bins

17     pub bins: Vec<PathBuf>,  field
60 let mut bins = vec![]; in new() localVariable
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()
72 bins: bins, 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()
133 assert_eq!(_which(&f, &b).unwrap(), f.bins[0]) in test_which_extension()
141 assert_eq!(_which(&f, &b).unwrap(), f.bins[2]) in test_which_extension()
165 .bins in test_which_all()
185 _which(&f, &f.bins[3]).unwrap(), in test_which_absolute()
186 f.bins[3].canonicalize().unwrap() in test_which_absolute()
195 _which(&f, &f.bins[4]).unwrap(), in test_which_absolute()
196 f.bins[4].canonicalize().unwrap() in test_which_absolute()
206 let p = &f.bins[4]; in test_which_absolute_path_case()
207 assert_eq!(_which(&f, &p).unwrap(), f.bins[4].canonicalize().unwrap()); in test_which_absolute_path_case()
215 let b = f.bins[3].parent().unwrap().join(&BIN_NAME); in test_which_absolute_extension()
216 assert_eq!(_which(&f, &b).unwrap(), f.bins[3].canonicalize().unwrap()); in test_which_absolute_extension()
224 let b = f.bins[4].parent().unwrap().join(&BIN_NAME); in test_which_absolute_extension()
225 assert_eq!(_which(&f, &b).unwrap(), f.bins[4].canonicalize().unwrap()); in test_which_absolute_extension()
234 f.bins[3].canonicalize().unwrap() in test_which_relative()
244 f.bins[4].canonicalize().unwrap() in test_which_relative()
255 assert_eq!(_which(&f, &b).unwrap(), f.bins[3].canonicalize().unwrap()); in test_which_relative_extension()
265 assert_eq!(_which(&f, &b).unwrap(), f.bins[5].canonicalize().unwrap()); in test_which_relative_extension()
275 assert_eq!(_which(&f, &b).unwrap(), f.bins[4].canonicalize().unwrap()); in test_which_relative_extension_case()
284 f.bins[3].canonicalize().unwrap() in test_which_relative_leading_dot()
294 f.bins[4].canonicalize().unwrap() in test_which_relative_leading_dot()