Skip to content

Commit 380f0f6

Browse files
committed
[process] unify integration tests into a single unit, except for diff
1 parent 56df9b4 commit 380f0f6

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

process/tests/process-tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mod xargs;
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ fn xargs_test(test_data: &str, expected_output: &str, args: Vec<&str>) {
2121
}
2222

2323
#[test]
24-
fn test_xargs_basic() {
24+
fn xargs_basic() {
2525
xargs_test("one two three\n", "one two three\n", vec!["echo"]);
2626
}
2727

2828
#[test]
29-
fn test_xargs_with_maxnum() {
29+
fn xargs_with_maxnum() {
3030
xargs_test(
3131
"one two three\n",
3232
"one\ntwo\nthree\n",
@@ -35,7 +35,7 @@ fn test_xargs_with_maxnum() {
3535
}
3636

3737
#[test]
38-
fn test_xargs_with_maxsize() {
38+
fn xargs_with_maxsize() {
3939
xargs_test(
4040
"one two three four five\n",
4141
"one\ntwo\nthree\nfour\nfive\n",
@@ -44,7 +44,7 @@ fn test_xargs_with_maxsize() {
4444
}
4545

4646
#[test]
47-
fn test_xargs_with_eofstr() {
47+
fn xargs_with_eofstr() {
4848
xargs_test(
4949
"one two three STOP four five\n",
5050
"one two three\n",
@@ -53,17 +53,17 @@ fn test_xargs_with_eofstr() {
5353
}
5454

5555
#[test]
56-
fn test_xargs_with_null_delimiter() {
56+
fn xargs_with_null_delimiter() {
5757
xargs_test("one\0two\0three\0", "one two three\n", vec!["-0", "echo"]);
5858
}
5959

6060
#[test]
61-
fn test_xargs_with_null_delimiter_trailing_non_null() {
61+
fn xargs_with_null_delimiter_trailing_non_null() {
6262
xargs_test("one\0two\0three", "one two three\n", vec!["-0", "echo"]);
6363
}
6464

6565
#[test]
66-
fn test_xargs_trace() {
66+
fn xargs_trace() {
6767
run_test(TestPlan {
6868
cmd: String::from("xargs"),
6969
args: vec!["-t".to_string(), "echo".to_string()],

0 commit comments

Comments
 (0)