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

Method TestBasics

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

Source from the content-addressed store, hash-verified

532 }
533
534 void TestBasics() {
535 auto src = Buffer::FromString("1234567890abcdefghi");
536 ASSERT_OK_AND_ASSIGN(auto expected, this->transform()(src));
537
538 auto stream = std::make_shared<TransformInputStream>(
539 std::make_shared<BufferReader>(src), this->transform());
540 std::shared_ptr<Buffer> actual;
541 AccumulateReads(stream, 200, &actual);
542 AssertBufferEqual(*actual, *expected);
543 }
544
545 void TestClose() {
546 auto src = Buffer::FromString("1234567890abcdefghi");

Callers 1

TYPED_TESTFunction · 0.45

Calls 3

transformMethod · 0.95
FromStringFunction · 0.85
AssertBufferEqualFunction · 0.85

Tested by

no test coverage detected