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

Function TestZLong

be/src/exec/zigzag-test.cc:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void TestZLong(uint8_t* buf, int64_t buf_len, int64_t expected_val,
47 int expected_encoded_len) {
48 uint8_t* new_buf = buf;
49 ReadWriteUtil::ZLongResult r = ReadWriteUtil::ReadZLong(&new_buf, buf + buf_len);
50 EXPECT_TRUE(r.ok);
51 EXPECT_EQ(r.val, expected_val);
52 EXPECT_EQ(new_buf - buf, expected_encoded_len);
53}
54
55void TestZLong(int64_t value) {
56 uint8_t buf[ReadWriteUtil::MAX_ZLONG_LEN];

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected