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

Function AssertSuccessful

cpp/src/arrow/testing/future_util.h:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120// Assert the future is successful *now*
121template <typename T>
122void AssertSuccessful(const Future<T>& fut) {
123 if (IsFutureFinished(fut.state())) {
124 ASSERT_EQ(fut.state(), FutureState::SUCCESS);
125 ASSERT_OK(fut.status());
126 } else {
127 FAIL() << "Expected future to be completed successfully but it was still pending";
128 }
129}
130
131// Assert the future is failed *now*
132template <typename T>

Callers 1

TESTFunction · 0.85

Calls 3

IsFutureFinishedFunction · 0.85
stateMethod · 0.45
statusMethod · 0.45

Tested by 1

TESTFunction · 0.68