MCPcopy Create free account
hub / github.com/comaps/comaps / UNIT_TEST

Function UNIT_TEST

libs/base/base_tests/exception_tests.cpp:72–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72UNIT_TEST(ExceptionCatcher_FunctionsWithoutArgs)
73{
74 bool exception = false;
75 ExceptionCatcher("Function without arg.", exception, FuncDoesNotThrow);
76 TEST(!exception, ());
77 ExceptionCatcher("Function without arg.", exception, FuncThrowsRootException);
78 TEST(exception, ());
79 ExceptionCatcher("Function without arg.", exception, FuncThrowsException);
80 TEST(exception, ());
81 ExceptionCatcher("Function without arg.", exception, FuncThrowsRuntimeError);
82 TEST(exception, ());
83 ExceptionCatcher("Function without arg.", exception, FuncThrowsNumber);
84 TEST(exception, ());
85}
86
87UNIT_TEST(ExceptionCatcher_Functions)
88{

Callers

nothing calls this directly

Calls 3

ExceptionCatcherFunction · 0.85
TESTFunction · 0.85
RootExceptionClass · 0.85

Tested by

no test coverage detected