Functions
testutil_monitoring.cpp File Reference
#include "testutil_monitoring.hpp"
#include "testutil_unity.hpp"
#include <stdlib.h>
#include <string.h>
Include dependency graph for testutil_monitoring.cpp:

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_)
 

Function Documentation

◆ expect_monitor_event()

void expect_monitor_event ( void monitor_,
int  expected_event_ 
)

Definition at line 96 of file testutil_monitoring.cpp.

◆ expect_monitor_event_multiple()

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.

◆ expect_monitor_event_v2()

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.

◆ get_monitor_event()

int get_monitor_event ( void monitor_,
int *  value_,
char **  address_ 
)

Definition at line 91 of file testutil_monitoring.cpp.

◆ get_monitor_event_internal()

static int get_monitor_event_internal ( void monitor_,
int *  value_,
char **  address_,
int  recv_flag_ 
)
static

Definition at line 34 of file testutil_monitoring.cpp.

◆ get_monitor_event_internal_v2()

static int64_t get_monitor_event_internal_v2 ( void monitor_,
uint64_t **  value_,
char **  local_address_,
char **  remote_address_,
int  recv_flag_ 
)
static

Definition at line 182 of file testutil_monitoring.cpp.

◆ get_monitor_event_v2()

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.

◆ get_monitor_event_with_timeout()

int get_monitor_event_with_timeout ( void monitor_,
int *  value_,
char **  address_,
int  timeout_ 
)

Definition at line 60 of file testutil_monitoring.cpp.

◆ get_monitor_event_with_timeout_v2()

static int64_t get_monitor_event_with_timeout_v2 ( void monitor_,
uint64_t **  value_,
char **  local_address_,
char **  remote_address_,
int  timeout_ 
)
static

Definition at line 247 of file testutil_monitoring.cpp.

◆ get_zmqEventName()

const char* get_zmqEventName ( uint64_t  event)

Definition at line 327 of file testutil_monitoring.cpp.

◆ print_events()

void print_events ( void socket,
int  timeout,
int  limit 
)

Definition at line 365 of file testutil_monitoring.cpp.

◆ print_unexpected_event()

static void print_unexpected_event ( char *  buf_,
size_t  buf_size_,
int  event_,
int  err_,
int  expected_event_,
int  expected_err_ 
)
static

Definition at line 102 of file testutil_monitoring.cpp.

◆ print_unexpected_event_stderr()

void print_unexpected_event_stderr ( int  event_,
int  err_,
int  expected_event_,
int  expected_err_ 
)

Definition at line 116 of file testutil_monitoring.cpp.

◆ receive_monitor_address()

static int receive_monitor_address ( void monitor_,
char **  address_,
bool  expect_more_ 
)
static

Definition at line 9 of file testutil_monitoring.cpp.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:04