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

Function AssertWholeObjects

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

Source from the content-addressed store, hash-verified

94}
95
96void AssertWholeObjects(Chunker& chunker, const std::shared_ptr<Buffer>& block,
97 int expected_count) {
98 std::shared_ptr<Buffer> whole, partial;
99 ASSERT_OK(chunker.Process(block, &whole, &partial));
100 int count;
101 AssertOnlyWholeObjects(chunker, whole, &count);
102 ASSERT_EQ(count, expected_count);
103}
104
105void AssertChunking(Chunker& chunker, std::shared_ptr<Buffer> buf, int total_count) {
106 // First chunkize whole JSON block

Callers 1

AssertChunkingFunction · 0.85

Calls 2

AssertOnlyWholeObjectsFunction · 0.85
ProcessMethod · 0.45

Tested by

no test coverage detected