libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
GblTestSuiteVTable Struct Reference

#include <gimbal_test_suite.h>

Data Fields

GBL_RESULT(* pFnSuiteInit )(GblTestSuite *pSelf, GblContext *pCtx)
 
GBL_RESULT(* pFnSuiteFinal )(GblTestSuite *pSelf, GblContext *pCtx)
 
GBL_RESULT(* pFnCaseInit )(GblTestSuite *pSelf, GblContext *pCtx)
 
GBL_RESULT(* pFnCaseFinal )(GblTestSuite *pSelf, GblContext *pCtx)
 
const GblTestCasepCases
 

Detailed Description

Virtual table structure for a GblTestSuiteClass.

External virtual table for providing custom initializers and finalizers along with a default list of test-cases to add to a GblTestSuiteClass without having to create a unique class for every semi-custom test suite behavior.

See also
GblTestSuiteClass

Definition at line 60 of file gimbal_test_suite.h.

Field Documentation

◆ pFnSuiteInit

GBL_RESULT(* GblTestSuiteVTable::pFnSuiteInit) (GblTestSuite *pSelf, GblContext *pCtx)

Called to set up the test suite before any test cases are run.

Definition at line 62 of file gimbal_test_suite.h.

◆ pFnSuiteFinal

GBL_RESULT(* GblTestSuiteVTable::pFnSuiteFinal) (GblTestSuite *pSelf, GblContext *pCtx)

Called to finalize/clean-up the test suite after all test cases are run.

Definition at line 64 of file gimbal_test_suite.h.

◆ pFnCaseInit

GBL_RESULT(* GblTestSuiteVTable::pFnCaseInit) (GblTestSuite *pSelf, GblContext *pCtx)

Called before every individual test-case to do generic setup.

Definition at line 66 of file gimbal_test_suite.h.

◆ pFnCaseFinal

GBL_RESULT(* GblTestSuiteVTable::pFnCaseFinal) (GblTestSuite *pSelf, GblContext *pCtx)

Called after every individual test-case to do generic cleanup.

Definition at line 68 of file gimbal_test_suite.h.

◆ pCases

const GblTestCase* GblTestSuiteVTable::pCases

Pointer to a NULL-terminated array of test cases to add to the suite.

Definition at line 70 of file gimbal_test_suite.h.


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