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

Function TEST_P

be/src/exec/json/json-parser-test.cc:160–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158INSTANTIATE_TEST_SUITE_P(StreamSize, JsonParserTest, ::testing::Values(1, 16, 256));
159
160TEST_P(JsonParserTest, BasicTest) {
161 SimpleJsonScanner js(schema(), [this](const char** begin, const char** end) {
162 this->NextBuffer(begin, end);
163 });
164 constexpr int max_rows = 10;
165 int num_rows = 0;
166 do {
167 EXPECT_OK(js.Scan(max_rows, &num_rows));
168 EXPECT_GE(num_rows, 0);
169 EXPECT_LE(num_rows, max_rows);
170 } while (num_rows);
171 EXPECT_EQ(result(), js.result());
172}
173
174TEST_P(JsonParserTest, JsonSkipperTest) {
175 // positive cases

Callers

nothing calls this directly

Calls 7

resultFunction · 0.85
UnixMicrosFunction · 0.85
NextBufferMethod · 0.80
ScanMethod · 0.80
row_countMethod · 0.80
resultMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected