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

Method TestChunked

cpp/src/arrow/io/memory_test.cc:559–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557 }
558
559 void TestChunked() {
560 auto src = Buffer::FromString("1234567890abcdefghi");
561 ASSERT_OK_AND_ASSIGN(auto expected, this->transform()(src));
562
563 auto stream = std::make_shared<TransformInputStream>(
564 std::make_shared<BufferReader>(src), this->transform());
565 std::shared_ptr<Buffer> actual;
566 AccumulateReads(stream, 5, &actual);
567 AssertBufferEqual(*actual, *expected);
568 }
569
570 void TestStressChunked() {
571 ASSERT_OK_AND_ASSIGN(auto unique_src, AllocateBuffer(1000));

Callers 1

TYPED_TESTFunction · 0.80

Calls 3

transformMethod · 0.95
FromStringFunction · 0.85
AssertBufferEqualFunction · 0.85

Tested by

no test coverage detected