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

Method TestStressWait

cpp/src/arrow/util/future_test.cc:1496–1514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1494 }
1495
1496 void TestStressWait() {
1497#ifdef ARROW_VALGRIND
1498 const int N = 20;
1499#else
1500 const int N = 2000;
1501#endif
1502 MakeExecutor(N);
1503 const auto& futures = executor_->futures();
1504 const auto spans = RandomSequenceSpans(N);
1505 for (const auto& span : spans) {
1506 int start = span.first, stop = span.second;
1507 executor_->SetFinishedDeferred(start, stop);
1508 AssertSpanSuccessful(start, stop);
1509 if (stop < N) {
1510 AssertNotFinished(futures[stop]);
1511 }
1512 }
1513 AssertAllSuccessful();
1514 }
1515
1516 protected:
1517 std::unique_ptr<ExecutorType> executor_;

Callers 1

TYPED_TESTFunction · 0.80

Calls 3

MakeExecutorFunction · 0.85
AssertNotFinishedFunction · 0.85
SetFinishedDeferredMethod · 0.80

Tested by

no test coverage detected