MCPcopy Create free account
hub / github.com/apache/cloudberry / TEST

Function TEST

gpcontrib/gpcloud/test/s3log_test.cpp:4–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "gtest/gtest.h"
3
4TEST(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
22TEST(Logger, getstr) {
23 EXPECT_EQ(EXT_DEBUG, getLogLevel("DEBUG"));

Callers

nothing calls this directly

Calls 4

InitRemoteLogFunction · 0.85
getLogLevelFunction · 0.85
getLogTypeFunction · 0.85
InitConfigFunction · 0.50

Tested by

no test coverage detected