MCPcopy Create free account
hub / github.com/ElementsProject/elements / CheckParseTorReplyMapping

Function CheckParseTorReplyMapping

src/test/torcontrol_tests.cpp:59–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static 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
73BOOST_AUTO_TEST_CASE(util_ParseTorReplyMapping)
74{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 4

ParseTorReplyMappingFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected