MRPT  1.9.9
Functions
exception_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <mrpt/core/exceptions.h>
#include <algorithm>
#include <sstream>
Include dependency graph for exception_unittest.cpp:

Go to the source code of this file.

Functions

 TEST (exception, stackedExceptionBasic)
 
void test_except_3rd_lvl ()
 
void test_except_2nd_lvl ()
 
void test_except_toplevel ()
 
 TEST (exception, stackedExceptionComplex)
 
 TEST (exception, assertException)
 
 TEST (exception, stackedExceptionCustomMsg)
 

Function Documentation

◆ TEST() [1/4]

TEST ( exception  ,
stackedExceptionBasic   
)

Definition at line 15 of file exception_unittest.cpp.

References THROW_STACKED_EXCEPTION.

◆ TEST() [2/4]

TEST ( exception  ,
stackedExceptionComplex   
)

Definition at line 41 of file exception_unittest.cpp.

References mrpt::exception_to_str(), EXPECT_EQ(), and test_except_toplevel().

Here is the call graph for this function:

◆ TEST() [3/4]

TEST ( exception  ,
assertException   
)

Definition at line 57 of file exception_unittest.cpp.

References ASSERT_EQUAL_.

◆ TEST() [4/4]

TEST ( exception  ,
stackedExceptionCustomMsg   
)

Definition at line 64 of file exception_unittest.cpp.

References THROW_STACKED_EXCEPTION_CUSTOM_MSG2.

◆ test_except_2nd_lvl()

void test_except_2nd_lvl ( )
Examples:
core_exceptions_example/test.cpp.

Definition at line 27 of file exception_unittest.cpp.

References MRPT_END, MRPT_START, and test_except_3rd_lvl().

Referenced by test_except_toplevel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_except_3rd_lvl()

void test_except_3rd_lvl ( )
Examples:
core_exceptions_example/test.cpp.

Definition at line 20 of file exception_unittest.cpp.

References MRPT_END, MRPT_START, and THROW_EXCEPTION.

Referenced by test_except_2nd_lvl().

Here is the caller graph for this function:

◆ test_except_toplevel()

void test_except_toplevel ( )
Examples:
core_exceptions_example/test.cpp.

Definition at line 34 of file exception_unittest.cpp.

References MRPT_END, MRPT_START, and test_except_2nd_lvl().

Referenced by TEST().

Here is the call graph for this function:
Here is the caller graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 0cbd40372 Sun Nov 17 09:43:05 2019 +0100 at dom nov 17 09:45:09 CET 2019