1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 20:23:55 +00:00

Adding one final check for 100% coverage again

This commit is contained in:
Henry Fredrick Schreiner 2017-04-23 14:40:22 -04:00
parent de432f6213
commit c8206bf400

View File

@ -238,6 +238,14 @@ TEST_F(TApp, Required1SubCom) {
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 {
CLI::App* start;