| 2 | #include "gtest/gtest.h" |
| 3 | |
| 4 | TEST(Logger, simple) { |
| 5 | S3Params params = InitConfig("s3://abc/a config=data/s3test.conf section=default"); |
| 6 | |
| 7 | InitRemoteLog(); |
| 8 | |
| 9 | s3ext_logtype = STDERR_LOG; |
| 10 | S3DEBUG("Hello, STDERR DEBUG"); |
| 11 | S3ERROR("Hello, STDERR ERROR"); |
| 12 | |
| 13 | s3ext_logtype = INTERNAL_LOG; |
| 14 | S3DEBUG("Hello, INTERNAL DEBUG"); |
| 15 | S3ERROR("Hello, INTERNAL ERROR"); |
| 16 | |
| 17 | s3ext_logtype = REMOTE_LOG; |
| 18 | S3DEBUG("Hello, REMOTE DEBUG"); |
| 19 | S3ERROR("Hello, REMOTE ERROR"); |
| 20 | } |
| 21 | |
| 22 | TEST(Logger, getstr) { |
| 23 | EXPECT_EQ(EXT_DEBUG, getLogLevel("DEBUG")); |
nothing calls this directly
no test coverage detected