Tor  0.4.7.0-alpha-dev
Data Fields
testcase_setup_t Struct Reference

#include <tinytest.h>

Data Fields

void *(* setup_fn )(const struct testcase_t *)
 
int(* cleanup_fn )(const struct testcase_t *, void *)
 

Detailed Description

Functions to initialize/teardown a structure for a testcase.

Definition at line 45 of file tinytest.h.

Field Documentation

◆ cleanup_fn

int(* cleanup_fn) (const struct testcase_t *, void *)

Clean/free a structure from setup_fn. Return 1 if ok, 0 on err.

Definition at line 49 of file tinytest.h.

◆ setup_fn

void*(* setup_fn) (const struct testcase_t *)

Return a new structure for use by a given testcase.

Definition at line 47 of file tinytest.h.


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