Skip to content
Myr

Rename test file

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

authored by David Peter · committed by David Peter · parent d32b90e · Browse files · 3 files+4 added−6 removed
This commit

State

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

Diff stats

3 files+4 added−6 removed

  • tests:+4 added−6 removed

3 files+4 added−6 removed

added:tests/example_input_file.txt+1 added
1This text is part of a file
deleted:tests/example_stdin_data-1 removed
1This data is passed to the command via stdin
modified:tests/integration_tests.rs+3 added-5 removed
214 unmodified lines
215 );216}217218#[test]219fn can_pass_file_data_to_command_via_stdin() {219fn can_pass_input_to_command_from_a_file() {220 hyperfine()221 .arg("--runs=1")222 .arg("--input=example_stdin_data")222 .arg("--input=example_input_file.txt")223 .arg("--show-output")224 .arg("cat")225 .assert()226 .success()227 .stdout(predicate::str::contains(228 "This data is passed to the command via stdin",229 ));227 .stdout(predicate::str::contains("This text is part of a file"));228}229230#[test]231fn fails_if_invalid_stdin_data_file_provided() {
116 unmodified lines