• Home
  • Raw
  • Download

Lines Matching +full:test +full:- +full:windows

25 fn mk_bin(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> {  in mk_bin()
36 fn touch(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> { in touch()
41 #[cfg(windows)]
42 fn mk_bin(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> { in mk_bin()
56 pub fn new() -> TestFixture { in new()
70 let p = tempdir.path().join("win-bin"); in new()
72 bins.push(mk_bin(&p, "win-bin", "exe").unwrap()); in new()
82 pub fn touch(&self, path: &str, extension: &str) -> io::Result<PathBuf> { in touch()
86 pub fn mk_bin(&self, path: &str, extension: &str) -> io::Result<PathBuf> { in mk_bin()
91 fn _which<T: AsRef<OsStr>>(f: &TestFixture, path: T) -> which::Result<which::CanonicalPath> { in _which()
98 ) -> which::Result<impl Iterator<Item = which::Result<which::CanonicalPath>> + '_> { in _which_all()
102 #[test]
119 #[test]
126 #[test]
127 #[cfg(windows)]
133 #[test]
154 #[test]
168 #[test]
185 #[test]
193 #[test]
194 #[cfg(windows)]
201 #[test]
202 #[cfg(windows)]
205 let b = Path::new("win-bin"); in test_which_no_extension()
212 #[test]
218 #[test]
225 #[test]
237 #[cfg(windows)] in test_which_all()
242 #[cfg(not(windows))] in test_which_all()
249 #[test]
259 #[test]
260 #[cfg(windows)]
269 #[test]
270 #[cfg(windows)]
272 // Test that an absolute path with an uppercase extension in test_which_absolute_path_case()
279 #[test]
288 #[test]
289 #[cfg(windows)]
297 #[test]
307 #[test]
308 #[cfg(windows)]
317 #[test]
321 // so test a relative path with an extension here. in test_which_relative_extension()
327 #[test]
328 #[cfg(windows)]
331 // so test a relative path with an extension here. in test_which_relative_extension()
337 #[test]
338 #[cfg(windows)]
340 // Test that a relative path with an uppercase extension in test_which_relative_extension_case()
347 #[test]
357 #[test]
358 #[cfg(windows)]
367 #[test]
370 // Shouldn't return non-executable files. in test_which_non_executable()
376 #[test]
379 // Shouldn't return non-executable files, even if given an absolute path. in test_which_absolute_non_executable()
385 #[test]
388 // Shouldn't return non-executable files. in test_which_relative_non_executable()
394 #[test]
398 let run = || -> which::Result<PathBuf> { in test_failure()