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

Function test_copy_constructor

cpp/src/map_test.cpp:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void test_copy_constructor() {
118 proton::map<string, scalar> m = std::map<string, scalar>{{"a", 2}, {"b", 3}};
119 ASSERT_EQUAL(scalar(2), m.get("a"));
120 ASSERT_EQUAL(scalar(3), m.get("b"));
121 ASSERT_EQUAL(2U, m.size());
122}
123
124void test_initializer_list_constructor() {
125 proton::map<string, scalar> m({{"a", 2}, {"b", 3}});

Callers 1

mainFunction · 0.85

Calls 3

scalarClass · 0.50
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected