MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
my_testing::Mock_error_handler Class Reference

#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

Detailed Description

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.


The documentation for this class was generated from the following files: