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

Function TestNoCopyTask

cpp/src/arrow/util/task_group_test.cc:283–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283void TestNoCopyTask(std::shared_ptr<TaskGroup> task_group) {
284 auto counter = std::make_shared<uint8_t>(0);
285 CopyCountingTask task(counter);
286 task_group->Append(std::move(task));
287 ASSERT_OK(task_group->Finish());
288 ASSERT_EQ(0, *counter);
289}
290
291void TestFinishNotSticky(std::function<std::shared_ptr<TaskGroup>()> factory) {
292 // If a task is added that runs very quickly it might decrement the task counter back

Callers 1

TESTFunction · 0.85

Calls 2

AppendMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected