| 171 | } |
| 172 | |
| 173 | void AssertParsePartial(BlockParser& parser, const std::string& str, |
| 174 | uint32_t expected_size) { |
| 175 | uint32_t parsed_size = static_cast<uint32_t>(-1); |
| 176 | ASSERT_OK(Parse(parser, str, &parsed_size)); |
| 177 | ASSERT_EQ(parsed_size, expected_size); |
| 178 | } |
| 179 | |
| 180 | void AssertParsePartial(BlockParser& parser, const std::vector<std::string_view>& data, |
| 181 | uint32_t expected_size) { |