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

Method ManyGroupsPreTrigger

tests/OptionGroupTest.cpp:745–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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]") {

Callers

nothing calls this directly

Calls 1

preparse_callbackMethod · 0.80

Tested by

no test coverage detected