13 #ifndef __PROCESS_GTEST_HPP__
14 #define __PROCESS_GTEST_HPP__
16 #include <gtest/gtest.h>
69 return future.
await(duration);
102 template <
typename T>
110 return ::testing::AssertionFailure()
111 <<
"Failed to wait " << duration <<
" for " << expr;
114 return ::testing::AssertionSuccess();
118 template <
typename T>
126 return ::testing::AssertionFailure()
127 <<
"Failed to wait " << duration <<
" for " << expr;
129 return ::testing::AssertionFailure()
130 << expr <<
" was discarded";
132 return ::testing::AssertionFailure()
133 <<
"(" << expr <<
").failure(): " << actual.
failure();
136 return ::testing::AssertionSuccess();
140 template <
typename T>
148 return ::testing::AssertionFailure()
149 <<
"Failed to wait " << duration <<
" for " << expr;
151 return ::testing::AssertionFailure()
152 << expr <<
" was discarded";
154 return ::testing::AssertionFailure()
155 << expr <<
" is ready (" << ::testing::PrintToString(actual.
get()) <<
")";
158 return ::testing::AssertionSuccess();
162 template <
typename T>
170 return ::testing::AssertionFailure()
171 <<
"Failed to wait " << duration <<
" for " << expr;
173 return ::testing::AssertionFailure()
174 <<
"(" << expr <<
").failure(): " << actual.
failure();
176 return ::testing::AssertionFailure()
177 << expr <<
" is ready (" << ::testing::PrintToString(actual.
get()) <<
")";
180 return ::testing::AssertionSuccess();
184 template <
typename T>
196 if (!latch->
await(duration)) {
197 return ::testing::AssertionFailure()
198 <<
"Failed to wait " << duration <<
" for " << expr;
200 return ::testing::AssertionFailure()
201 << expr <<
" was discarded";
203 return ::testing::AssertionFailure()
204 << expr <<
" is ready (" << ::testing::PrintToString(actual.
get()) <<
")";
206 return ::testing::AssertionFailure()
207 <<
"(" << expr <<
").failure(): " << actual.
failure();
212 return ::testing::AssertionSuccess();
216 template <
typename T1,
typename T2>
218 const char* expectedExpr,
219 const char* actualExpr,
220 const char* durationExpr,
225 const ::testing::AssertionResult result =
229 if (expected == actual.
get()) {
230 return ::testing::AssertionSuccess();
232 return ::testing::AssertionFailure()
233 <<
"Value of: (" << actualExpr <<
").get()\n"
234 <<
" Actual: " << ::testing::PrintToString(actual.
get()) <<
"\n"
235 <<
"Expected: " << expectedExpr <<
"\n"
236 <<
"Which is: " << ::testing::PrintToString(expected);
244 #define AWAIT_ASSERT_ABANDONED_FOR(actual, duration) \
245 ASSERT_PRED_FORMAT2(AwaitAssertAbandoned, actual, duration)
248 #define AWAIT_ASSERT_ABANDONED(actual) \
249 AWAIT_ASSERT_ABANDONED_FOR(actual, Seconds(15))
252 #define AWAIT_EXPECT_ABANDONED_FOR(actual, duration) \
253 EXPECT_PRED_FORMAT2(AwaitAssertAbandoned, actual, duration)
256 #define AWAIT_EXPECT_ABANDONED(actual) \
257 AWAIT_EXPECT_ABANDONED_FOR(actual, Seconds(15))
261 #define AWAIT_FOR(actual, duration) \
262 ASSERT_PRED_FORMAT2(Await, actual, duration)
265 #define AWAIT(actual) \
266 AWAIT_FOR(actual, Seconds(15))
269 #define AWAIT_ASSERT_READY_FOR(actual, duration) \
270 ASSERT_PRED_FORMAT2(AwaitAssertReady, actual, duration)
273 #define AWAIT_ASSERT_READY(actual) \
274 AWAIT_ASSERT_READY_FOR(actual, Seconds(15))
277 #define AWAIT_READY_FOR(actual, duration) \
278 AWAIT_ASSERT_READY_FOR(actual, duration)
281 #define AWAIT_READY(actual) \
282 AWAIT_ASSERT_READY(actual)
285 #define AWAIT_EXPECT_READY_FOR(actual, duration) \
286 EXPECT_PRED_FORMAT2(AwaitAssertReady, actual, duration)
289 #define AWAIT_EXPECT_READY(actual) \
290 AWAIT_EXPECT_READY_FOR(actual, Seconds(15))
293 #define AWAIT_ASSERT_FAILED_FOR(actual, duration) \
294 ASSERT_PRED_FORMAT2(AwaitAssertFailed, actual, duration)
297 #define AWAIT_ASSERT_FAILED(actual) \
298 AWAIT_ASSERT_FAILED_FOR(actual, Seconds(15))
301 #define AWAIT_FAILED_FOR(actual, duration) \
302 AWAIT_ASSERT_FAILED_FOR(actual, duration)
305 #define AWAIT_FAILED(actual) \
306 AWAIT_ASSERT_FAILED(actual)
309 #define AWAIT_EXPECT_FAILED_FOR(actual, duration) \
310 EXPECT_PRED_FORMAT2(AwaitAssertFailed, actual, duration)
313 #define AWAIT_EXPECT_FAILED(actual) \
314 AWAIT_EXPECT_FAILED_FOR(actual, Seconds(15))
317 #define AWAIT_ASSERT_DISCARDED_FOR(actual, duration) \
318 ASSERT_PRED_FORMAT2(AwaitAssertDiscarded, actual, duration)
321 #define AWAIT_ASSERT_DISCARDED(actual) \
322 AWAIT_ASSERT_DISCARDED_FOR(actual, Seconds(15))
325 #define AWAIT_DISCARDED_FOR(actual, duration) \
326 AWAIT_ASSERT_DISCARDED_FOR(actual, duration)
329 #define AWAIT_DISCARDED(actual) \
330 AWAIT_ASSERT_DISCARDED(actual)
333 #define AWAIT_EXPECT_DISCARDED_FOR(actual, duration) \
334 EXPECT_PRED_FORMAT2(AwaitAssertDiscarded, actual, duration)
337 #define AWAIT_EXPECT_DISCARDED(actual) \
338 AWAIT_EXPECT_DISCARDED_FOR(actual, Seconds(15))
341 #define AWAIT_ASSERT_EQ_FOR(expected, actual, duration) \
342 ASSERT_PRED_FORMAT3(AwaitAssertEq, expected, actual, duration)
345 #define AWAIT_ASSERT_EQ(expected, actual) \
346 AWAIT_ASSERT_EQ_FOR(expected, actual, Seconds(15))
349 #define AWAIT_EQ_FOR(expected, actual, duration) \
350 AWAIT_ASSERT_EQ_FOR(expected, actual, duration)
353 #define AWAIT_EQ(expected, actual) \
354 AWAIT_ASSERT_EQ(expected, actual)
357 #define AWAIT_EXPECT_EQ_FOR(expected, actual, duration) \
358 EXPECT_PRED_FORMAT3(AwaitAssertEq, expected, actual, duration)
361 #define AWAIT_EXPECT_EQ(expected, actual) \
362 AWAIT_EXPECT_EQ_FOR(expected, actual, Seconds(15))
365 #define AWAIT_ASSERT_TRUE_FOR(actual, duration) \
366 AWAIT_ASSERT_EQ_FOR(true, actual, duration)
369 #define AWAIT_ASSERT_TRUE(actual) \
370 AWAIT_ASSERT_EQ(true, actual)
373 #define AWAIT_TRUE_FOR(actual, duration) \
374 AWAIT_ASSERT_TRUE_FOR(actual, duration)
377 #define AWAIT_TRUE(actual) \
378 AWAIT_ASSERT_TRUE(actual)
381 #define AWAIT_EXPECT_TRUE_FOR(actual, duration) \
382 AWAIT_EXPECT_EQ_FOR(true, actual, duration)
385 #define AWAIT_EXPECT_TRUE(actual) \
386 AWAIT_EXPECT_EQ(true, actual)
389 #define AWAIT_ASSERT_FALSE_FOR(actual, duration) \
390 AWAIT_ASSERT_EQ_FOR(false, actual, duration)
393 #define AWAIT_ASSERT_FALSE(actual) \
394 AWAIT_ASSERT_EQ(false, actual)
397 #define AWAIT_FALSE_FOR(actual, duration) \
398 AWAIT_ASSERT_FALSE_FOR(actual, duration)
401 #define AWAIT_FALSE(actual) \
402 AWAIT_ASSERT_FALSE(actual)
405 #define AWAIT_EXPECT_FALSE_FOR(actual, duration) \
406 AWAIT_EXPECT_EQ_FOR(false, actual, duration)
409 #define AWAIT_EXPECT_FALSE(actual) \
410 AWAIT_EXPECT_EQ(false, actual)
414 const char* expectedExpr,
415 const char* actualExpr,
416 const char* durationExpr,
417 const std::string& expected,
421 const ::testing::AssertionResult result =
426 return ::testing::AssertionSuccess();
428 return ::testing::AssertionFailure()
429 <<
"Value of: (" << actualExpr <<
").get().status\n"
430 <<
" Actual: " << ::testing::PrintToString(actual.
get().
status) <<
"\n"
431 <<
"Expected: " << expectedExpr <<
"\n"
432 <<
"Which is: " << ::testing::PrintToString(expected) <<
"\n"
433 <<
" Body: " << ::testing::PrintToString(actual.
get().
body);
441 #define AWAIT_ASSERT_RESPONSE_STATUS_EQ_FOR(expected, actual, duration) \
442 ASSERT_PRED_FORMAT3(AwaitAssertResponseStatusEq, expected, actual, duration)
445 #define AWAIT_ASSERT_RESPONSE_STATUS_EQ(expected, actual) \
446 AWAIT_ASSERT_RESPONSE_STATUS_EQ_FOR(expected, actual, Seconds(15))
449 #define AWAIT_EXPECT_RESPONSE_STATUS_EQ_FOR(expected, actual, duration) \
450 EXPECT_PRED_FORMAT3(AwaitAssertResponseStatusEq, expected, actual, duration)
453 #define AWAIT_EXPECT_RESPONSE_STATUS_EQ(expected, actual) \
454 AWAIT_EXPECT_RESPONSE_STATUS_EQ_FOR(expected, actual, Seconds(15))
458 const char* expectedExpr,
459 const char* actualExpr,
460 const char* durationExpr,
461 const std::string& expected,
465 const ::testing::AssertionResult result =
469 if (expected == actual.
get().
body) {
470 return ::testing::AssertionSuccess();
472 return ::testing::AssertionFailure()
473 <<
"Value of: (" << actualExpr <<
").get().body\n"
474 <<
" Actual: " << ::testing::PrintToString(actual.
get().
body) <<
"\n"
475 <<
"Expected: " << expectedExpr <<
"\n"
476 <<
"Which is: " << ::testing::PrintToString(expected);
484 #define AWAIT_ASSERT_RESPONSE_BODY_EQ_FOR(expected, actual, duration) \
485 ASSERT_PRED_FORMAT3(AwaitAssertResponseBodyEq, expected, actual, duration)
488 #define AWAIT_ASSERT_RESPONSE_BODY_EQ(expected, actual) \
489 AWAIT_ASSERT_RESPONSE_BODY_EQ_FOR(expected, actual, Seconds(15))
492 #define AWAIT_EXPECT_RESPONSE_BODY_EQ_FOR(expected, actual, duration) \
493 EXPECT_PRED_FORMAT3(AwaitAssertResponseBodyEq, expected, actual, duration)
496 #define AWAIT_EXPECT_RESPONSE_BODY_EQ(expected, actual) \
497 AWAIT_EXPECT_RESPONSE_BODY_EQ_FOR(expected, actual, Seconds(15))
501 const char* expectedExpr,
503 const char* actualExpr,
504 const char* durationExpr,
505 const std::string& expected,
506 const std::string& key,
510 const ::testing::AssertionResult result =
516 return ::testing::AssertionFailure()
517 <<
"Response does not contain header '" << key <<
"'";
518 }
else if (expected == value.
get()) {
519 return ::testing::AssertionSuccess();
521 return ::testing::AssertionFailure()
522 <<
"Value of: (" << actualExpr <<
").get().headers[" << keyExpr <<
"]\n"
523 <<
" Actual: " << ::testing::PrintToString(value.
get()) <<
"\n"
524 <<
"Expected: " << expectedExpr <<
"\n"
525 <<
"Which is: " << ::testing::PrintToString(expected);
533 #define AWAIT_ASSERT_RESPONSE_HEADER_EQ_FOR(expected, key, actual, duration) \
534 ASSERT_PRED_FORMAT4(AwaitAssertResponseHeaderEq, expected, key, actual, duration) // NOLINT(whitespace/line_length)
537 #define AWAIT_ASSERT_RESPONSE_HEADER_EQ(expected, key, actual) \
538 AWAIT_ASSERT_RESPONSE_HEADER_EQ_FOR(expected, key, actual, Seconds(15))
541 #define AWAIT_EXPECT_RESPONSE_HEADER_EQ_FOR(expected, key, actual, duration) \
542 EXPECT_PRED_FORMAT4(AwaitAssertResponseHeaderEq, expected, key, actual, duration) // NOLINT(whitespace/line_length)
545 #define AWAIT_EXPECT_RESPONSE_HEADER_EQ(expected, key, actual) \
546 AWAIT_EXPECT_RESPONSE_HEADER_EQ_FOR(expected, key, actual, Seconds(15))
550 const char* actualExpr,
551 const char* durationExpr,
555 const ::testing::AssertionResult result =
560 if (actual->isNone()) {
561 return ::testing::AssertionFailure()
562 <<
"(" << actualExpr <<
").get() is NONE";
574 #define AWAIT_ASSERT_EXITED_FOR(expected, actual, duration) \
575 ASSERT_PRED_FORMAT3(AwaitAssertExited, expected, actual, duration)
578 #define AWAIT_ASSERT_EXITED(expected, actual) \
579 AWAIT_ASSERT_EXITED_FOR(expected, actual, Seconds(15))
582 #define AWAIT_EXPECT_EXITED_FOR(expected, actual, duration) \
583 EXPECT_PRED_FORMAT3(AwaitAssertExited, expected, actual, duration)
586 #define AWAIT_EXPECT_EXITED(expected, actual) \
587 AWAIT_EXPECT_EXITED_FOR(expected, actual, Seconds(15))
591 const char* expectedExpr,
592 const char* actualExpr,
593 const char* durationExpr,
598 const ::testing::AssertionResult result =
615 #define AWAIT_ASSERT_WEXITSTATUS_EQ_FOR(expected, actual, duration) \
616 ASSERT_PRED_FORMAT3(AwaitAssertExitStatusEq, expected, actual, duration)
619 #define AWAIT_ASSERT_WEXITSTATUS_EQ(expected, actual) \
620 AWAIT_ASSERT_WEXITSTATUS_EQ_FOR(expected, actual, Seconds(15))
623 #define AWAIT_EXPECT_WEXITSTATUS_EQ_FOR(expected, actual, duration) \
624 EXPECT_PRED_FORMAT3(AwaitAssertExitStatusEq, expected, actual, duration)
627 #define AWAIT_EXPECT_WEXITSTATUS_EQ(expected, actual) \
628 AWAIT_EXPECT_WEXITSTATUS_EQ_FOR(expected, actual, Seconds(15))
632 const char* expectedExpr,
633 const char* actualExpr,
634 const char* durationExpr,
639 const ::testing::AssertionResult result =
656 #define AWAIT_ASSERT_WEXITSTATUS_NE_FOR(expected, actual, duration) \
657 ASSERT_PRED_FORMAT3(AwaitAssertExitStatusNe, expected, actual, duration)
660 #define AWAIT_ASSERT_WEXITSTATUS_NE(expected, actual) \
661 AWAIT_ASSERT_EXITSTATUS_NE_FOR(expected, actual, Seconds(15))
664 #define AWAIT_EXPECT_WEXITSTATUS_NE_FOR(expected, actual, duration) \
665 EXPECT_PRED_FORMAT3(AwaitAssertExitStatusNe, expected, actual, duration)
668 #define AWAIT_EXPECT_WEXITSTATUS_NE(expected, actual) \
669 AWAIT_EXPECT_WEXITSTATUS_NE_FOR(expected, actual, Seconds(15))
673 const char* actualExpr,
674 const char* durationExpr,
678 const ::testing::AssertionResult result =
683 if (actual->isNone()) {
684 return ::testing::AssertionFailure()
685 <<
"(" << actualExpr <<
")->isNone() is true";
697 #define AWAIT_ASSERT_SIGNALED_FOR(expected, actual, duration) \
698 ASSERT_PRED_FORMAT3(AwaitAssertSignaled, expected, actual, duration)
701 #define AWAIT_ASSERT_SIGNALED(expected, actual) \
702 AWAIT_ASSERT_SIGNALED_FOR(expected, actual, Seconds(15))
705 #define AWAIT_EXPECT_SIGNALED_FOR(expected, actual, duration) \
706 EXPECT_PRED_FORMAT3(AwaitAssertSignaled, expected, actual, duration)
709 #define AWAIT_EXPECT_SIGNALED(expected, actual) \
710 AWAIT_EXPECT_SIGNALED_FOR(expected, actual, Seconds(15))
714 const char* expectedExpr,
715 const char* actualExpr,
716 const char* durationExpr,
721 const ::testing::AssertionResult result =
738 #define AWAIT_ASSERT_WTERMSIG_EQ_FOR(expected, actual, duration) \
739 ASSERT_PRED_FORMAT3(AwaitAssertTermSigEq, expected, actual, duration)
742 #define AWAIT_ASSERT_WTERMSIG_EQ(expected, actual) \
743 AWAIT_ASSERT_WTERMSIG_EQ_FOR(expected, actual, Seconds(15))
746 #define AWAIT_EXPECT_WTERMSIG_EQ_FOR(expected, actual, duration) \
747 EXPECT_PRED_FORMAT3(AwaitAssertTermSigEq, expected, actual, duration)
750 #define AWAIT_EXPECT_WTERMSIG_EQ(expected, actual) \
751 AWAIT_EXPECT_WTERMSIG_EQ_FOR(expected, actual, Seconds(15))
755 const char* expectedExpr,
756 const char* actualExpr,
757 const char* durationExpr,
762 const ::testing::AssertionResult result =
779 #define AWAIT_ASSERT_WTERMSIG_NE_FOR(expected, actual, duration) \
780 ASSERT_PRED_FORMAT3(AwaitAssertTermSigNe, expected, actual, duration)
783 #define AWAIT_ASSERT_WTERMSIG_NE(expected, actual) \
784 AWAIT_ASSERT_TERMSIG_NE_FOR(expected, actual, Seconds(15))
787 #define AWAIT_EXPECT_TERMSIG_NE_FOR(expected, actual, duration) \
788 EXPECT_PRED_FORMAT3(AwaitAssertTermSigNe, expected, actual, duration)
791 #define AWAIT_EXPECT_WTERMSIG_NE(expected, actual) \
792 AWAIT_EXPECT_WTERMSIG_NE_FOR(expected, actual, Seconds(15))
800 #endif // __PROCESS_GTEST_HPP__
bool isReady() const
Definition: future.hpp:1231
inline::testing::AssertionResult AssertExitStatusNe(const char *expectedExpr, const char *actualExpr, const int expected, const int actual)
Definition: gtest.hpp:299
virtual void OnTestEnd(const ::testing::TestInfo &)
Definition: gtest.hpp:50
::testing::AssertionResult AwaitAssertDiscarded(const char *expr, const char *, const process::Future< T > &actual, const Duration &duration)
Definition: gtest.hpp:163
::testing::AssertionResult AwaitAssertAbandoned(const char *expr, const char *, const process::Future< T > &actual, const Duration &duration)
Definition: gtest.hpp:185
const T & get() const
Definition: future.hpp:1310
std::stringstream & join(std::stringstream &stream, const std::string &separator, T &&...args)
Definition: strings.hpp:306
std::string status
Definition: http.hpp:621
Try< Nothing > sleep(const Duration &duration)
Definition: os.hpp:234
bool await(const Duration &duration=Seconds(-1)) const
Definition: future.hpp:1276
bool await(const process::Future< T > &future, const Duration &duration)
Definition: gtest.hpp:66
Definition: stopwatch.hpp:30
constexpr char READWRITE_HTTP_AUTHENTICATION_REALM[]
Definition: gtest.hpp:35
Definition: duration.hpp:32
bool isPending() const
Definition: future.hpp:1224
inline::testing::AssertionResult AssertExitStatusEq(const char *expectedExpr, const char *actualExpr, const int expected, const int actual)
Definition: gtest.hpp:266
inline::testing::AssertionResult AwaitAssertTermSigEq(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const int expected, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:713
#define CHECK_SOME(expression)
Definition: check.hpp:44
bool isDiscarded() const
Definition: future.hpp:1238
std::string body
Definition: http.hpp:654
Definition: duration.hpp:245
#define CHECK_ABANDONED(expression)
Definition: check.hpp:38
const Future< T > & onAny(AnyCallback &&callback) const
Definition: future.hpp:1458
Nanoseconds elapsed() const
Definition: stopwatch.hpp:54
::testing::AssertionResult Await(const char *expr, const char *, const process::Future< T > &actual, const Duration &duration)
Definition: gtest.hpp:103
const Future< T > & onAbandoned(AbandonedCallback &&callback) const
Definition: future.hpp:1348
constexpr char READONLY_HTTP_AUTHENTICATION_REALM[]
Definition: gtest.hpp:34
const T & get() const &
Definition: option.hpp:118
inline::testing::AssertionResult AwaitAssertResponseBodyEq(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const std::string &expected, const process::Future< process::http::Response > &actual, const Duration &duration)
Definition: gtest.hpp:457
inline::testing::AssertionResult AssertTermSigNe(const char *expectedExpr, const char *actualExpr, const int expected, const int actual)
Definition: gtest.hpp:395
inline::testing::AssertionResult AwaitAssertExited(const char *actualExpr, const char *durationExpr, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:549
inline::testing::AssertionResult AwaitAssertExitStatusNe(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const int expected, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:631
#define CHECK_READY(expression)
Definition: check.hpp:29
::testing::AssertionResult AwaitAssertEq(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const T1 &expected, const process::Future< T2 > &actual, const Duration &duration)
Definition: gtest.hpp:217
inline::testing::AssertionResult AwaitAssertResponseHeaderEq(const char *expectedExpr, const char *keyExpr, const char *actualExpr, const char *durationExpr, const std::string &expected, const std::string &key, const process::Future< process::http::Response > &actual, const Duration &duration)
Definition: gtest.hpp:500
Result< Process > process(pid_t pid)
Definition: freebsd.hpp:30
bool await(const Duration &duration=Seconds(-1))
inline::testing::AssertionResult AssertTermSigEq(const char *expectedExpr, const char *actualExpr, const int expected, const int actual)
Definition: gtest.hpp:363
inline::testing::AssertionResult AssertSignaled(const char *actualExpr, const int actual)
Definition: gtest.hpp:331
bool isNone() const
Definition: option.hpp:116
::testing::AssertionResult AwaitAssertFailed(const char *expr, const char *, const process::Future< T > &actual, const Duration &duration)
Definition: gtest.hpp:141
void start()
Definition: stopwatch.hpp:42
inline::testing::AssertionResult AwaitAssertExitStatusEq(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const int expected, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:590
const std::string & failure() const
Definition: future.hpp:1336
inline::testing::AssertionResult AwaitAssertResponseStatusEq(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const std::string &expected, const process::Future< process::http::Response > &actual, const Duration &duration)
Definition: gtest.hpp:413
Headers headers
Definition: http.hpp:623
::testing::AssertionResult AwaitAssertReady(const char *expr, const char *, const process::Future< T > &actual, const Duration &duration)
Definition: gtest.hpp:119
static bool paused()
Check whether clock is currently running.
inline::testing::AssertionResult AwaitAssertSignaled(const char *actualExpr, const char *durationExpr, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:672
static ClockTestEventListener * instance()
Definition: gtest.hpp:44
inline::testing::AssertionResult AwaitAssertTermSigNe(const char *expectedExpr, const char *actualExpr, const char *durationExpr, const int expected, const process::Future< Option< int >> &actual, const Duration &duration)
Definition: gtest.hpp:754
inline::testing::AssertionResult AssertExited(const char *actualExpr, const int actual)
Definition: gtest.hpp:234
bool isFailed() const
Definition: future.hpp:1245
Definition: future.hpp:57