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

Function TestZInt

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

Source from the content-addressed store, hash-verified

28namespace impala {
29
30void TestZInt(uint8_t* buf, int64_t buf_len, int32_t expected_val,
31 int expected_encoded_len) {
32 uint8_t* new_buf = buf;
33 ReadWriteUtil::ZIntResult r = ReadWriteUtil::ReadZInt(&new_buf, buf + buf_len);
34 EXPECT_TRUE(r.ok);
35 EXPECT_EQ(r.val, expected_val);
36 EXPECT_EQ(new_buf - buf, expected_encoded_len);
37}
38
39void TestZInt(int32_t value) {
40 uint8_t buf[ReadWriteUtil::MAX_ZINT_LEN];

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected