MCPcopy Create free account
hub / github.com/boostorg/stacktrace / test_empty_frame

Function test_empty_frame

test/test_noop.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void test_empty_frame() {
40 boost::stacktrace::frame empty_frame;
41 BOOST_TEST(!empty_frame);
42 BOOST_TEST(empty_frame.source_file() == "");
43 BOOST_TEST(empty_frame.name() == "");
44 BOOST_TEST(empty_frame.source_line() == 0);
45
46 boost::stacktrace::frame f(0);
47 BOOST_TEST(f.name() == "");
48 BOOST_TEST(f.source_file() == "");
49 BOOST_TEST(f.source_line() == 0);
50}
51
52int main() {
53 test_deeply_nested_namespaces();

Callers 1

mainFunction · 0.85

Calls 3

source_fileMethod · 0.45
nameMethod · 0.45
source_lineMethod · 0.45

Tested by

no test coverage detected