#include <test_logger.h>
Inherits std::vector< tMessage >.
Utility class that allows filtering of and searching for messages.
◆ ContainsMessage() [1/2]
| bool adtf::system::testing::lucky::cTestLogger::tMessages::ContainsMessage |
( |
const std::regex & | strPattern, |
|
|
bool | bPartialMatch = true ) |
- Parameters
-
| [in] | strPattern | The pattern to match. |
| [in] | bPartialMatch | Whether or not match the whole string or only parts. |
- Returns
- Whether there is a message that matches the given pattern or not.
◆ ContainsMessage() [2/2]
| bool adtf::system::testing::lucky::cTestLogger::tMessages::ContainsMessage |
( |
const std::string & | strContent | ) |
|
- Parameters
-
| [in] | strContent | The string to look for. |
- Returns
- Whether there is a message that contains the given string or not.
◆ Filter() [1/3]
| tMessages adtf::system::testing::lucky::cTestLogger::tMessages::Filter |
( |
const std::regex & | strPattern, |
|
|
bool | bPartialMatch = true ) |
- Parameters
-
| [in] | strPattern | The pattern to match. |
| [in] | bPartialMatch | Whether or not match the whole string or only parts. |
- Returns
- All messages that match the pattern.
◆ Filter() [2/3]
| tMessages adtf::system::testing::lucky::cTestLogger::tMessages::Filter |
( |
const std::string & | strContent | ) |
|
- Parameters
-
| [in] | strContent | The string to look for. |
- Returns
- All messages that contain the given string.
◆ Filter() [3/3]
| tMessages adtf::system::testing::lucky::cTestLogger::tMessages::Filter |
( |
uint8_t | nLogLevel | ) |
|
- Parameters
-
| [in] | nLogLevel | The log level to look for, see adtf::util::log::tLogLevel |
- Returns
- All messages with the given log level.
◆ FilterSource() [1/2]
| tMessages adtf::system::testing::lucky::cTestLogger::tMessages::FilterSource |
( |
const std::regex & | strPattern, |
|
|
bool | bPartialMatch = true ) |
- Parameters
-
| [in] | strPattern | The pattern to match. |
| [in] | bPartialMatch | Whether or not match the whole string or only parts. |
- Returns
- All messages of which the source matchs the pattern.
◆ FilterSource() [2/2]
| tMessages adtf::system::testing::lucky::cTestLogger::tMessages::FilterSource |
( |
const std::string & | strContent | ) |
|
- Parameters
-
| [in] | strContent | The string to look for. |
- Returns
- All messages of which the source contains the given string.
◆ FindMessage() [1/2]
| tMessage adtf::system::testing::lucky::cTestLogger::tMessages::FindMessage |
( |
const std::regex & | strPattern, |
|
|
bool | bPartialMatch = true ) |
Find a message that matches the given pattern.
- Parameters
-
| [in] | strPattern | The pattern to match. |
| [in] | bPartialMatch | Whether or not match the whole string or only parts. |
- Returns
- The first message that matches.
◆ FindMessage() [2/2]
| tMessage adtf::system::testing::lucky::cTestLogger::tMessages::FindMessage |
( |
const std::string & | strContent | ) |
|
Find a message that contains the given string.
- Parameters
-
| [in] | strContent | The string to look for. |
- Returns
- The first message that contains the string.
The documentation for this struct was generated from the following file:
- src/libraries/systemsdk/include/adtfsystemsdk/testing/test_logger.h