MCPcopy Create free account
hub / github.com/EarlhamInst/KAT / test_empty_basic_stacktrace

Function test_empty_basic_stacktrace

deps/boost/libs/stacktrace/test/test.cpp:241–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239// Template parameter bool BySkip is to produce different functions on each BySkip. This simplifies debugging when one of the tests catches error
240template <bool BySkip>
241void test_empty_basic_stacktrace() {
242 typedef boost::stacktrace::stacktrace st_t;
243 st_t st = BySkip ? st_t(100500, 1024) : st_t(0, 0);
244
245 BOOST_TEST(!st);
246 BOOST_TEST(st.empty());
247 BOOST_TEST(st.size() == 0);
248 BOOST_TEST(st.begin() == st.end());
249 BOOST_TEST(st.cbegin() == st.end());
250 BOOST_TEST(st.cbegin() == st.cend());
251 BOOST_TEST(st.begin() == st.cend());
252
253 BOOST_TEST(st.rbegin() == st.rend());
254 BOOST_TEST(st.crbegin() == st.rend());
255 BOOST_TEST(st.crbegin() == st.crend());
256 BOOST_TEST(st.rbegin() == st.crend());
257
258 BOOST_TEST(hash_value(st) == hash_value(st_t(0, 0)));
259 BOOST_TEST(st == st_t(0, 0));
260 BOOST_TEST(!(st < st_t(0, 0)));
261 BOOST_TEST(!(st > st_t(0, 0)));
262}
263
264int main() {
265 test_deeply_nested_namespaces();

Callers

nothing calls this directly

Calls 11

hash_valueFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
cbeginMethod · 0.45
cendMethod · 0.45
rbeginMethod · 0.45
rendMethod · 0.45
crbeginMethod · 0.45
crendMethod · 0.45

Tested by

no test coverage detected