| 298 | } |
| 299 | |
| 300 | void 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 | |
| 315 | void Framework::log_info(const std::string &info) |
| 316 | { |
no test coverage detected