MCPcopy Create free account
hub / github.com/3rdparty/libprocess / AwaitAssertTermSigEq

Function AwaitAssertTermSigEq

include/process/gtest.hpp:758–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756
757
758inline ::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) \

Callers

nothing calls this directly

Calls 2

AwaitAssertSignaledFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected