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

Function TEST_F

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

Source from the content-addressed store, hash-verified

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

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
MakeFunction · 0.70
ASSERT_OK_AND_ASSIGNFunction · 0.70

Tested by

no test coverage detected