Skip to content

Commit

Permalink
added no-op test
Browse files Browse the repository at this point in the history
  • Loading branch information
CraZySacX committed Feb 28, 2021
1 parent 1ccfcec commit d42d9ed
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,25 @@ mod test {
assert!(stdout_buf.is_empty());
}

#[cfg(all(
not(feature = "build"),
not(feature = "cargo"),
not(feature = "git"),
not(feature = "rustc"),
))]
#[test]
fn no_features_no_output_inst() {
let repo_path = PathBuf::from(".");
let mut stdout_buf = vec![];
assert!(config_from_instructions(
Instructions::default(),
Some(repo_path),
&mut stdout_buf,
)
.is_ok());
assert!(stdout_buf.is_empty());
}

#[cfg(all(feature = "build", not(feature = "git")))]
#[test]
fn contains_only_build_output() {
Expand Down

0 comments on commit d42d9ed

Please sign in to comment.