OpenVPN
Macros | Functions | Variables
mock_msg.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MOCK_MSG_BUF   2048
 

Functions

void mock_set_debug_level (int level)
 Mock debug level defaults to 0, which gives clean(-ish) test reports.
 
int mock_get_debug_level (void)
 
void mock_set_print_debug_level (int level)
 

Variables

bool fatal_error_triggered
 
char mock_msg_buf [MOCK_MSG_BUF]
 

Macro Definition Documentation

◆ MOCK_MSG_BUF

#define MOCK_MSG_BUF   2048

Definition at line 34 of file mock_msg.h.

Function Documentation

◆ mock_get_debug_level()

int mock_get_debug_level ( void  )

Definition at line 57 of file mock_msg.c.

References x_debug_level.

Referenced by test_atoi_variants().

◆ mock_set_debug_level()

void mock_set_debug_level ( int  level)

Mock debug level defaults to 0, which gives clean(-ish) test reports.

Call this function from your test driver to increase debug output when you need debug output.

Definition at line 51 of file mock_msg.c.

References x_debug_level.

Referenced by test_atoi_variants().

◆ mock_set_print_debug_level()

void mock_set_print_debug_level ( int  level)

Definition at line 63 of file mock_msg.c.

References print_x_debug_level.

Variable Documentation

◆ fatal_error_triggered

bool fatal_error_triggered
extern

Definition at line 45 of file mock_msg.c.

Referenced by x_msg_va().

◆ mock_msg_buf

char mock_msg_buf[MOCK_MSG_BUF]
extern

Definition at line 47 of file mock_msg.c.

Referenced by test_atoi_variants(), and x_msg_va().