MCPcopy Create free account
hub / github.com/ElementsProject/elements / ForEachMergeSetup

Method ForEachMergeSetup

src/test/settings_tests.cpp:162–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 //! Enumerate all possible test configurations.
161 template <typename Fn>
162 void ForEachMergeSetup(Fn&& fn)
163 {
164 ActionList arg_actions = {};
165 // command_line_options do not have sections. Only iterate over SET and NEGATE
166 ForEachNoDup(arg_actions, SET, NEGATE, [&]{
167 ActionList conf_actions = {};
168 ForEachNoDup(conf_actions, SET, SECTION_NEGATE, [&]{
169 for (bool force_set : {false, true}) {
170 for (bool ignore_default_section_config : {false, true}) {
171 fn(arg_actions, conf_actions, force_set, ignore_default_section_config);
172 }
173 }
174 });
175 });
176 }
177};
178
179// Regression test covering different ways config settings can be merged. The

Callers

nothing calls this directly

Calls 2

ForEachNoDupFunction · 0.85
fnFunction · 0.85

Tested by

no test coverage detected