#include "testutil_monitoring.hpp"
#include "testutil_unity.hpp"
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Functions | |
void | expect_monitor_event (void *monitor_, int expected_event_) |
int | expect_monitor_event_multiple (void *server_mon_, int expected_event_, int expected_err_, bool optional_) |
void | expect_monitor_event_v2 (void *monitor_, int64_t expected_event_, const char *expected_local_address_, const char *expected_remote_address_) |
int | get_monitor_event (void *monitor_, int *value_, char **address_) |
static int | get_monitor_event_internal (void *monitor_, int *value_, char **address_, int recv_flag_) |
static int64_t | get_monitor_event_internal_v2 (void *monitor_, uint64_t **value_, char **local_address_, char **remote_address_, int recv_flag_) |
int64_t | get_monitor_event_v2 (void *monitor_, uint64_t **value_, char **local_address_, char **remote_address_) |
int | get_monitor_event_with_timeout (void *monitor_, int *value_, char **address_, int timeout_) |
static int64_t | get_monitor_event_with_timeout_v2 (void *monitor_, uint64_t **value_, char **local_address_, char **remote_address_, int timeout_) |
const char * | get_zmqEventName (uint64_t event) |
void | print_events (void *socket, int timeout, int limit) |
static void | print_unexpected_event (char *buf_, size_t buf_size_, int event_, int err_, int expected_event_, int expected_err_) |
void | print_unexpected_event_stderr (int event_, int err_, int expected_event_, int expected_err_) |
static int | receive_monitor_address (void *monitor_, char **address_, bool expect_more_) |
Definition at line 96 of file testutil_monitoring.cpp.
int expect_monitor_event_multiple | ( | void * | server_mon_, |
int | expected_event_, | ||
int | expected_err_, | ||
bool | optional_ | ||
) |
Definition at line 127 of file testutil_monitoring.cpp.
void expect_monitor_event_v2 | ( | void * | monitor_, |
int64_t | expected_event_, | ||
const char * | expected_local_address_, | ||
const char * | expected_remote_address_ | ||
) |
Definition at line 289 of file testutil_monitoring.cpp.
int get_monitor_event | ( | void * | monitor_, |
int * | value_, | ||
char ** | address_ | ||
) |
Definition at line 91 of file testutil_monitoring.cpp.
|
static |
Definition at line 34 of file testutil_monitoring.cpp.
|
static |
Definition at line 182 of file testutil_monitoring.cpp.
int64_t get_monitor_event_v2 | ( | void * | monitor_, |
uint64_t ** | value_, | ||
char ** | local_address_, | ||
char ** | remote_address_ | ||
) |
Definition at line 280 of file testutil_monitoring.cpp.
int get_monitor_event_with_timeout | ( | void * | monitor_, |
int * | value_, | ||
char ** | address_, | ||
int | timeout_ | ||
) |
Definition at line 60 of file testutil_monitoring.cpp.
|
static |
Definition at line 247 of file testutil_monitoring.cpp.
const char* get_zmqEventName | ( | uint64_t | event | ) |
Definition at line 327 of file testutil_monitoring.cpp.
Definition at line 365 of file testutil_monitoring.cpp.
|
static |
Definition at line 102 of file testutil_monitoring.cpp.
void print_unexpected_event_stderr | ( | int | event_, |
int | err_, | ||
int | expected_event_, | ||
int | expected_err_ | ||
) |
Definition at line 116 of file testutil_monitoring.cpp.
|
static |
Definition at line 9 of file testutil_monitoring.cpp.