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

Function TEST_F

cpp/src/arrow/util/thread_pool_test.cc:462–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460};
461
462TEST_F(TransferTest, DefaultTransferIfNotFinished) {
463 {
464 Future<> fut = Future<>::Make();
465 auto transferred = executor()->Transfer(fut);
466 fut.MarkFinished();
467 ASSERT_FINISHES_OK(transferred);
468 ASSERT_EQ(1, spawn_count());
469 }
470 {
471 Future<> fut = Future<>::Make();
472 fut.MarkFinished();
473 auto transferred = executor()->Transfer(fut);
474 ASSERT_FINISHES_OK(transferred);
475 ASSERT_EQ(1, spawn_count());
476 }
477}
478
479TEST_F(TransferTest, TransferAlways) {
480 {

Callers 1

ASSERT_OK_AND_ASSIGNFunction · 0.70

Calls 15

SleepForFunction · 0.85
BusyWaitFunction · 0.85
MakeThreadPoolMethod · 0.80
ValueOrDieMethod · 0.80
OwnsThisThreadMethod · 0.80
tokenMethod · 0.80
SpawnTasksMethod · 0.80
CheckNotAllComputedMethod · 0.80
GetActualCapacityMethod · 0.80
SetCapacityMethod · 0.80
GetNumTasksMethod · 0.80
MakeFunction · 0.70

Tested by

no test coverage detected