Lines Matching defs:new

28     fs::OpenOptions::new()
56 pub fn new() -> TestFixture {
58 let mut builder = fs::DirBuilder::new();
106 let result = which::Path::new("rustc");
109 let which_result = Command::new("which").arg("rustc").output();
122 let f = TestFixture::new();
129 let f = TestFixture::new();
136 let f = TestFixture::new();
139 let re = Regex::new(r"bin_\d").unwrap();
157 let f = TestFixture::new();
158 let re = Regex::new(r"bi[^n]").unwrap();
165 assert_eq!(result, Vec::<PathBuf>::new())
171 which::which_re(Regex::new(r".").unwrap())
174 which::which_re(&Regex::new(r".").unwrap())
177 which::which_re_in(Regex::new(r".").unwrap(), Some("pth"))
180 which::which_re_in(&Regex::new(r".").unwrap(), Some("pth"))
188 let f = TestFixture::new();
189 let b = Path::new(&BIN_NAME).with_extension("");
196 let f = TestFixture::new();
197 let b = Path::new(&BIN_NAME).with_extension("cmd");
204 let f = TestFixture::new();
205 let b = Path::new("win-bin");
214 let f = TestFixture::new();
220 let f = TestFixture::new();
227 let f = TestFixture::new();
252 let f = TestFixture::new();
262 let f = TestFixture::new();
274 let f = TestFixture::new();
282 let f = TestFixture::new();
291 let f = TestFixture::new();
300 let f = TestFixture::new();
310 let f = TestFixture::new();
322 let f = TestFixture::new();
323 let b = Path::new("b/bin").with_extension(env::consts::EXE_EXTENSION);
332 let f = TestFixture::new();
333 let b = Path::new("b/bin").with_extension("cmd");
342 let f = TestFixture::new();
343 let b = Path::new("b/bin").with_extension("EXE");
350 let f = TestFixture::new();
360 let f = TestFixture::new();
371 let f = TestFixture::new();
380 let f = TestFixture::new();
389 let f = TestFixture::new();
396 let f = TestFixture::new();