Tor  0.4.7.0-alpha-dev
Data Fields
testcase_t Struct Reference

#include <tinytest.h>

Data Fields

const char * name
 
testcase_fn fn
 
unsigned long flags
 
const struct testcase_setup_tsetup
 
void * setup_data
 

Detailed Description

A single test-case that you can run.

Definition at line 53 of file tinytest.h.

Field Documentation

◆ flags

unsigned long flags

Bitfield of TT_* flags.

Definition at line 56 of file tinytest.h.

◆ fn

testcase_fn fn

The function to run to implement this case.

Definition at line 55 of file tinytest.h.

◆ name

const char* name

An identifier for this case.

Definition at line 54 of file tinytest.h.

◆ setup

const struct testcase_setup_t* setup

Optional setup/cleanup fns

Definition at line 57 of file tinytest.h.

◆ setup_data

void* setup_data

Extra data usable by setup function

Definition at line 58 of file tinytest.h.


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