| 57 | }; |
| 58 | |
| 59 | unsigned int ParseScriptFlags(std::string strFlags) |
| 60 | { |
| 61 | if (strFlags.empty()) { |
| 62 | return 0; |
| 63 | } |
| 64 | unsigned int flags = 0; |
| 65 | std::vector<std::string> words; |
| 66 | boost::algorithm::split(words, strFlags, boost::algorithm::is_any_of(",")); |
| 67 | |
| 68 | for (std::string word : words) |
| 69 | { |
| 70 | if (!mapFlagNames.count(word)) |
| 71 | BOOST_ERROR("Bad test: unknown verification flag '" << word << "'"); |
| 72 | flags |= mapFlagNames[word]; |
| 73 | } |
| 74 | |
| 75 | return flags; |
| 76 | } |
| 77 | |
| 78 | std::string FormatScriptFlags(unsigned int flags) |
| 79 | { |
no test coverage detected