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

Function TEST

gpcontrib/gpcloud/test/s3utils_test.cpp:6–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "ini.cpp"
5
6TEST(Utils, nth) {
7 const char *teststr = "aaabbbcccaaatttaaa";
8
9 EXPECT_EQ((uint64_t)-1, find_Nth(teststr, 0, "aaa"));
10 EXPECT_EQ((uint64_t)0, find_Nth(teststr, 1, "aaa"));
11 EXPECT_EQ((uint64_t)9, find_Nth(teststr, 2, "aaa"));
12 EXPECT_EQ((uint64_t)15, find_Nth(teststr, 3, "aaa"));
13 EXPECT_EQ((uint64_t)-1, find_Nth(teststr, 1, "abc"));
14 EXPECT_EQ((uint64_t)0, find_Nth(teststr, 1, ""));
15}
16
17#define MD5TESTSTRING "abcdefghijklmnopqrstuvwxyz\n"
18TEST(Utils, md5) {

Callers

nothing calls this directly

Calls 14

find_NthFunction · 0.85
sha256_hexFunction · 0.85
sha1hmac_hexFunction · 0.85
sha256hmac_hexFunction · 0.85
UriEncodeFunction · 0.85
UriDecodeFunction · 0.85
FindAndReplaceFunction · 0.85
SignRequestV4Function · 0.85
GetOptS3Function · 0.85
TruncateOptionsFunction · 0.85
ScanMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected