Skip to content

Commit

Permalink
cross_toml: Make tests pass
Browse files Browse the repository at this point in the history
by adding an empty default value for `extra_args` where required.
  • Loading branch information
har7an committed Aug 21, 2023
1 parent bbbc886 commit 1034191
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cross_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ mod tests {
env: CrossEnvConfig {
volumes: Some(vec![p!("VOL1_ARG"), p!("VOL2_ARG")]),
passthrough: Some(vec![p!("VAR1"), p!("VAR2")]),
extra_args: None,
},
xargo: Some(true),
build_std: None,
Expand Down Expand Up @@ -662,6 +663,7 @@ mod tests {
env: CrossEnvConfig {
passthrough: Some(vec![p!("VAR1"), p!("VAR2")]),
volumes: Some(vec![p!("VOL1_ARG"), p!("VOL2_ARG")]),
extra_args: None,
},
xargo: Some(false),
build_std: Some(true),
Expand All @@ -680,6 +682,7 @@ mod tests {
env: CrossEnvConfig {
passthrough: None,
volumes: None,
extra_args: None,
},
xargo: None,
build_std: None,
Expand Down Expand Up @@ -750,6 +753,7 @@ mod tests {
env: CrossEnvConfig {
passthrough: None,
volumes: Some(vec![p!("VOL")]),
extra_args: None,
},
},
);
Expand All @@ -760,6 +764,7 @@ mod tests {
env: CrossEnvConfig {
volumes: None,
passthrough: Some(vec![]),
extra_args: None,
},
xargo: Some(true),
build_std: None,
Expand Down Expand Up @@ -834,6 +839,7 @@ mod tests {
env: CrossEnvConfig {
passthrough: None,
volumes: None,
extra_args: None,
},
build_std: None,
xargo: Some(true),
Expand Down

0 comments on commit 1034191

Please sign in to comment.