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

Function expect_array

tests/DCPS/MultiTopic/MultiTopicTest.cpp:279–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278template <typename T>
279bool expect_array(const char* what, const T* expected, const T* result, size_t length)
280{
281 if (arrays_are_not_equal(expected, result, length)) {
282 std::cerr << "ERROR: Expected " << what << " to be {";
283 print_array(std::cerr, expected, length);
284 std::cerr << "}, but it was {";
285 print_array(std::cerr, result, length);
286 std::cerr << '}' << std::endl;
287 return true;
288 }
289 return false;
290}
291
292template <typename T>
293bool expect_sequence(const char* what, const T& expected, const T& result)

Callers 1

run_multitopic_testFunction · 0.85

Calls 2

arrays_are_not_equalFunction · 0.85
print_arrayFunction · 0.85

Tested by

no test coverage detected