MySQL  8.0.19
Source Code Documentation
test_sys_var_service_same.cc File Reference

Macros

#define VARIABLE_BUFFER_SIZE   1023
 
#define MAX_BUFFER_LENGTH   100
 
#define WRITE_LOG(format, lit_log_text)
 

Enumerations

enum  password_policy_enum {
  PASSWORD_POLICY_LOW, PASSWORD_POLICY_MEDIUM, PASSWORD_POLICY_STRONG, PASSWORD_POLICY_LOW,
  PASSWORD_POLICY_MEDIUM, PASSWORD_POLICY_STRONG, PASSWORD_POLICY_LOW, PASSWORD_POLICY_MEDIUM,
  PASSWORD_POLICY_STRONG, PASSWORD_POLICY_LOW, PASSWORD_POLICY_MEDIUM, PASSWORD_POLICY_STRONG
}
 This file contains a test (example) component, which tests the services of "component_sys_variable_register" and component_sys_variable_unregister, provided by the component "mysql_server" component. More...
 

Functions

 REQUIRES_SERVICE_PLACEHOLDER (component_sys_variable_register)
 
 REQUIRES_SERVICE_PLACEHOLDER (component_sys_variable_unregister)
 
static mysql_service_status_t test_component_sys_var_service_same_init ()
 Initialization entry method for test component. More...
 
static mysql_service_status_t test_component_sys_var_service_same_deinit ()
 De-initialization method for Component. More...
 
 END_COMPONENT_PROVIDES ()
 
 REQUIRES_SERVICE (component_sys_variable_register)
 
 REQUIRES_SERVICE (component_sys_variable_unregister)
 
 END_COMPONENT_REQUIRES ()
 
 METADATA ("mysql.author", "Oracle Corporation")
 
 METADATA ("mysql.license", "GPL")
 
 METADATA ("test_component_sys_var_service", "1")
 
 END_COMPONENT_METADATA ()
 

Variables

int log_text_len = 0
 
char log_text [MAX_BUFFER_LENGTH]
 
FILE * outfile
 
const char * filename = "test_component_sys_var_service_same.log"
 
static const char * policy_names [] = {"LOW", "MEDIUM", "STRONG", NullS}
 
static TYPE_LIB password_policy_typelib_t
 
static ulong enum_variable_value
 
static char * str_variable_value
 
static int int_variable_value
 
static int uint_variable_value
 
static long long_variable_value
 
static ulong ulong_variable_value
 
static longlong longlong_variable_value
 
static ulonglong ulonglong_variable_value
 
static bool bool_variable_value
 
mysql_component_t mysql_component_test_component_sys_var_service
 

Macro Definition Documentation

◆ MAX_BUFFER_LENGTH

#define MAX_BUFFER_LENGTH   100

◆ VARIABLE_BUFFER_SIZE

#define VARIABLE_BUFFER_SIZE   1023

◆ WRITE_LOG

#define WRITE_LOG (   format,
  lit_log_text 
)
Value:
log_text_len = sprintf(log_text, format, lit_log_text); \
fwrite((uchar *)log_text, sizeof(char), log_text_len, outfile)

Enumeration Type Documentation

◆ password_policy_enum

This file contains a test (example) component, which tests the services of "component_sys_variable_register" and component_sys_variable_unregister, provided by the component "mysql_server" component.

Enumerator
PASSWORD_POLICY_LOW 
PASSWORD_POLICY_MEDIUM 
PASSWORD_POLICY_STRONG 
PASSWORD_POLICY_LOW 
PASSWORD_POLICY_MEDIUM 
PASSWORD_POLICY_STRONG 
PASSWORD_POLICY_LOW 
PASSWORD_POLICY_MEDIUM 
PASSWORD_POLICY_STRONG 
PASSWORD_POLICY_LOW 
PASSWORD_POLICY_MEDIUM 
PASSWORD_POLICY_STRONG 

