MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / expect

Function expect

tests/DCPS/MultiTopic/MultiTopicTest.cpp:267–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265
266template <typename T>
267bool expect(const char* what, const T& expected, const T& result)
268{
269 if (expected != result) {
270 std::cerr
271 << "ERROR: Expected " << what << " to be (" << expected
272 << "), but it was (" << result << ')' << std::endl;
273 return true;
274 }
275 return false;
276}
277
278template <typename T>
279bool expect_array(const char* what, const T* expected, const T* result, size_t length)

Callers 2

run_multitopic_testFunction · 0.85
expectNothingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected