| 158 | INSTANTIATE_TEST_SUITE_P(StreamSize, JsonParserTest, ::testing::Values(1, 16, 256)); |
| 159 | |
| 160 | TEST_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 | |
| 174 | TEST_P(JsonParserTest, JsonSkipperTest) { |
| 175 | // positive cases |
nothing calls this directly
no test coverage detected