mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 17:00:18 +00:00
Rename test file
This commit is contained in:
1 parent
d32b90ee5c
commit
09af0517bc
3 files changed
+4
-6
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
This text is part of a file
|
||||||
@@ -1 +0,0 @@
|
|||||||
This data is passed to the command via stdin
|
|
||||||
@@ -216,17 +216,15 @@ fn runs_commands_using_user_defined_shell() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn can_pass_file_data_to_command_via_stdin() {
|
fn can_pass_input_to_command_from_a_file() {
|
||||||
hyperfine()
|
hyperfine()
|
||||||
.arg("--runs=1")
|
.arg("--runs=1")
|
||||||
.arg("--input=example_stdin_data")
|
.arg("--input=example_input_file.txt")
|
||||||
.arg("--show-output")
|
.arg("--show-output")
|
||||||
.arg("cat")
|
.arg("cat")
|
||||||
.assert()
|
.assert()
|
||||||
.success()
|
.success()
|
||||||
.stdout(predicate::str::contains(
|
.stdout(predicate::str::contains("This text is part of a file"));
|
||||||
"This data is passed to the command via stdin",
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in new issue
Block a user