| 756 | |
| 757 | |
| 758 | inline ::testing::AssertionResult AwaitAssertTermSigEq( |
| 759 | const char* expectedExpr, |
| 760 | const char* actualExpr, |
| 761 | const char* durationExpr, |
| 762 | const int expected, |
| 763 | const process::Future<Option<int>>& actual, |
| 764 | const Duration& duration) |
| 765 | { |
| 766 | const ::testing::AssertionResult result = |
| 767 | AwaitAssertSignaled(actualExpr, durationExpr, actual, duration); |
| 768 | |
| 769 | if (result) { |
| 770 | CHECK_READY(actual); |
| 771 | CHECK_SOME(actual.get()); |
| 772 | return AssertTermSigEq( |
| 773 | expectedExpr, |
| 774 | strings::join("(", actualExpr, ")->get()").c_str(), |
| 775 | expected, |
| 776 | actual->get()); |
| 777 | } |
| 778 | |
| 779 | return result; |
| 780 | } |
| 781 | |
| 782 | |
| 783 | #define AWAIT_ASSERT_WTERMSIG_EQ_FOR(expected, actual, duration) \ |
nothing calls this directly
no test coverage detected