GNUnet 0.21.1
GNUNET_TESTING_Interpreter Struct Reference

Global state of the interpreter, used by a command to access information about other commands. More...

Collaboration diagram for GNUNET_TESTING_Interpreter:
[legend]

Data Fields

const struct GNUNET_HELPER_Handle ** helper
 Array with handles of helper processes for communication with netjails. More...
 
struct GNUNET_HELPER_SendHandlesend_handle
 Handle to a send op. More...
 
GNUNET_TESTING_ResultCallback rc
 Function to call with the test result. More...
 
void * rc_cls
 Closure for rc. More...
 
struct GNUNET_TESTING_Commandcommands
 Commands the interpreter will run. More...
 
struct GNUNET_CONTAINER_MultiShortmapbarriers
 Map with barriers for this loop. More...
 
struct GNUNET_SCHEDULER_Tasktask
 Interpreter task (if one is scheduled). More...
 
struct GNUNET_SCHEDULER_Taskfinal_task
 Final task that returns the result. More...
 
struct GNUNET_SCHEDULER_Tasktimeout_task
 Task run on timeout. More...
 
unsigned int cmds_n
 Number of GNUNET_TESTING_Command in commands. More...
 
unsigned int n_helper
 Size of the array helper. More...
 
int ip
 Instruction pointer. More...
 
enum GNUNET_GenericReturnValue result
 Result of the testcases, GNUNET_OK on success. More...
 
bool finishing
 Is the interpreter finishing? More...
 

Detailed Description

Global state of the interpreter, used by a command to access information about other commands.

Definition at line 40 of file testing_api_loop.c.

Field Documentation

◆ helper

const struct GNUNET_HELPER_Handle** GNUNET_TESTING_Interpreter::helper

Array with handles of helper processes for communication with netjails.

Definition at line 45 of file testing_api_loop.c.

Referenced by finish_test(), GNUNET_TESTING_add_netjail_helper_(), and send_barrier_crossable().

◆ send_handle

struct GNUNET_HELPER_SendHandle* GNUNET_TESTING_Interpreter::send_handle

Handle to a send op.

Definition at line 50 of file testing_api_loop.c.

Referenced by finish_test(), and send_barrier_crossable().

◆ rc

GNUNET_TESTING_ResultCallback GNUNET_TESTING_Interpreter::rc

Function to call with the test result.

Definition at line 55 of file testing_api_loop.c.

Referenced by finish_test(), and GNUNET_TESTING_run().

◆ rc_cls

void* GNUNET_TESTING_Interpreter::rc_cls

Closure for rc.

Definition at line 60 of file testing_api_loop.c.

Referenced by finish_test(), and GNUNET_TESTING_run().

◆ commands

struct GNUNET_TESTING_Command* GNUNET_TESTING_Interpreter::commands

◆ barriers

struct GNUNET_CONTAINER_MultiShortmap* GNUNET_TESTING_Interpreter::barriers

Map with barriers for this loop.

Definition at line 70 of file testing_api_loop.c.

Referenced by finish_test(), GNUNET_TESTING_add_barrier_(), GNUNET_TESTING_get_barrier_(), and GNUNET_TESTING_run().

◆ task

struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::task

Interpreter task (if one is scheduled).

Definition at line 75 of file testing_api_loop.c.

Referenced by finish_test(), GNUNET_TESTING_run(), interpreter_next(), and interpreter_run().

◆ final_task

struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::final_task

Final task that returns the result.

Definition at line 80 of file testing_api_loop.c.

Referenced by finish_test(), and GNUNET_TESTING_interpreter_fail().

◆ timeout_task

struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::timeout_task

Task run on timeout.

Definition at line 85 of file testing_api_loop.c.

Referenced by do_timeout(), finish_test(), and GNUNET_TESTING_run().

◆ cmds_n

unsigned int GNUNET_TESTING_Interpreter::cmds_n

Number of GNUNET_TESTING_Command in commands.

Definition at line 90 of file testing_api_loop.c.

Referenced by get_command(), and GNUNET_TESTING_run().

◆ n_helper

unsigned int GNUNET_TESTING_Interpreter::n_helper

Size of the array helper.

Definition at line 95 of file testing_api_loop.c.

Referenced by GNUNET_TESTING_add_netjail_helper_().

◆ ip

int GNUNET_TESTING_Interpreter::ip

Instruction pointer.

Tells interpreter_run() which instruction to run next. Need (signed) int because it gets -1 when rewinding the interpreter to the first CMD.

Definition at line 102 of file testing_api_loop.c.

Referenced by finish_test(), get_command(), GNUNET_TESTING_interpreter_fail(), GNUNET_TESTING_interpreter_get_current_command(), interpreter_next(), and interpreter_run().

◆ result

enum GNUNET_GenericReturnValue GNUNET_TESTING_Interpreter::result

Result of the testcases, GNUNET_OK on success.

Definition at line 107 of file testing_api_loop.c.

Referenced by do_timeout(), finish_test(), GNUNET_TESTING_interpreter_fail(), interpreter_next(), and interpreter_run().

◆ finishing

bool GNUNET_TESTING_Interpreter::finishing

Is the interpreter finishing?

Definition at line 112 of file testing_api_loop.c.

Referenced by finish_test(), and free_barrier_node_cb().


The documentation for this struct was generated from the following file: