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

Function TEST

test/test_const_set_ext_constexpr.cpp:123–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 {
122 //*************************************************************************
123 TEST(test_default_constructor)
124 {
125 static constexpr Data data;
126
127 static constexpr bool is_valid = data.is_valid();
128 static constexpr size_t size = data.size();
129 static constexpr bool empty = data.empty();
130 static constexpr bool full = data.full();
131 static constexpr size_t capacity = data.capacity();
132 static constexpr size_t max_size = data.max_size();
133 static constexpr const_iterator begin = data.begin();
134 static constexpr const_iterator end = data.end();
135
136 CHECK_TRUE(is_valid);
137 CHECK_TRUE(size == 0UL);
138 CHECK_TRUE(empty);
139 CHECK_FALSE(full);
140 CHECK_TRUE(capacity == 0);
141 CHECK_TRUE(max_size == 0);
142 CHECK_TRUE(begin == end);
143 }
144
145 //*************************************************************************
146 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
equal_rangeMethod · 0.45

Tested by

no test coverage detected