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_suite_registration Struct Reference

#include "unit_test.hpp"

Public Member Functions

 test_suite_registration (const char *_name) noexcept
 

Public Attributes

const char * name
 

Constructor & Destructor Documentation

◆ test_suite_registration()

quickcpplib::_xxx::unit_test::test_suite_registration::test_suite_registration ( const char *  _name)
inlinenoexcept
368 {
369 const char *name;
370 test_suite_registration(const char *_name) noexcept : name(_name)
371 {
372 auto it = std::find_if(test_suites().begin(), test_suites().end(), [this](const test_suite &i) { return !strcmp(i.name, name); });
373 if(it == test_suites().end())
374 {
375 test_suites().push_back(test_suite(name));
376 it = --test_suites().end();
std::vector< test_suite > & test_suites()
Definition unit_test.hpp:163
test_suite_registration(const char *_name) noexcept
Definition unit_test.hpp:367
const char * name
Definition unit_test.hpp:366

Member Data Documentation

◆ name

const char* quickcpplib::_xxx::unit_test::test_suite_registration::name

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