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

Function TEST_F

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

Source from the content-addressed store, hash-verified

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

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