MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / log_failed_expectation

Method log_failed_expectation

tests/framework/Framework.cpp:300–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void Framework::log_failed_expectation(const TestError &error)
301{
302 ARM_COMPUTE_ERROR_ON(_current_test_info == nullptr);
303 ARM_COMPUTE_ERROR_ON(_current_test_result == nullptr);
304
305 const bool is_expected_failure = _current_test_info->status == TestCaseFactory::Status::EXPECTED_FAILURE;
306
307 if (_log_level >= error.level())
308 {
309 func_on_all_printers([&](Printer *p) { p->print_error(error, is_expected_failure); });
310 }
311
312 _current_test_result->status = TestResult::Status::FAILED;
313}
314
315void Framework::log_info(const std::string &info)
316{

Callers 1

Asserts.hFile · 0.80

Calls 2

levelMethod · 0.80
print_errorMethod · 0.45

Tested by

no test coverage detected