mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 12:13:52 +00:00
Adding one final check for 100% coverage again
This commit is contained in:
parent
de432f6213
commit
c8206bf400
@ -238,6 +238,14 @@ TEST_F(TApp, Required1SubCom) {
|
|||||||
EXPECT_THROW(run(), CLI::RequiredError);
|
EXPECT_THROW(run(), CLI::RequiredError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_F(TApp, BadSubcomSearch) {
|
||||||
|
|
||||||
|
auto one = app.add_subcommand("one");
|
||||||
|
auto two = one->add_subcommand("two");
|
||||||
|
|
||||||
|
EXPECT_THROW(app.get_subcommand(two), CLI::OptionNotFound);
|
||||||
|
}
|
||||||
|
|
||||||
struct SubcommandProgram : public TApp {
|
struct SubcommandProgram : public TApp {
|
||||||
|
|
||||||
CLI::App* start;
|
CLI::App* start;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user