MCPcopy Create free account
hub / github.com/apache/qpid-proton / map_test

Function map_test

cpp/src/value_test.cpp:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68template <class T, class U> void map_test(const U& values, const string& s) {
69 T m(values.begin(), values.end());
70 value v(m);
71 ASSERT_EQUAL(MAP, v.type());
72 T m2(get<T>(v));
73 ASSERT_EQUAL(m.size(), m2.size());
74 ASSERT_EQUAL(m, m2);
75 if (!s.empty())
76 ASSERT_EQUAL(s, to_string(v));
77}
78
79void null_test() {
80 proton::null n;

Callers

nothing calls this directly

Calls 6

to_stringFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
typeMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected