diff options
author | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2022-01-05 00:50:10 +0300 |
---|---|---|
committer | Artjoms Rimdjonoks <artjoms.rimdjonoks@zabbix.com> | 2022-01-05 00:50:10 +0300 |
commit | 9d822c6f5ead1480d71f3e4d8b31fa2a9391020b (patch) | |
tree | 6ed3e6693afcd38fc32da689f0168d87cf709d4b /tests | |
parent | 729a48cff3694ccaa49ef292adb5913894de8c9a (diff) |
.......... [DEV-2051] removed functions names from the function comments
Diffstat (limited to 'tests')
19 files changed, 0 insertions, 124 deletions
diff --git a/tests/libs/zbxcommon/calculate_item_nextcheck.c b/tests/libs/zbxcommon/calculate_item_nextcheck.c index 38a11660b87..2df51b0ce1d 100644 --- a/tests/libs/zbxcommon/calculate_item_nextcheck.c +++ b/tests/libs/zbxcommon/calculate_item_nextcheck.c @@ -27,8 +27,6 @@ /****************************************************************************** * * - * Function: get_item_type * - * * * Purpose: get item type from its string representation * * * * Parameters: item_type - [IN] the item type * diff --git a/tests/libs/zbxcommon/replace_key_params_dyn.c b/tests/libs/zbxcommon/replace_key_params_dyn.c index 8164261bb10..bfa6144154d 100644 --- a/tests/libs/zbxcommon/replace_key_params_dyn.c +++ b/tests/libs/zbxcommon/replace_key_params_dyn.c @@ -26,8 +26,6 @@ /****************************************************************************** * * - * Function: replace_key_param_cb * - * * * Comments: auxiliary function for zbx_mock_test_entry() * * * ******************************************************************************/ diff --git a/tests/libs/zbxdbcache/dc_check_maintenance_period.c b/tests/libs/zbxdbcache/dc_check_maintenance_period.c index e04cb599e34..93925a6a124 100644 --- a/tests/libs/zbxdbcache/dc_check_maintenance_period.c +++ b/tests/libs/zbxdbcache/dc_check_maintenance_period.c @@ -89,8 +89,6 @@ static void get_maintenance(zbx_dc_maintenance_t *maintenance) /****************************************************************************** * * - * Function: zbx_mock_test_entry * - * * ******************************************************************************/ void zbx_mock_test_entry(void **state) { diff --git a/tests/libs/zbxdbcache/dc_expand_user_macros_in_func_params.c b/tests/libs/zbxdbcache/dc_expand_user_macros_in_func_params.c index 3a51f11a263..4c6e7de084b 100644 --- a/tests/libs/zbxdbcache/dc_expand_user_macros_in_func_params.c +++ b/tests/libs/zbxdbcache/dc_expand_user_macros_in_func_params.c @@ -35,8 +35,6 @@ /****************************************************************************** * * - * Function: zbx_mock_test_entry * - * * ******************************************************************************/ void zbx_mock_test_entry(void **state) { diff --git a/tests/libs/zbxdbcache/dc_item_poller_type_update.c b/tests/libs/zbxdbcache/dc_item_poller_type_update.c index 9d76d63b619..698691062fe 100644 --- a/tests/libs/zbxdbcache/dc_item_poller_type_update.c +++ b/tests/libs/zbxdbcache/dc_item_poller_type_update.c @@ -181,8 +181,6 @@ static void read_test(const zbx_mock_handle_t *handle, test_config_t *test_confi /****************************************************************************** * * - * Function: zbx_mock_test_entry * - * * ******************************************************************************/ void zbx_mock_test_entry(void **state) { diff --git a/tests/libs/zbxdbcache/dc_maintenance_match_tags.c b/tests/libs/zbxdbcache/dc_maintenance_match_tags.c index d1158931260..c9f7f81931d 100644 --- a/tests/libs/zbxdbcache/dc_maintenance_match_tags.c +++ b/tests/libs/zbxdbcache/dc_maintenance_match_tags.c @@ -117,8 +117,6 @@ static void get_maintenance(zbx_dc_maintenance_t *maintenance) /****************************************************************************** * * - * Function: zbx_mock_test_entry * - * * ******************************************************************************/ void zbx_mock_test_entry(void **state) { diff --git a/tests/libs/zbxdbcache/is_item_processed_by_server.c b/tests/libs/zbxdbcache/is_item_processed_by_server.c index f10fb24a86d..7353f2ee913 100644 --- a/tests/libs/zbxdbcache/is_item_processed_by_server.c +++ b/tests/libs/zbxdbcache/is_item_processed_by_server.c @@ -27,8 +27,6 @@ /****************************************************************************** * * - * Function: zbx_mock_test_entry * - * * ******************************************************************************/ void zbx_mock_test_entry(void **state) { diff --git a/tests/libs/zbxdbcache/zbx_vc_add_values.c b/tests/libs/zbxdbcache/zbx_vc_add_values.c index a83a8c7fee0..b5ddfb60b7a 100644 --- a/tests/libs/zbxdbcache/zbx_vc_add_values.c +++ b/tests/libs/zbxdbcache/zbx_vc_add_values.c @@ -31,8 +31,6 @@ extern zbx_uint64_t CONFIG_VALUE_CACHE_SIZE; /****************************************************************************** * * - * Function: zbx_mock_test_entry * - * * ******************************************************************************/ void zbx_mock_test_entry(void **state) { diff --git a/tests/libs/zbxdbcache/zbx_vc_get_value.c b/tests/libs/zbxdbcache/zbx_vc_get_value.c index aa7ea5bde3d..88fc8a2b379 100644 --- a/tests/libs/zbxdbcache/zbx_vc_get_value.c +++ b/tests/libs/zbxdbcache/zbx_vc_get_value.c @@ -31,8 +31,6 @@ extern zbx_uint64_t CONFIG_VALUE_CACHE_SIZE; /****************************************************************************** * * - * Function: zbx_mock_test_entry * - * * ******************************************************************************/ void zbx_mock_test_entry(void **state) { diff --git a/tests/libs/zbxdbcache/zbx_vc_get_values.c b/tests/libs/zbxdbcache/zbx_vc_get_values.c index cbff161a96e..2cb08c68cf1 100644 --- a/tests/libs/zbxdbcache/zbx_vc_get_values.c +++ b/tests/libs/zbxdbcache/zbx_vc_get_values.c @@ -31,8 +31,6 @@ extern zbx_uint64_t CONFIG_VALUE_CACHE_SIZE; /****************************************************************************** * * - * Function: zbx_mock_test_entry * - * * ******************************************************************************/ void zbx_mock_test_entry(void **state) { diff --git a/tests/libs/zbxhistory/zbx_history_get_values.c b/tests/libs/zbxhistory/zbx_history_get_values.c index ab4b03d4f56..23acce8b014 100644 --- a/tests/libs/zbxhistory/zbx_history_get_values.c +++ b/tests/libs/zbxhistory/zbx_history_get_values.c @@ -102,8 +102,6 @@ void __wrap_zbx_clean_events(void) /****************************************************************************** * * - * Function: zbx_vcmock_history_dump * - * * * Purpose: dumps history record vector contents to standard output * * * ******************************************************************************/ @@ -125,8 +123,6 @@ static void zbx_vcmock_history_dump(unsigned char value_type, const zbx_vector_h /****************************************************************************** * * - * Function: zbx_vcmock_read_history_value * - * * * Purpose: reads history value and timestamp from input data * * * * Parameters: hvalue - [IN] handle to the history record mapping * @@ -190,8 +186,6 @@ static void zbx_vcmock_read_history_value(zbx_mock_handle_t hvalue, unsigned cha /****************************************************************************** * * - * Function: zbx_vcmock_read_values * - * * * Purpose: reads historical values from input data * * * * Parameters: hdata - [IN] handle to the history values in input data * @@ -214,8 +208,6 @@ void zbx_vcmock_read_values(zbx_mock_handle_t hdata, unsigned char value_type, z /****************************************************************************** * * - * Function: zbx_vcmock_check_records * - * * * Purpose: Compares two history record vectors and throw assertion if either * * values or timestamps don't match * * * @@ -272,8 +264,6 @@ void zbx_vcmock_check_records(const char *prefix, unsigned char value_type, /****************************************************************************** * * - * Function: vc_history_record_compare_desc_func * - * * * Purpose: compares two cache values by their timestamps * * * * Parameters: d1 - [IN] the first value * @@ -297,8 +287,6 @@ static int vc_history_record_compare_desc_func(const zbx_history_record_t *d1, c /****************************************************************************** * * - * Function: zbx_mock_test_entry * - * * ******************************************************************************/ void zbx_mock_test_entry(void **state) { diff --git a/tests/libs/zbxprometheus/prometheus_filter_init.c b/tests/libs/zbxprometheus/prometheus_filter_init.c index 3e81057167f..0c20fbb000a 100644 --- a/tests/libs/zbxprometheus/prometheus_filter_init.c +++ b/tests/libs/zbxprometheus/prometheus_filter_init.c @@ -68,8 +68,6 @@ static void test_match(const char *prefix, zbx_mock_handle_t hmatch, zbx_prometh /****************************************************************************** * * - * Function: zbx_mock_test_entry * - * * ******************************************************************************/ void zbx_mock_test_entry(void **state) { diff --git a/tests/libs/zbxprometheus/prometheus_parse_row.c b/tests/libs/zbxprometheus/prometheus_parse_row.c index fbe4bdf02b3..391cd4946b6 100644 --- a/tests/libs/zbxprometheus/prometheus_parse_row.c +++ b/tests/libs/zbxprometheus/prometheus_parse_row.c @@ -28,8 +28,6 @@ /****************************************************************************** * * - * Function: zbx_mock_test_entry * - * * ******************************************************************************/ void zbx_mock_test_entry(void **state) { diff --git a/tests/mocks/valuecache/valuecache_mock.c b/tests/mocks/valuecache/valuecache_mock.c index 32b64d33bd9..1f83a0b94ac 100644 --- a/tests/mocks/valuecache/valuecache_mock.c +++ b/tests/mocks/valuecache/valuecache_mock.c @@ -73,8 +73,6 @@ static int history_compare(const void *d1, const void *d2) /****************************************************************************** * * - * Function: zbx_vcmock_read_history_value * - * * * Purpose: reads history value and timestamp from input data * * * * Parameters: hvalue - [IN] handle to the history record mapping * @@ -142,8 +140,6 @@ static void zbx_vcmock_read_history_value(zbx_mock_handle_t hvalue, unsigned cha /****************************************************************************** * * - * Function: zbx_vcmock_ds_read_item * - * * * Purpose: reads value cache data store item * * * * Parameters: hvalue - [IN] handle to the history record mapping * @@ -167,8 +163,6 @@ static void zbx_vcmock_ds_read_item(zbx_mock_handle_t hitem, zbx_vcmock_ds_item_ /****************************************************************************** * * - * Function: zbx_vcmock_ds_clone_record * - * * * Purpose: duplicates history record * * * * Parameters: src - [IN] source history record * @@ -207,8 +201,6 @@ static void zbx_vcmock_ds_clone_record(const zbx_history_record_t *src, unsigned /****************************************************************************** * * - * Function: zbx_vcmock_read_values * - * * * Purpose: reads historical values from input data * * * * Parameters: hdata - [IN] handle to the history values in input data * @@ -231,8 +223,6 @@ void zbx_vcmock_read_values(zbx_mock_handle_t hdata, unsigned char value_type, z /****************************************************************************** * * - * Function: zbx_vcmock_ds_init * - * * * Purpose: initializes history data storage * * * * Comments: History data storage is used to emulate history storage backend. * @@ -268,8 +258,6 @@ void zbx_vcmock_ds_init(void) /****************************************************************************** * * - * Function: zbx_vcmock_ds_destroy * - * * * Purpose: destroys history data storage * * * ******************************************************************************/ @@ -287,8 +275,6 @@ void zbx_vcmock_ds_destroy(void) /****************************************************************************** * * - * Function: zbx_vcmock_history_dump * - * * * Purpose: dumps history record vector contents to standard output * * * ******************************************************************************/ @@ -310,8 +296,6 @@ static void zbx_vcmock_history_dump(unsigned char value_type, const zbx_vector_h /****************************************************************************** * * - * Function: zbx_vcmock_ds_dump * - * * * Purpose: dumps history data store to standard output * * * ******************************************************************************/ @@ -330,8 +314,6 @@ void zbx_vcmock_ds_dump(void) /****************************************************************************** * * - * Function: zbx_vcmock_ds_first_item * - * * * Purpose: returns first item in value cache mock data source * * * ******************************************************************************/ @@ -345,8 +327,6 @@ zbx_vcmock_ds_item_t *zbx_vcmock_ds_first_item(void) /****************************************************************************** * * - * Function: zbx_vcmock_get_cache_mode * - * * * Purpose: converts value cache mode from text format * * * ******************************************************************************/ @@ -364,8 +344,6 @@ int zbx_vcmock_str_to_cache_mode(const char *mode) /****************************************************************************** * * - * Function: zbx_vcmock_str_to_item_status * - * * * Purpose: converts value cache item status from text format * * * ******************************************************************************/ @@ -379,8 +357,6 @@ int zbx_vcmock_str_to_item_status(const char *str) /****************************************************************************** * * - * Function: zbx_vcmock_check_records * - * * * Purpose: Compares two history record vectors and throw assertion if either * * values or timestamps don't match * * * @@ -437,8 +413,6 @@ void zbx_vcmock_check_records(const char *prefix, unsigned char value_type, /****************************************************************************** * * - * Function: zbx_vcmock_get_dc_history * - * * * Purpose: reads ZBX_DC_HISTORY vector from input data * * * * Parameters: handle - [IN] the history data handle in input data * @@ -477,8 +451,6 @@ void zbx_vcmock_get_dc_history(zbx_mock_handle_t handle, zbx_vector_ptr_t *histo /****************************************************************************** * * - * Function: zbx_vcmock_free_dc_history * - * * * Purpose: frees ZBX_DC_HISTORY structure * * * ******************************************************************************/ @@ -708,8 +680,6 @@ int __wrap_zbx_elastic_version_get(void) /****************************************************************************** * * - * Function: zbx_vcmock_set_available_mem * - * * * Purpose: sets the available memory for the wrapped memory allocator * * * ******************************************************************************/ @@ -720,8 +690,6 @@ void zbx_vcmock_set_available_mem(size_t size) /****************************************************************************** * * - * Function: zbx_vcmock_mem_get_available * - * * * Purpose: retrieves the memory available in the wrapped memory allocator * * * ******************************************************************************/ @@ -732,8 +700,6 @@ size_t zbx_vcmock_get_available_mem(void) /****************************************************************************** * * - * Function: zbx_vcmock_set_cache_size * - * * * Purpose: sets the available size in value cache if the specified key is * * present in input data * * * @@ -759,8 +725,6 @@ void zbx_vcmock_set_cache_size(zbx_mock_handle_t hitem, const char *key) /****************************************************************************** * * - * Function: zbx_vcmock_get_request_params * - * * * Purpose: gets value cache precache or requests parameters from input data * * * ******************************************************************************/ @@ -782,8 +746,6 @@ void zbx_vcmock_get_request_params(zbx_mock_handle_t handle, zbx_uint64_t *itemi /****************************************************************************** * * - * Function: zbx_vcmock_set_mode * - * * * Purpose: sets value cache mode if the specified key is present in input * * data * * * @@ -824,8 +786,6 @@ void __wrap_zbx_timespec(zbx_timespec_t *ts) /****************************************************************************** * * - * Function: zbx_vcmock_set_time * - * * * Purpose: sets the current time. The key must be present in input data or * * the test case will fail * * * @@ -843,8 +803,6 @@ void zbx_vcmock_set_time(zbx_mock_handle_t hitem, const char *key) /****************************************************************************** * * - * Function: zbx_vcmock_get_ts * - * * * Purpose: returns the mocked current time * * * ******************************************************************************/ diff --git a/tests/zabbix_server/preprocessor/zbx_item_preproc.c b/tests/zabbix_server/preprocessor/zbx_item_preproc.c index f0308e71393..325ac0b3fe4 100644 --- a/tests/zabbix_server/preprocessor/zbx_item_preproc.c +++ b/tests/zabbix_server/preprocessor/zbx_item_preproc.c @@ -148,8 +148,6 @@ static void read_step(const char *path, zbx_preproc_op_t *op) /****************************************************************************** * * - * Function: is_step_supported * - * * * Purpose: checks if the preprocessing step is supported based on build * * configuration or other settings * * * diff --git a/tests/zbxmockdata.c b/tests/zbxmockdata.c index 7879b4a18bb..9ada65be39f 100644 --- a/tests/zbxmockdata.c +++ b/tests/zbxmockdata.c @@ -207,8 +207,6 @@ static void zbx_yaml_replace_node_rec(yaml_document_t *doc, yaml_node_t *parent, /****************************************************************************** * * - * Function: zbx_yaml_replace_node * - * * * Purpose: replaces node occurrences in mappings and sequences with the new * * node index * * * @@ -240,8 +238,6 @@ static void zbx_yaml_replace_node(yaml_document_t *doc, int old_index, int new_i /****************************************************************************** * * - * Function: zbx_yaml_include_rec * - * * * Purpose: recursively include yaml documents from first level 'include' * * mapping scalar value or sequence * * * @@ -281,8 +277,6 @@ static void zbx_yaml_include_rec(yaml_document_t *doc, int *index) /****************************************************************************** * * - * Function: zbx_yaml_check_include * - * * * Purpose: includes another yaml document if include tag is set * * * * Comments: The document is included by recursively copying its contents * @@ -977,8 +971,6 @@ zbx_mock_error_t zbx_mock_int(zbx_mock_handle_t object, int *value) /****************************************************************************** * * - * Function: zbx_mock_string_ex * - * * * Purpose: return string object contents * * * * Comments: The object can be either scalar value or a mapping. In the first * diff --git a/tests/zbxmockjson.c b/tests/zbxmockjson.c index fa226da08df..99f9c7d51a1 100644 --- a/tests/zbxmockjson.c +++ b/tests/zbxmockjson.c @@ -154,8 +154,6 @@ static void json_flatten_contents(struct zbx_json_parse *jp, const char *prefix, /****************************************************************************** * * - * Function: json_flatten * - * * * Purpose: flattens json into vector of key (json path), value pairs, sorted * * by keys * * * @@ -168,8 +166,6 @@ static void json_flatten(struct zbx_json_parse *jp, zbx_vector_ptr_pair_t *props /****************************************************************************** * * - * Function: __zbx_mock_assert_json_eq * - * * * Purpose: compares returned json with expected * * * * Comments: The comparison is done by first flattening both jsons into * diff --git a/tests/zbxmocktime.c b/tests/zbxmocktime.c index 1c8c621b28e..2a27b659042 100644 --- a/tests/zbxmocktime.c +++ b/tests/zbxmocktime.c @@ -37,8 +37,6 @@ /****************************************************************************** * * - * Function: ts_get_component_end * - * * * Purpose: finds the next character after numeric time component * * * * Parameters: text - [IN] the text * @@ -59,8 +57,6 @@ static const char *ts_get_component_end(const char *text) /****************************************************************************** * * - * Function: ts_get_date * - * * * Purpose: parses year, month and day from date component having * * YYYY-MM-DD format * * * @@ -116,8 +112,6 @@ static zbx_mock_error_t ts_get_date(const char *text, int *year, int *month, int /****************************************************************************** * * - * Function: ts_get_time * - * * * Purpose: parses hours, minutes and seconds from time component having * * HH:MM:SS format * * * @@ -173,8 +167,6 @@ static zbx_mock_error_t ts_get_time(const char *text, int *hours, int *minutes, /****************************************************************************** * * - * Function: ts_get_ns * - * * * Purpose: parses nanoseconds from time component having .NNNNNNNNN format * * * * Parameters: text - [IN] the text * @@ -209,8 +201,6 @@ static zbx_mock_error_t ts_get_ns(const char *text, int *ns, const char **pnext) /****************************************************************************** * * - * Function: ts_get_tz * - * * * Purpose: parses timezone offset seconds from timezone component having * * (+|-)HH[:MM] format * * * @@ -254,8 +244,6 @@ static zbx_mock_error_t ts_get_tz(const char *text, int *sec, const char **pnext /****************************************************************************** * * - * Function: zbx_time_to_localtime * - * * * Purpose: converts timestamp to a broken-down time representation and * * timezone offset (in seconds). * * * @@ -294,8 +282,6 @@ static zbx_mock_error_t zbx_time_to_localtime(time_t timestamp, struct tm *local /****************************************************************************** * * - * Function: zbx_tz_format * - * * * Purpose: formats timezone to +hh:mm format * * * * Parameters: buffer - [OUT] the output buffer * @@ -334,8 +320,6 @@ zbx_mock_time_parser_state_t; /****************************************************************************** * * - * Function: zbx_strtime_to_timespec * - * * * Purpose: converts YAML space separated timestamp having * * YYYY-MM-DD hh:mm:ss.nnnnnnnnn TZ format to zabbix timespec * * * @@ -489,8 +473,6 @@ zbx_mock_error_t zbx_strtime_to_timespec(const char *strtime, zbx_timespec_t *ts /****************************************************************************** * * - * Function: zbx_time_to_strtime * - * * * Purpose: converts time to YAML space separated timestamp in * * YYYY-MM-DD hh:mm:ss TZ format * * * @@ -531,8 +513,6 @@ zbx_mock_error_t zbx_time_to_strtime(time_t timestamp, char *buffer, size_t size /****************************************************************************** * * - * Function: zbx_timespec_to_strtime * - * * * Purpose: converts timespec (seconds + nanoseconds) to YAML space separated * * timestamp in YYYY-MM-DD hh:mm:ss.nnnnnnnnn TZ format * * * diff --git a/tests/zbxmockutil.c b/tests/zbxmockutil.c index 783ade0ed61..e4c60f5015f 100644 --- a/tests/zbxmockutil.c +++ b/tests/zbxmockutil.c @@ -82,8 +82,6 @@ zbx_mock_handle_t zbx_mock_get_object_member_handle(zbx_mock_handle_t object, co /****************************************************************************** * * - * Function: zbx_mock_str_to_token_type * - * * * Purpose: converts token type from text format * * * ******************************************************************************/ @@ -113,8 +111,6 @@ void zbx_mock_str_to_token_type(const char *str, int *out) /****************************************************************************** * * - * Function: zbx_mock_str_to_value_type * - * * * Purpose: converts item value type from text format * * * ******************************************************************************/ @@ -141,8 +137,6 @@ unsigned char zbx_mock_str_to_value_type(const char *str) /****************************************************************************** * * - * Function: zbx_mock_str_to_item_type * - * * * Purpose: converts item type from text format * * * ******************************************************************************/ @@ -204,8 +198,6 @@ int zbx_mock_str_to_item_type(const char *str) /****************************************************************************** * * - * Function: zbx_mock_str_to_variant * - * * * Purpose: converts variant from text format * * * ******************************************************************************/ @@ -305,8 +297,6 @@ int zbx_mock_get_object_member_int(zbx_mock_handle_t object, const char *name) /****************************************************************************** * * - * Function: zbx_mock_str_to_return_code * - * * * Purpose: converts common function return code from text format * * * ******************************************************************************/ @@ -348,8 +338,6 @@ int zbx_mock_str_to_return_code(const char *str) /****************************************************************************** * * - * Function: zbx_mock_str_to_value_type * - * * * Purpose: converts item value type from text format * * * ******************************************************************************/ |