MCPcopy Create free account
hub / github.com/ETLCPP/etl / TEST

Function TEST

test/test_const_map_ext_constexpr.cpp:116–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 {
115 //*************************************************************************
116 TEST(test_default_constructor)
117 {
118 static constexpr Data data;
119
120 static constexpr bool is_valid = data.is_valid();
121 static constexpr size_t size = data.size();
122 static constexpr bool empty = data.empty();
123 static constexpr bool full = data.full();
124 static constexpr size_t capacity = data.capacity();
125 static constexpr size_t max_size = data.max_size();
126 static constexpr const_iterator begin = data.begin();
127 static constexpr const_iterator end = data.end();
128
129 CHECK_TRUE(is_valid);
130 CHECK_TRUE(size == 0UL);
131 CHECK_TRUE(empty);
132 CHECK_FALSE(full);
133 CHECK_TRUE(capacity == 0);
134 CHECK_TRUE(max_size == 0);
135 CHECK_TRUE(begin == end);
136 }
137
138 //*************************************************************************
139 TEST(test_constructor_min_size_from_span)

Callers

nothing calls this directly

Calls 15

KeyClass · 0.70
compareFunction · 0.70
distanceFunction · 0.50
is_validMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45
fullMethod · 0.45
capacityMethod · 0.45
max_sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected