|  | Kea 3.0.0
    | 
#include <gtest/gtest.h>Go to the source code of this file.
| Namespaces | |
| namespace | isc | 
| Defines the logger used by the top-level component of kea-lfc. | |
| namespace | isc::test | 
| Macros | |
| #define | ASSERT_NO_THROW_LOG(statement) | 
| Generates a fatal failure with exception info, if the given expression throws. | |
| #define | ASSERT_THROW_MSG(statement, etype, emsg) | 
| Verifies an expected exception type and message. | |
| #define | EXPECT_NO_THROW_LOG(statement) | 
| Adds a non-fatal failure with exception info, if the given expression throws. | |
| #define | EXPECT_THROW_MSG(statement, etype, emsg) | 
| Verifies an expected exception type and message. | |
| #define | SKIP_IF(expression) | 
| Skip a test without failure if the given expression is true. | |
| #define ASSERT_NO_THROW_LOG | ( | statement | ) | 
Generates a fatal failure with exception info, if the given expression throws.
Note the type name emitted may be mangled.
| statement | - statement block to execute | 
Definition at line 77 of file gtest_utils.h.
| #define ASSERT_THROW_MSG | ( | statement, | |
| etype, | |||
| emsg ) | 
Verifies an expected exception type and message.
If the statement does not generate the expected exception containing the expected message it will generate a fatal failure.
| statement | - statement block to execute | 
| etype | - type of exception expected | 
| emsg | - exact content expected to be returned by ex.what() | 
Definition at line 45 of file gtest_utils.h.
| #define EXPECT_NO_THROW_LOG | ( | statement | ) | 
Adds a non-fatal failure with exception info, if the given expression throws.
Note the type name emitted may be mangled.
| statement | - statement block to execute | 
Definition at line 61 of file gtest_utils.h.
| #define EXPECT_THROW_MSG | ( | statement, | |
| etype, | |||
| emsg ) | 
Verifies an expected exception type and message.
If the statement does not generate the expected exception containing the expected message it will generate a non-fatal failure.
| statement | - statement block to execute | 
| etype | - type of exception expected | 
| emsg | - exact content expected to be returned by ex.what() | 
Definition at line 24 of file gtest_utils.h.
| #define SKIP_IF | ( | expression | ) | 
Skip a test without failure if the given expression is true.
SKIP_IF(exp) provides a means to exit a test without failing if the given expression is true. This works around the lack of GTEST_SKIP prior to googletest 1.10.
| expression | logical expression to execute | 
Definition at line 101 of file gtest_utils.h.