Skip to content

Commit

Permalink
fix: use unused hc schema args var in cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
j-lanson committed Jun 6, 2024
1 parent c0e5382 commit 2348568
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hipcheck/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,13 @@ mod tests {
parsed.unwrap_err().kind(),
clap::error::ErrorKind::DisplayHelpOnMissingArgumentOrSubcommand
);

let parsed = CliConfig::try_parse_from(schema_args.into_iter());
assert!(parsed.is_err());
assert_eq!(
parsed.unwrap_err().kind(),
clap::error::ErrorKind::DisplayHelpOnMissingArgumentOrSubcommand
);
}

fn get_check_cmd_from_cli(args: Vec<&str>) -> Result<CheckCommand, Error> {
Expand Down

0 comments on commit 2348568

Please sign in to comment.