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

Function test_empty

cpp/src/map_test.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using namespace proton;
31
32void test_empty() {
33 proton::map<string, scalar> m;
34 ASSERT_EQUAL(0U, m.size());
35 ASSERT(m.empty());
36 ASSERT_EQUAL(0U, m.erase("x"));
37 ASSERT(!m.exists("x"));
38
39 std::map<string, scalar> sm;
40 proton::get(m, sm);
41 ASSERT(sm.empty());
42}
43
44void test_use() {
45 proton::map<string, scalar> m;

Callers 1

mainFunction · 0.85

Calls 5

eraseMethod · 0.80
existsMethod · 0.80
getFunction · 0.70
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected