MySQL 5.6.14 Source Code Document
|
#include <test_utils.h>
Public Member Functions | |
Mock_error_handler (THD *thd, uint expected_error) | |
virtual bool | handle_condition (THD *thd, uint sql_errno, const char *sqlstate, Sql_condition::enum_warning_level level, const char *msg, Sql_condition **cond_hdl) |
int | handle_called () const |
A mock error handler which registers itself with the THD in the CTOR, and unregisters in the DTOR. The function handle_condition() will verify that it is called with the expected error number. The DTOR will verify that handle_condition() has actually been called.
Definition at line 70 of file test_utils.h.