FreeBSD kernel /amd64 XEN device code
test_fixture Struct Reference

Data Fields

setup_tsetup
 
testcase_ttest
 
teardown_tteardown
 

Detailed Description

A simple test fixture comprising setup, teardown, and test

Definition at line 94 of file netback_unit_tests.c.

Field Documentation

◆ setup

setup_t* test_fixture::setup

Will be run before the test to allocate and initialize variables

Definition at line 96 of file netback_unit_tests.c.

Referenced by xnb_unit_test_runner().

◆ teardown

teardown_t* test_fixture::teardown

Cleans up test data whether or not the setup succeeded

Definition at line 102 of file netback_unit_tests.c.

Referenced by xnb_unit_test_runner().

◆ test

testcase_t* test_fixture::test

Will be run if setup succeeds

Definition at line 99 of file netback_unit_tests.c.

Referenced by xnb_unit_test_runner().


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