Function Documentation

◆ END_COMPONENT_METADATA()

END_COMPONENT_METADATA ( )

◆ END_COMPONENT_PROVIDES()

END_COMPONENT_PROVIDES ( )

◆ END_COMPONENT_REQUIRES()

END_COMPONENT_REQUIRES ( )

◆ METADATA() [1/3]

METADATA ( "mysql.author"  ,
"Oracle Corporation"   
)

◆ METADATA() [2/3]

METADATA ( "mysql.license"  ,
"GPL"   
)

◆ METADATA() [3/3]

METADATA ( "test_component_sys_var_service"  ,
"1"   
)

◆ REQUIRES_SERVICE() [1/2]

REQUIRES_SERVICE ( component_sys_variable_register  )

◆ REQUIRES_SERVICE() [2/2]

REQUIRES_SERVICE ( component_sys_variable_unregister  )

◆ REQUIRES_SERVICE_PLACEHOLDER() [1/2]

REQUIRES_SERVICE_PLACEHOLDER ( component_sys_variable_register  )

◆ REQUIRES_SERVICE_PLACEHOLDER() [2/2]

REQUIRES_SERVICE_PLACEHOLDER ( component_sys_variable_unregister  )

◆ test_component_sys_var_service_same_deinit()

static mysql_service_status_t test_component_sys_var_service_same_deinit ( )
static

De-initialization method for Component.

◆ test_component_sys_var_service_same_init()

static mysql_service_status_t test_component_sys_var_service_same_init ( )
static

Initialization entry method for test component.

It executes the tests of the service.

Variable Documentation

◆ bool_variable_value

bool bool_variable_value
static

◆ enum_variable_value

ulong enum_variable_value
static

◆ filename

const char* filename = "test_component_sys_var_service_same.log"

◆ int_variable_value

int int_variable_value
static

◆ log_text

char log_text[MAX_BUFFER_LENGTH]

◆ log_text_len

int log_text_len = 0

◆ long_variable_value

long long_variable_value
static

◆ longlong_variable_value

longlong longlong_variable_value
static

◆ mysql_component_test_component_sys_var_service

mysql_component_t mysql_component_test_component_sys_var_service
Initial value:
= { "mysql:test_component_sys_var_service" , __test_component_sys_var_service_provides, __test_component_sys_var_service_requires, __test_component_sys_var_service_metadata,

◆ outfile

FILE* outfile

◆ password_policy_typelib_t

TYPE_LIB password_policy_typelib_t
static
Initial value:
"password_policy_typelib_t",

◆ policy_names

const char* policy_names[] = {"LOW", "MEDIUM", "STRONG", NullS}
static

◆ str_variable_value

char* str_variable_value
static

◆ uint_variable_value

int uint_variable_value
static

◆ ulong_variable_value

ulong ulong_variable_value
static

◆ ulonglong_variable_value

ulonglong ulonglong_variable_value
static
log_text_len
int log_text_len
Definition: test_sys_var_service_same.cc:35
NULL
#define NULL
Definition: types.h:55
log_text
char log_text[MAX_BUFFER_LENGTH]
Definition: test_sys_var_service_same.cc:36
outfile
FILE * outfile
Definition: test_sys_var_service_same.cc:37
test_component_sys_var_service_same_deinit
static mysql_service_status_t test_component_sys_var_service_same_deinit()
De-initialization method for Component.
Definition: test_sys_var_service_same.cc:217
uchar
unsigned char uchar
Definition: my_inttypes.h:51
policy_names
static const char * policy_names[]
Definition: test_sys_var_service_same.cc:59
test_component_sys_var_service_same_init
static mysql_service_status_t test_component_sys_var_service_same_init()
Initialization entry method for test component.
Definition: test_sys_var_service_same.cc:78
array_elements
constexpr size_t array_elements(T(&)[N]) noexcept
Number of elements in a constant C array.
Definition: template_utils.h:151