| 57 | } |
| 58 | |
| 59 | static void CheckParseTorReplyMapping(std::string input, std::map<std::string,std::string> expected) |
| 60 | { |
| 61 | auto ret = ParseTorReplyMapping(input); |
| 62 | BOOST_CHECK_EQUAL(ret.size(), expected.size()); |
| 63 | auto r_it = ret.begin(); |
| 64 | auto e_it = expected.begin(); |
| 65 | while (r_it != ret.end() && e_it != expected.end()) { |
| 66 | BOOST_CHECK_EQUAL(r_it->first, e_it->first); |
| 67 | BOOST_CHECK_EQUAL(r_it->second, e_it->second); |
| 68 | r_it++; |
| 69 | e_it++; |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | BOOST_AUTO_TEST_CASE(util_ParseTorReplyMapping) |
| 74 | { |
no test coverage detected