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

Function AwaitAssertResponseBodyEq

include/process/gtest.hpp:464–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462
463
464inline ::testing::AssertionResult AwaitAssertResponseBodyEq(
465 const char* expectedExpr,
466 const char* actualExpr,
467 const char* durationExpr,
468 const std::string& expected,
469 const process::Future<process::http::Response>& actual,
470 const Duration& duration)
471{
472 const ::testing::AssertionResult result =
473 AwaitAssertReady(actualExpr, durationExpr, actual, duration);
474
475 if (result) {
476 if (expected == actual->body) {
477 return ::testing::AssertionSuccess();
478 } else {
479 return ::testing::AssertionFailure()
480 << "Value of: (" << actualExpr << ")->body\n"
481 << " Actual: " << ::testing::PrintToString(actual->body) << "\n"
482 << "Expected: " << expectedExpr << "\n"
483 << "Which is: " << ::testing::PrintToString(expected);
484 }
485 }
486
487 return result;
488}
489
490
491#define AWAIT_ASSERT_RESPONSE_BODY_EQ_FOR(expected, actual, duration) \

Callers

nothing calls this directly

Calls 1

AwaitAssertReadyFunction · 0.85

Tested by

no test coverage detected