Skip to content

Commit

Permalink
Add config/parse test where the option/value are not in the same arg.
Browse files Browse the repository at this point in the history
All the tests in this module use --option=value syntax so add one test with --option value syntax for coverage.
  • Loading branch information
dwsteele committed May 13, 2021
1 parent 26fefa6 commit 0825428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/src/module/config/parseTest.c
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,8 @@ testRun(void)
strLstAdd(argList, strNew("--pg1-path=/path/to/db/"));
strLstAdd(argList, strNew("--no-online"));
strLstAdd(argList, strNew("--no-config"));
strLstAdd(argList, strNew("--repo1-type=s3"));
strLstAdd(argList, strNew("--repo1-type"));
strLstAdd(argList, strNew("s3")); // Argument for the option above
strLstAdd(argList, strNew("--repo1-s3-bucket=test"));
strLstAdd(argList, strNew("--repo1-s3-endpoint=test"));
strLstAdd(argList, strNew("--repo1-s3-region=test"));
Expand Down

0 comments on commit 0825428

Please sign in to comment.