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

Function AssertFailed

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

Source from the content-addressed store, hash-verified

131// Assert the future is failed *now*
132template <typename T>
133void AssertFailed(const Future<T>& fut) {
134 if (IsFutureFinished(fut.state())) {
135 ASSERT_EQ(fut.state(), FutureState::FAILURE);
136 ASSERT_FALSE(fut.status().ok());
137 } else {
138 FAIL() << "Expected future to have failed but it was still pending";
139 }
140}
141
142} // namespace arrow

Callers 2

TEST_FFunction · 0.85
TESTFunction · 0.85

Calls 4

IsFutureFinishedFunction · 0.85
stateMethod · 0.45
okMethod · 0.45
statusMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TESTFunction · 0.68