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

#include "unit_test.hpp"

Public Member Functions

constexpr test_case (const char *_name, const char *_desc, void(*_func)())
 
 test_case (test_case &&o) noexcept
 
test_caseoperator= (test_case &&o) noexcept
 

Public Attributes

const char * name
 
const char * desc
 
void(* func )()
 
std::chrono::steady_clock::duration duration
 
std::atomic< size_t > passes
 
std::atomic< size_t > fails
 
bool skipped
 
bool requirement_failed
 

Constructor & Destructor Documentation

◆ test_case() [1/2]

constexpr quickcpplib::_xxx::unit_test::test_case::test_case ( const char *  _name,
const char *  _desc,
void(*)()  _func 
)
inlineconstexpr
126 : name(_name)
127 , desc(_desc)
128 , func(_func)
129 , duration()
130 , passes(0)
131 , fails(0)
132 , skipped(false)
133 , requirement_failed(false)
134 {
135 }
std::chrono::steady_clock::duration duration
Definition unit_test.hpp:122
const char * desc
Definition unit_test.hpp:120
bool requirement_failed
Definition unit_test.hpp:124
const char * name
Definition unit_test.hpp:120
std::atomic< size_t > fails
Definition unit_test.hpp:123
std::atomic< size_t > passes
Definition unit_test.hpp:123
void(* func)()
Definition unit_test.hpp:121
bool skipped
Definition unit_test.hpp:124

◆ test_case() [2/2]

quickcpplib::_xxx::unit_test::test_case::test_case ( test_case &&  o)
inlinenoexcept
137 : name(o.name)
138 , desc(o.desc)
139 , func(o.func)
140 , duration(static_cast<std::chrono::steady_clock::duration &&>(o.duration))
141 , passes(static_cast<size_t>(o.passes))
142 , fails(static_cast<size_t>(o.fails))
143 , skipped(o.skipped)
144 , requirement_failed(o.requirement_failed)
145 {
146 }

Member Function Documentation

◆ operator=()

test_case & quickcpplib::_xxx::unit_test::test_case::operator= ( test_case &&  o)
inlinenoexcept
148 {
149 this->~test_case();
150 new(this) test_case(std::move(o));
151 return *this;
152 }
constexpr test_case(const char *_name, const char *_desc, void(*_func)())
Definition unit_test.hpp:125

Member Data Documentation

◆ name

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

◆ desc

const char * quickcpplib::_xxx::unit_test::test_case::desc

◆ func

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

◆ duration

std::chrono::steady_clock::duration quickcpplib::_xxx::unit_test::test_case::duration

◆ passes

std::atomic<size_t> quickcpplib::_xxx::unit_test::test_case::passes

◆ fails

std::atomic<size_t> quickcpplib::_xxx::unit_test::test_case::fails

◆ skipped

bool quickcpplib::_xxx::unit_test::test_case::skipped

◆ requirement_failed

bool quickcpplib::_xxx::unit_test::test_case::requirement_failed

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