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

Function TEST_F

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

Source from the content-addressed store, hash-verified

71};
72
73TEST_F(TestBufferOutputStream, DtorCloses) {
74 std::string data = "data123456";
75
76 const int K = 100;
77 for (int i = 0; i < K; ++i) {
78 ARROW_EXPECT_OK(stream_->Write(data));
79 }
80
81 stream_ = nullptr;
82 ASSERT_EQ(static_cast<int64_t>(K * data.size()), buffer_->size());
83}
84
85TEST_F(TestBufferOutputStream, CloseResizes) {
86 std::string data = "data123456";

Callers

nothing calls this directly

Calls 6

WriteMethod · 0.45
sizeMethod · 0.45
CloseMethod · 0.45
getMethod · 0.45
FinishMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected