hunting/test/utils/LogC/src/LogCTest.cpp
2023-08-15 00:06:04 +08:00

20 lines
418 B
C++

#include "iLog.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace LogCTest
{
// ../out/test/bin/LogCTest --gtest_filter=LogCTest.Demo
TEST(LogCTest, Demo)
{
create_log_module();
i_log_init();
LogInfo("hello world.");
LogError("create ... failed.");
LogDebug("a = %d b = %s", 124, "apple");
i_log_unInit();
destroy_log_module();
}
}