21 lines
433 B
C++
21 lines
433 B
C++
#include "testutils/LoggingTest.h"
|
|
|
|
/*
|
|
* Contains test cases for the Logger class
|
|
*/
|
|
|
|
using namespace cpputils::logging;
|
|
using std::string;
|
|
using testing::MatchesRegex;
|
|
|
|
class LoggerTest: public LoggingTest {};
|
|
|
|
TEST_F(LoggerTest, IsSingleton) {
|
|
ASSERT_EQ(&logger(), &logger());
|
|
}
|
|
|
|
TEST_F(LoggerTest, SetLogger) {
|
|
logger().setLogger(spdlog::stdout_logger_mt("MyTestLog1"));
|
|
EXPECT_EQ("MyTestLog1", logger()->name());
|
|
}
|