![]() |
MySQL 9.5.0
Source Code Documentation
|
#include <fcntl.h>#include <mysql/components/component_implementation.h>#include <mysql/components/service_implementation.h>#include <mysql/components/services/mysql_string.h>#include <cstdio>#include "m_string.h"#include "my_inttypes.h"#include "my_sys.h"#include "sql_string.h"#include "test_string_service_long.h"Macros | |
| #define | MAX_BUFFER_LENGTH 128 |
| #define | WRITE_LOG(format, lit_log_text) |
| #define | TEST_TEXT_LIT_LENGTH 48 |
Functions | |
| bool | test_charset (const char *charset, const char *text, int buff_len) |
| This file contains a test (example) component, which tests the service "string". More... | |
| static bool | test_invalid_charset () |
| tests for a memory leak on an invalid chaset More... | |
| mysql_service_status_t | test_string_service_init () |
| Initialization entry method for test component. More... | |
| mysql_service_status_t | test_string_service_deinit () |
| De-initialization method for Component. More... | |
| END_COMPONENT_PROVIDES () | |
| REQUIRES_SERVICE_PLACEHOLDER (mysql_string_factory) | |
| REQUIRES_SERVICE_PLACEHOLDER (mysql_string_converter) | |
| REQUIRES_SERVICE_PLACEHOLDER (mysql_string_character_access) | |
| REQUIRES_SERVICE_PLACEHOLDER (mysql_string_byte_access) | |
| REQUIRES_SERVICE_PLACEHOLDER (mysql_string_case) | |
| REQUIRES_SERVICE_PLACEHOLDER (mysql_string_iterator) | |
| REQUIRES_SERVICE_PLACEHOLDER (mysql_string_ctype) | |
| REQUIRES_SERVICE (mysql_string_factory) | |
| REQUIRES_SERVICE (mysql_string_converter) | |
| REQUIRES_SERVICE (mysql_string_character_access) | |
| REQUIRES_SERVICE (mysql_string_byte_access) | |
| REQUIRES_SERVICE (mysql_string_case) | |
| REQUIRES_SERVICE (mysql_string_iterator) | |
| REQUIRES_SERVICE (mysql_string_ctype) | |
| END_COMPONENT_REQUIRES () | |
| METADATA ("mysql.author", "Oracle Corporation") | |
| METADATA ("mysql.license", "GPL") | |
| METADATA ("test_string_charset_service", "1") | |
| END_COMPONENT_METADATA () | |
Variables | |
| FILE * | outfile |
| int | log_text_len = 0 |
| char | log_text [MAX_BUFFER_LENGTH+16] |
| mysql_component_t | mysql_component_test_string_service_charset |
| #define MAX_BUFFER_LENGTH 128 |
| #define TEST_TEXT_LIT_LENGTH 48 |
| #define WRITE_LOG | ( | format, | |
| lit_log_text | |||
| ) |
| END_COMPONENT_METADATA | ( | ) |
| END_COMPONENT_PROVIDES | ( | ) |
| END_COMPONENT_REQUIRES | ( | ) |
| METADATA | ( | "mysql.author" | , |
| "Oracle Corporation" | |||
| ) |
| METADATA | ( | "mysql.license" | , |
| "GPL" | |||
| ) |
| METADATA | ( | "test_string_charset_service" | , |
| "1" | |||
| ) |
| REQUIRES_SERVICE | ( | mysql_string_byte_access | ) |
| REQUIRES_SERVICE | ( | mysql_string_case | ) |
| REQUIRES_SERVICE | ( | mysql_string_character_access | ) |
| REQUIRES_SERVICE | ( | mysql_string_converter | ) |
| REQUIRES_SERVICE | ( | mysql_string_ctype | ) |
| REQUIRES_SERVICE | ( | mysql_string_factory | ) |
| REQUIRES_SERVICE | ( | mysql_string_iterator | ) |
| REQUIRES_SERVICE_PLACEHOLDER | ( | mysql_string_byte_access | ) |
| REQUIRES_SERVICE_PLACEHOLDER | ( | mysql_string_case | ) |
| REQUIRES_SERVICE_PLACEHOLDER | ( | mysql_string_character_access | ) |
| REQUIRES_SERVICE_PLACEHOLDER | ( | mysql_string_converter | ) |
| REQUIRES_SERVICE_PLACEHOLDER | ( | mysql_string_ctype | ) |
| REQUIRES_SERVICE_PLACEHOLDER | ( | mysql_string_factory | ) |
| REQUIRES_SERVICE_PLACEHOLDER | ( | mysql_string_iterator | ) |
| bool test_charset | ( | const char * | charset, |
| const char * | text, | ||
| int | buff_len | ||
| ) |
This file contains a test (example) component, which tests the service "string".
|
static |
tests for a memory leak on an invalid chaset
| true | failure |
| mysql_service_status_t test_string_service_deinit | ( | ) |
De-initialization method for Component.
| mysql_service_status_t test_string_service_init | ( | ) |
Initialization entry method for test component.
It executes the tests of the service.
| char log_text[MAX_BUFFER_LENGTH+16] |
| int log_text_len = 0 |
| mysql_component_t mysql_component_test_string_service_charset |
| FILE* outfile |