MCPcopy Create free account
hub / github.com/CLIUtils/CLI11 / ManyGroupsPreTrigger

Class ManyGroupsPreTrigger

tests/OptionGroupTest.cpp:743–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741}
742
743struct ManyGroupsPreTrigger : public ManyGroups {
744 std::size_t triggerMain{0u}, trigger1{87u}, trigger2{34u}, trigger3{27u};
745 ManyGroupsPreTrigger() {
746 remove_required();
747 app.preparse_callback([this](std::size_t count) { triggerMain = count; });
748
749 g1->preparse_callback([this](std::size_t count) { trigger1 = count; });
750 g2->preparse_callback([this](std::size_t count) { trigger2 = count; });
751 g3->preparse_callback([this](std::size_t count) { trigger3 = count; });
752 }
753};
754
755TEST_CASE_METHOD(ManyGroupsPreTrigger, "PreTriggerTestsOptions", "[optiongroup]") {
756

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected