| 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 |
nothing calls this directly
no test coverage detected