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

Method TestReleaseUnused

cpp/src/arrow/memory_pool_test.h:110–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 }
109
110 void TestReleaseUnused() {
111 auto pool = memory_pool();
112 const int64_t nbytes = pool->bytes_allocated();
113 pool->ReleaseUnused();
114 // Unfortunately there's not much that we can assert here
115 ASSERT_EQ(nbytes, pool->bytes_allocated());
116 }
117};
118
119} // namespace arrow

Callers 1

TYPED_TEST_PFunction · 0.80

Calls 3

memory_poolFunction · 0.50
bytes_allocatedMethod · 0.45
ReleaseUnusedMethod · 0.45

Tested by

no test coverage detected