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

Function test_initializer_list_constructor

cpp/src/map_test.cpp:124–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void test_initializer_list_constructor() {
125 proton::map<string, scalar> m({{"a", 2}, {"b", 3}});
126 ASSERT_EQUAL(scalar(2), m.get("a"));
127 ASSERT_EQUAL(scalar(3), m.get("b"));
128 ASSERT_EQUAL(2U, m.size());
129}
130
131}
132

Callers 1

mainFunction · 0.85

Calls 3

scalarClass · 0.50
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected