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

Function TEST

test/test_const_map_constexpr.cpp:120–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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