Skip to content
Myr

Code formatting

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent 9d3cb69 · Browse files · 2 files+7 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−5 removed

  • tests:+7 added−5 removed

2 files+7 added−5 removed

modified:tests/testenv/mod.rs+6 added-1 removed
254 unmodified lines
255 }256257 /// Assert that calling *fd* in the specified path under the root working directory,258 /// and with the specified arguments produces an error with the expected message.259 fn assert_error_subdirectory<P: AsRef<Path>>(&self, path: P, args: &[&str], expected: &str) -> process::ExitStatus {259 fn assert_error_subdirectory<P: AsRef<Path>>(260 &self,261 path: P,262 args: &[&str],263 expected: &str,264 ) -> process::ExitStatus {265 // Setup *fd* command.266 let mut cmd = process::Command::new(&self.fd_exe);267 cmd.current_dir(self.temp_dir.path().join(path));268 cmd.arg("--no-global-ignore-file").args(args);
20 unmodified lines
modified:tests/tests.rs+1 added-4 removed
121 unmodified lines
122fn test_multi_file_with_missing() {123 let dirs = &["real"];124 let files = &["real/a.foo", "real/b.foo"];125 let te = TestEnv::new(dirs, files);126 te.assert_output(127 &["a.foo", "real", "fake"],128 "real/a.foo",129 );126 te.assert_output(&["a.foo", "real", "fake"], "real/a.foo");127128 te.assert_error(129 &["a.foo", "real", "fake"],130 "[fd error]: Search path 'fake' is not a directory.",
1483 unmodified lines