|
static void | error () |
|
static void | error (const std::string &actual, const std::string &expected, const std::string &message, const tunit::line_info &line_info) |
|
static void | fail (const std::string &actual, const std::string &expected, const std::string &message, const tunit::line_info &line_info) |
|
template<typename TCollection > |
static std::string | join_items (const TCollection &collection) |
|
static std::string | join_items (const std::string &str) |
|
template<typename TValue > |
static std::string | to_string (const TValue &value) |
|
template<typename TValue > |
static std::string | to_string (const TValue *value) |
|
◆ abort() [1/4]
static void tunit::base_assert::abort |
( |
| ) |
|
|
inlinestatic |
Abort current test.
This is used by the other Assert functions.
- Examples
-
◆ abort() [2/4]
Abort current test.
This is used by the other Assert functions.
- Parameters
-
line_info | Contains information about current file and current line. |
- Exceptions
-
tunit::assertion_error | If bad assertion. |
- Examples
-
◆ abort() [3/4]
static void tunit::base_assert::abort |
( |
const std::string & |
message | ) |
|
|
inlinestatic |
Abort current test.
This is used by the other Assert functions.
- Parameters
-
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
- Examples
-
◆ abort() [4/4]
static void tunit::base_assert::abort |
( |
const std::string & |
message, |
|
|
const tunit::line_info & |
line_info |
|
) |
| |
|
static |
Abort current test.
This is used by the other Assert functions.
- Parameters
-
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
line_info | Contains information about current file and current line. |
- Examples
-
◆ fail() [1/4]
static void tunit::base_assert::fail |
( |
| ) |
|
|
inlinestatic |
Throws an tunit::assertion_error exception.
This is used by the other Assert functions.
- Exceptions
-
tunit::assertion_error | If bad assertion. |
- Examples
-
◆ fail() [2/4]
Throws an tunit::assertion_error exception.
This is used by the other Assert functions.
- Parameters
-
line_info | Contains information about current file and current line. |
- Exceptions
-
tunit::assertion_error | If bad assertion. |
- Examples
-
◆ fail() [3/4]
static void tunit::base_assert::fail |
( |
const std::string & |
message | ) |
|
|
inlinestatic |
Throws an tunit::assertion_error exception.
This is used by the other Assert functions.
- Parameters
-
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
- Exceptions
-
tunit::assertion_error | If bad assertion. |
- Examples
-
◆ fail() [4/4]
static void tunit::base_assert::fail |
( |
const std::string & |
message, |
|
|
const tunit::line_info & |
line_info |
|
) |
| |
|
inlinestatic |
Throws an tunit::assertion_error exception.
This is used by the other Assert functions.
- Parameters
-
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
line_info | Contains information about current file and current line. |
- Exceptions
-
tunit::assertion_error | If bad assertion. |
- Examples
-
◆ ignore() [1/4]
static void tunit::base_assert::ignore |
( |
| ) |
|
|
inlinestatic |
Ignore current test.
This is used by the other Assert functions.
- Examples
-
◆ ignore() [2/4]
Ignore current test.
This is used by the other Assert functions.
- Parameters
-
line_info | Contains information about current file and current line. |
- Exceptions
-
tunit::assertion_error | If bad assertion. |
- Examples
-
◆ ignore() [3/4]
static void tunit::base_assert::ignore |
( |
const std::string & |
message | ) |
|
|
inlinestatic |
Ignore current test.
This is used by the other Assert functions.
- Parameters
-
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
- Examples
-
◆ ignore() [4/4]
static void tunit::base_assert::ignore |
( |
const std::string & |
message, |
|
|
const tunit::line_info & |
line_info |
|
) |
| |
|
static |
Ignore current test.
This is used by the other Assert functions.
- Parameters
-
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
line_info | Contains information about current file and current line. |
- Examples
-
◆ succeed() [1/4]
static void tunit::base_assert::succeed |
( |
| ) |
|
|
inlinestatic |
Generates a success with a generic message.
This is used by the other Assert functions.
- Examples
-
◆ succeed() [2/4]
Generates a success with a generic message.
This is used by the other Assert functions.
- Parameters
-
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
- Examples
-
◆ succeed() [3/4]
static void tunit::base_assert::succeed |
( |
const std::string & |
message | ) |
|
|
inlinestatic |
Generates a success with a generic message.
This is used by the other Assert functions.
- Parameters
-
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
- Examples
-
◆ succeed() [4/4]
static void tunit::base_assert::succeed |
( |
const std::string & |
message, |
|
|
const tunit::line_info & |
line_info |
|
) |
| |
|
static |
Generates a success with a generic message.
This is used by the other Assert functions.
- Parameters
-
message | A user message to display if the assertion fails. This message can be seen in the unit test results. |
line_info | Contains information about current file and current line. |
- Examples
-
The documentation for this class was generated from the following file: