Lines Matching refs:TS
80 TS::FailureCode code = TS::FAIL_EXCEPTION; in SEHTranslator()
89 code = TS::FAIL_MEMORY_EXCEPTION; in SEHTranslator()
99 code = TS::FAIL_ARITHM_EXCEPTION; in SEHTranslator()
107 code = TS::FAIL_EXCEPTION; in SEHTranslator()
124 TS::FailureCode code = TS::FAIL_EXCEPTION;
128 code = TS::FAIL_ARITHM_EXCEPTION;
132 code = TS::FAIL_ARITHM_EXCEPTION;
135 code = TS::FAIL_EXCEPTION;
169 ts = TS::ptr(); in BaseTest()
219 throw TS::FailureCode(_code); in safe_run()
232 ts->printf(TS::LOG, "%s\n", buf); in safe_run()
234 ts->set_failed_test_info( TS::FAIL_ERROR_IN_CALLED_FUNC ); in safe_run()
236 catch (const TS::FailureCode& fc) in safe_run()
238 std::string errorStr = TS::str_from_code(fc); in safe_run()
239 ts->printf(TS::LOG, "General failure:\n\t%s (%d)\n", errorStr.c_str(), fc); in safe_run()
245 ts->printf(TS::LOG, "Unknown failure\n"); in safe_run()
247 ts->set_failed_test_info( TS::FAIL_EXCEPTION ); in safe_run()
320 ts->printf( TS::CONSOLE, "." ); in update_progress()
326 ts->printf( TS::CONSOLE, "." ); in update_progress()
360 … ts->printf(TS::LOG, "%s (test case #%d): the error code %d is different from the expected %d\n", in run_test_case()
368 …ts->printf(TS::LOG, "%s (test case #%d): unknown exception was thrown (the function has likely cr… in run_test_case()
375 ts->printf(TS::LOG, "%s (test case #%d): no expected exception was thrown\n", in run_test_case()
407 TS::TS() in TS() function in cvtest::TS
412 TS::~TS() in ~TS()
417 string TS::str_from_code( const TS::FailureCode code ) in str_from_code()
443 …( int status, const char* func_name, const char* err_msg, const char* file_name, int line, TS* ts ) in tsErrorCallback()
445 …ts->printf(TS::LOG, "OpenCV Error:\n\t%s (%s) in %s, file %s, line %d\n", cvErrorStr(status), err_… in tsErrorCallback()
451 void TS::init( const string& modulename ) in init()
496 void TS::set_gtest_status() in set_gtest_status()
498 TS::FailureCode code = get_err_code(); in set_gtest_status()
521 CvFileStorage* TS::get_file_storage() { return 0; } in get_file_storage()
523 void TS::update_context( BaseTest* test, int test_case_idx, bool update_ts_context ) in update_context()
542 void TS::set_failed_test_info( int fail_code ) in set_failed_test_info()
545 current_test_info.code = TS::FailureCode(fail_code); in set_failed_test_info()
553 void TS::vprintf( int streams, const char* fmt, va_list l ) in vprintf()
571 void TS::printf( int streams, const char* fmt, ... ) in printf()
583 TS ts;
584 TS* TS::ptr() { return &ts; } in ptr()