farm-ng-core
test_common.h File Reference
#include <gtest/gtest.h>
#include <regex>
Include dependency graph for test_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  farm_ng::testing::CaptureStdErr
 

Namespaces

 farm_ng
 
 farm_ng::testing
 

Macros

#define EXPECT_CONTAINS(str, regex)
 
#define EXPECT_NOT_CONTAINS(str, regex)
 

Macro Definition Documentation

◆ EXPECT_CONTAINS

#define EXPECT_CONTAINS (   str,
  regex 
)
Value:
EXPECT_TRUE(std::regex_search((str), (regex))) \
<< FARM_FORMAT("str = `{}`", str)

◆ EXPECT_NOT_CONTAINS

#define EXPECT_NOT_CONTAINS (   str,
  regex 
)
Value:
EXPECT_FALSE(std::regex_search((str), (regex))) \
<< FARM_FORMAT("str = `{}`", str)
FARM_FORMAT
#define FARM_FORMAT(...)
Formats the cstr using the libfmt library.
Definition: format.h:125
core.event_service.str
str
Definition: event_service.py:547