#include <criterion/criterion.h>#include <criterion/parameterized.h>#include "apphook.h"#include "logmsg/logmsg.h"#include "stats/stats-cluster.h"#include "stats/stats-cluster-single.h"#include "stats/stats-counter.h"#include "stats/stats-query.h"#include "stats/stats-registry.h"#include "stats/stats-prometheus.h"#include "stats/stats-csv.h"#include "scratch-buffers.h"#include <string.h>
Classes | |
| struct | CounterHashContent |
| struct | QueryTestCase |
Macros | |
| #define | ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
Typedefs | |
| typedef void(* | ClusterKeySet) (StatsClusterKey *, guint16, const gchar *, const gchar *) |
Functions | |
| TestSuite (cluster_query_key,.init=setup,.fini=app_shutdown) | |
| Test (cluster_query_key, test_global_key) | |
| TestSuite (stats_query,.init=_initialize_counter_hash,.fini=app_shutdown) | |
| ParameterizedTestParameters (stats_query, test_stats_query_get_log_msg_out) | |
| ParameterizedTest (QueryTestCase *test_cases, stats_query, test_stats_query_get_log_msg_out) | |
| ParameterizedTestParameters (stats_query, test_stats_query_get_kv_str_out) | |
| ParameterizedTestParameters (stats_query, test_stats_query_get_prometheus_str_out) | |
| ParameterizedTestParameters (stats_query, test_stats_query_get_csv_str_out) | |
| void | run_test_case (QueryTestCase *test_cases, const char *format) |
| ParameterizedTest (QueryTestCase *test_cases, stats_query, test_stats_query_get_kv_str_out) | |
| ParameterizedTest (QueryTestCase *test_cases, stats_query, test_stats_query_get_prometheus_str_out) | |
| ParameterizedTest (QueryTestCase *test_cases, stats_query, test_stats_query_get_csv_str_out) | |
| ParameterizedTestParameters (stats_query, test_stats_query_get_sum_log_msg_out) | |
| ParameterizedTest (QueryTestCase *test_cases, stats_query, test_stats_query_get_sum_log_msg_out) | |
| ParameterizedTestParameters (stats_query, test_stats_query_get_sum_str_out) | |
| ParameterizedTest (QueryTestCase *test_cases, stats_query, test_stats_query_get_sum_str_out) | |
| ParameterizedTestParameters (stats_query, test_stats_query_list) | |
| ParameterizedTest (QueryTestCase *test_cases, stats_query, test_stats_query_list) | |
Variables | |
| guint | SCS_FILE |
| guint | SCS_PIPE |
| guint | SCS_TCP |
| #define ARRAY_SIZE | ( | a | ) | (sizeof(a) / sizeof((a)[0])) |
| typedef void(* ClusterKeySet) (StatsClusterKey *, guint16, const gchar *, const gchar *) |
| ParameterizedTest | ( | QueryTestCase * | test_cases, |
| stats_query | , | ||
| test_stats_query_get_csv_str_out | |||
| ) |
| ParameterizedTest | ( | QueryTestCase * | test_cases, |
| stats_query | , | ||
| test_stats_query_get_kv_str_out | |||
| ) |
| ParameterizedTest | ( | QueryTestCase * | test_cases, |
| stats_query | , | ||
| test_stats_query_get_log_msg_out | |||
| ) |
| ParameterizedTest | ( | QueryTestCase * | test_cases, |
| stats_query | , | ||
| test_stats_query_get_prometheus_str_out | |||
| ) |
| ParameterizedTest | ( | QueryTestCase * | test_cases, |
| stats_query | , | ||
| test_stats_query_get_sum_log_msg_out | |||
| ) |
| ParameterizedTest | ( | QueryTestCase * | test_cases, |
| stats_query | , | ||
| test_stats_query_get_sum_str_out | |||
| ) |
| ParameterizedTest | ( | QueryTestCase * | test_cases, |
| stats_query | , | ||
| test_stats_query_list | |||
| ) |
| ParameterizedTestParameters | ( | stats_query | , |
| test_stats_query_get_csv_str_out | |||
| ) |
| ParameterizedTestParameters | ( | stats_query | , |
| test_stats_query_get_kv_str_out | |||
| ) |
| ParameterizedTestParameters | ( | stats_query | , |
| test_stats_query_get_log_msg_out | |||
| ) |
| ParameterizedTestParameters | ( | stats_query | , |
| test_stats_query_get_prometheus_str_out | |||
| ) |
| ParameterizedTestParameters | ( | stats_query | , |
| test_stats_query_get_sum_log_msg_out | |||
| ) |
| ParameterizedTestParameters | ( | stats_query | , |
| test_stats_query_get_sum_str_out | |||
| ) |
| ParameterizedTestParameters | ( | stats_query | , |
| test_stats_query_list | |||
| ) |
| void run_test_case | ( | QueryTestCase * | test_cases, |
| const char * | format | ||
| ) |
| Test | ( | cluster_query_key | , |
| test_global_key | |||
| ) |
| TestSuite | ( | cluster_query_key | , |
| . | init = setup, |
||
| . | fini = app_shutdown |
||
| ) |
| TestSuite | ( | stats_query | , |
| . | init = _initialize_counter_hash, |
||
| . | fini = app_shutdown |
||
| ) |
| guint SCS_FILE |
| guint SCS_PIPE |
| guint SCS_TCP |