| 66 | } |
| 67 | |
| 68 | string FormatScriptFlags(unsigned int flags) |
| 69 | { |
| 70 | if (flags == 0) { |
| 71 | return ""; |
| 72 | } |
| 73 | string ret; |
| 74 | std::map<string, unsigned int>::const_iterator it = mapFlagNames.begin(); |
| 75 | while (it != mapFlagNames.end()) { |
| 76 | if (flags & it->second) { |
| 77 | ret += it->first + ","; |
| 78 | } |
| 79 | it++; |
| 80 | } |
| 81 | return ret.substr(0, ret.size() - 1); |
| 82 | } |
| 83 | |
| 84 | BOOST_FIXTURE_TEST_SUITE(transaction_tests, BasicTestingSetup) |
| 85 |