mirror of
https://github.com/sharkdp/fd
synced 2024-10-06 07:49:18 +00:00
Code formatting
This commit is contained in:
parent
9d3cb69935
commit
726fede7cc
|
@ -256,7 +256,12 @@ impl TestEnv {
|
|||
|
||||
/// Assert that calling *fd* in the specified path under the root working directory,
|
||||
/// and with the specified arguments produces an error with the expected message.
|
||||
fn assert_error_subdirectory<P: AsRef<Path>>(&self, path: P, args: &[&str], expected: &str) -> process::ExitStatus {
|
||||
fn assert_error_subdirectory<P: AsRef<Path>>(
|
||||
&self,
|
||||
path: P,
|
||||
args: &[&str],
|
||||
expected: &str,
|
||||
) -> process::ExitStatus {
|
||||
// Setup *fd* command.
|
||||
let mut cmd = process::Command::new(&self.fd_exe);
|
||||
cmd.current_dir(self.temp_dir.path().join(path));
|
||||
|
|
|
@ -123,10 +123,7 @@ fn test_multi_file_with_missing() {
|
|||
let dirs = &["real"];
|
||||
let files = &["real/a.foo", "real/b.foo"];
|
||||
let te = TestEnv::new(dirs, files);
|
||||
te.assert_output(
|
||||
&["a.foo", "real", "fake"],
|
||||
"real/a.foo",
|
||||
);
|
||||
te.assert_output(&["a.foo", "real", "fake"], "real/a.foo");
|
||||
|
||||
te.assert_error(
|
||||
&["a.foo", "real", "fake"],
|
||||
|
|
Loading…
Reference in a new issue