MySQL  8.0.19
Source Code Documentation
test_sys_var_service_int.cc File Reference

Macros

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

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_int_init ()
 Initialization entry method for test component. More...
 
static mysql_service_status_t test_component_sys_var_service_int_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_int.log"
 
static int int_variable_value
 
static int int_var_2_value
 
static int uint_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)

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_int_deinit()

static mysql_service_status_t test_component_sys_var_service_int_deinit ( )
static

De-initialization method for Component.

◆ test_component_sys_var_service_int_init()

static mysql_service_status_t test_component_sys_var_service_int_init ( )
static

Initialization entry method for test component.

It executes the tests of the service.

Variable Documentation

◆ filename

const char* filename = "test_component_sys_var_service_int.log"

◆ int_var_2_value

int int_var_2_value
static

◆ int_variable_value

int int_variable_value
static

◆ log_text

char log_text[MAX_BUFFER_LENGTH]

◆ log_text_len

int log_text_len = 0

◆ 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

◆ uint_variable_value

int uint_variable_value
static
outfile
FILE * outfile
Definition: test_sys_var_service_int.cc:37
log_text
char log_text[MAX_BUFFER_LENGTH]
Definition: test_sys_var_service_int.cc:36
uchar
unsigned char uchar
Definition: my_inttypes.h:51
test_component_sys_var_service_int_init
static mysql_service_status_t test_component_sys_var_service_int_init()
Initialization entry method for test component.
Definition: test_sys_var_service_int.cc:55
log_text_len
int log_text_len
Definition: test_sys_var_service_int.cc:35
test_component_sys_var_service_int_deinit
static mysql_service_status_t test_component_sys_var_service_int_deinit()
De-initialization method for Component.
Definition: test_sys_var_service_int.cc:106