MCPcopy Create free account
hub / github.com/apache/impala / ValidateString

Function ValidateString

be/src/runtime/string-buffer-test.cc:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace impala {
28
29void ValidateString(const string& std_str, const StringBuffer& str) {
30 EXPECT_EQ(std_str.empty(), str.IsEmpty());
31 EXPECT_EQ(static_cast<int64_t>(std_str.size()), str.len());
32 if (std_str.size() > 0) {
33 EXPECT_EQ(strncmp(std_str.c_str(), str.buffer(), std_str.size()), 0);
34 }
35}
36
37TEST(StringBufferTest, Basic) {
38 MemTracker tracker;

Callers 1

TESTFunction · 0.85

Calls 5

emptyMethod · 0.45
IsEmptyMethod · 0.45
sizeMethod · 0.45
lenMethod · 0.45
bufferMethod · 0.45

Tested by

no test coverage detected