| 924 | //! Enumerate all possible test configurations. |
| 925 | template <typename Fn> |
| 926 | void ForEachMergeSetup(Fn&& fn) |
| 927 | { |
| 928 | ActionList arg_actions = {}; |
| 929 | // command_line_options do not have sections. Only iterate over SET and NEGATE |
| 930 | ForEachNoDup(arg_actions, SET, NEGATE, [&] { |
| 931 | ActionList conf_actions = {}; |
| 932 | ForEachNoDup(conf_actions, SET, SECTION_NEGATE, [&] { |
| 933 | for (bool soft_set : {false, true}) { |
| 934 | for (bool force_set : {false, true}) { |
| 935 | for (const std::string& section : {CBaseChainParams::MAIN, CBaseChainParams::TESTNET, CBaseChainParams::SIGNET}) { |
| 936 | for (const std::string& network : {CBaseChainParams::MAIN, CBaseChainParams::TESTNET, CBaseChainParams::SIGNET}) { |
| 937 | for (bool net_specific : {false, true}) { |
| 938 | fn(arg_actions, conf_actions, soft_set, force_set, section, network, net_specific); |
| 939 | } |
| 940 | } |
| 941 | } |
| 942 | } |
| 943 | } |
| 944 | }); |
| 945 | }); |
| 946 | } |
| 947 | |
| 948 | //! Translate actions into a list of <key>=<value> setting strings. |
| 949 | std::vector<std::string> GetValues(const ActionList& actions, |
nothing calls this directly
no test coverage detected