Skip to content

Commit

Permalink
Prunes redundant test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Jun 5, 2023
1 parent aae8c5b commit 3f73979
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions zebrad/src/commands/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@ use super::EntryPoint;
fn args_with_subcommand_pass_through() {
let test_cases = [
(true, false, vec!["zebrad"]),
(true, true, vec!["zebrad", "-v"]),
(true, true, vec!["zebrad", "--verbose"]),
(false, false, vec!["zebrad", "-h"]),
(false, false, vec!["zebrad", "--help"]),
(true, false, vec!["zebrad", "start"]),
(true, true, vec!["zebrad", "-v", "start"]),
(true, false, vec!["zebrad", "warn"]),
(true, false, vec!["zebrad", "start", "warn"]),
(false, false, vec!["zebrad", "help", "warn"]),
(true, false, vec!["zebrad", "-v", "warn"]),
(true, true, vec!["zebrad", "-v", "start", "warn"]),
];

for (should_be_start, should_be_verbose, args) in test_cases {
Expand Down

0 comments on commit 3f73979

Please sign in to comment.