QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
Loading...
Searching...
No Matches
quickcpplib::_xxx::unit_test::test_case_registration Struct Reference

#include "unit_test.hpp"

Public Member Functions

 test_case_registration (const char *name, const char *desc, void(*_func)()) noexcept
 
 ~test_case_registration ()
 

Public Attributes

size_t suite_idx
 
void(* func )()
 

Constructor & Destructor Documentation

◆ test_case_registration()

quickcpplib::_xxx::unit_test::test_case_registration::test_case_registration ( const char *  name,
const char *  desc,
void(*)()  _func 
)
inlinenoexcept
382 {
383 size_t suite_idx;
384 void (*func)();
385 test_case_registration(const char *name, const char *desc, void (*_func)()) noexcept : func(_func)
386 {
387 if(test_suites().empty())
388 {
389 // No BOOST_AUTO_TEST_SUITE() has been declared yet, so fake one
390 test_suite_registration("unset_testsuite");
391 }
std::vector< test_suite > & test_suites()
Definition unit_test.hpp:163
test_suite *& current_test_suite()
Definition unit_test.hpp:168
test_case_registration(const char *name, const char *desc, void(*_func)()) noexcept
Definition unit_test.hpp:382
size_t suite_idx
Definition unit_test.hpp:380
void(* func)()
Definition unit_test.hpp:381

◆ ~test_case_registration()

quickcpplib::_xxx::unit_test::test_case_registration::~test_case_registration ( )
inline
397 {
398 test_suite *suite = test_suites().data() + suite_idx;

Member Data Documentation

◆ suite_idx

size_t quickcpplib::_xxx::unit_test::test_case_registration::suite_idx

◆ func

void(* quickcpplib::_xxx::unit_test::test_case_registration::func) ()

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