| 76 | } |
| 77 | |
| 78 | std::string FormatScriptFlags(unsigned int flags) |
| 79 | { |
| 80 | if (flags == 0) { |
| 81 | return ""; |
| 82 | } |
| 83 | std::string ret; |
| 84 | std::map<std::string, unsigned int>::const_iterator it = mapFlagNames.begin(); |
| 85 | while (it != mapFlagNames.end()) { |
| 86 | if (flags & it->second) { |
| 87 | ret += it->first + ","; |
| 88 | } |
| 89 | it++; |
| 90 | } |
| 91 | return ret.substr(0, ret.size() - 1); |
| 92 | } |
| 93 | |
| 94 | BOOST_FIXTURE_TEST_SUITE(transaction_tests, BasicTestingSetup) |
| 95 |