GNUnet  0.11.x
Data Fields
GNUNET_TESTING_Interpreter Struct Reference

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

#include </home/buildbot/bb-worker/worker/gnunet/build/src/testing/testing.h>

Collaboration diagram for GNUNET_TESTING_Interpreter:
[legend]

Data Fields

struct GNUNET_TESTING_Commandcommands
 Commands the interpreter will run. More...
 
struct GNUNET_SCHEDULER_Tasktask
 Interpreter task (if one is scheduled). More...
 
struct GNUNET_SCHEDULER_Taskfinish_task
 Finish task of a blocking call to a commands finish method. More...
 
const struct GNUNET_CONFIGURATION_Handlecfg
 Our configuration. More...
 
struct GNUNET_SCHEDULER_Tasktimeout_task
 Task run on timeout. More...
 
int ip
 Instruction pointer. More...
 
int result
 Result of the testcases, GNUNET_OK on success. More...
 

Detailed Description

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

Author
t3sserakt

Definition at line 34 of file testing.h.

Field Documentation

◆ commands

struct GNUNET_TESTING_Command* GNUNET_TESTING_Interpreter::commands

◆ task

struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::task

Interpreter task (if one is scheduled).

Definition at line 45 of file testing.h.

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

◆ finish_task

struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::finish_task

Finish task of a blocking call to a commands finish method.

Definition at line 50 of file testing.h.

Referenced by run_finish_task_next().

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_TESTING_Interpreter::cfg

Our configuration.

Definition at line 55 of file testing.h.

◆ timeout_task

struct GNUNET_SCHEDULER_Task* GNUNET_TESTING_Interpreter::timeout_task

Task run on timeout.

Definition at line 60 of file testing.h.

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

◆ 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 67 of file testing.h.

Referenced by do_shutdown(), GNUNET_TESTING_cmd_batch_next(), GNUNET_TESTING_interpreter_fail(), GNUNET_TESTING_interpreter_get_current_label(), GNUNET_TESTING_interpreter_lookup_command(), interpreter_next(), and interpreter_run().

◆ result

int GNUNET_TESTING_Interpreter::result

Result of the testcases, GNUNET_OK on success.

Definition at line 72 of file testing.h.

Referenced by GNUNET_TESTING_interpreter_fail(), interpreter_next(), interpreter_run(), and run_finish_task_sync().


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