Tests: clean up unnecessary use of pipeline() (#10170)

As described in Issue #8670, removed `pipeline()` wherever its argument
contained no line breaks.

---------

Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
This commit is contained in:
J-Kappes
2023-08-31 23:10:29 +02:00
committed by GitHub
parent 5b4b4446b7
commit c77c1bd297
3 changed files with 18 additions and 18 deletions

View File

@ -1,6 +1,6 @@
use nu_test_support::fs::Stub::EmptyFile;
use nu_test_support::nu;
use nu_test_support::playground::Playground;
use nu_test_support::{nu, pipeline};
#[test]
fn empty_glob_pattern_triggers_error() {
@ -31,7 +31,7 @@ fn nonempty_glob_lists_matching_paths() {
let actual = nu!(
cwd: dirs.test(),
pipeline("glob '*' | length"),
"glob '*' | length",
);
assert_eq!(actual.out, "3");
@ -55,7 +55,7 @@ fn glob_subdirs() {
let actual = nu!(
cwd: dirs.test(),
pipeline("glob '**/*' | length"),
"glob '**/*' | length",
);
assert_eq!(
@ -82,7 +82,7 @@ fn glob_subdirs_ignore_dirs() {
let actual = nu!(
cwd: dirs.test(),
pipeline("glob '**/*' -D | length"),
"glob '**/*' -D | length",
);
assert_eq!(
@ -109,7 +109,7 @@ fn glob_ignore_files() {
let actual = nu!(
cwd: dirs.test(),
pipeline("glob '*' -F | length"),
"glob '*' -F | length",
);
assert_eq!(