MCPcopy Create free account
hub / github.com/apache/arrow / AssertOnlyWholeObjects

Function AssertOnlyWholeObjects

cpp/src/arrow/json/chunker_test.cc:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void 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
96void AssertWholeObjects(Chunker& chunker, const std::shared_ptr<Buffer>& block,
97 int expected_count) {

Callers 2

AssertWholeObjectsFunction · 0.85
AssertChunkingBlockSizeFunction · 0.85

Calls 3

WhitespaceOnlyFunction · 0.85
ConsumeWholeObjectFunction · 0.70
ToStringMethod · 0.45

Tested by

no test coverage detected