| 19 | BOOST_FIXTURE_TEST_SUITE(getarg_tests, BasicTestingSetup) |
| 20 | |
| 21 | void ResetArgs(ArgsManager& local_args, const std::string& strArg) |
| 22 | { |
| 23 | std::vector<std::string> vecArg; |
| 24 | if (strArg.size()) |
| 25 | boost::split(vecArg, strArg, IsSpace, boost::token_compress_on); |
| 26 | |
| 27 | // Insert dummy executable name: |
| 28 | vecArg.insert(vecArg.begin(), "testbitcoin"); |
| 29 | |
| 30 | // Convert to char*: |
| 31 | std::vector<const char*> vecChar; |
| 32 | for (const std::string& s : vecArg) |
| 33 | vecChar.push_back(s.c_str()); |
| 34 | |
| 35 | std::string error; |
| 36 | BOOST_CHECK(local_args.ParseParameters(vecChar.size(), vecChar.data(), error)); |
| 37 | } |
| 38 | |
| 39 | void SetupArgs(ArgsManager& local_args, const std::vector<std::pair<std::string, unsigned int>>& args) |
| 40 | { |
no test coverage detected