| 83 | } |
| 84 | |
| 85 | void AssertOnlyWholeObjects(Chunker& chunker, std::shared_ptr<Buffer> whole, int* count) { |
| 86 | *count = 0; |
| 87 | while (whole && !WhitespaceOnly(whole)) { |
| 88 | auto buf = whole; |
| 89 | if (ConsumeWholeObject(&whole) == string_view::npos) { |
| 90 | FAIL() << "Not a whole JSON object: '" << buf->ToString() << "'"; |
| 91 | } |
| 92 | ++*count; |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | void AssertWholeObjects(Chunker& chunker, const std::shared_ptr<Buffer>& block, |
| 97 | int expected_count) { |
no test coverage detected