ZeroErr
zeroerr::SubCase Struct Reference

SubCase is a class that holds the subcase information. More...

#include <unittest.h>

Inheritance diagram for zeroerr::SubCase:
Collaboration diagram for zeroerr::SubCase:

Public Member Functions

 SubCase (std::string name, std::string file, unsigned line, TestContext *context)
 
 ~SubCase ()=default
 
void operator<< (std::function< void(TestContext *)> op)
 
- Public Member Functions inherited from zeroerr::TestCase
bool operator< (const TestCase &rhs) const
 Compare the test cases. More...
 
 TestCase (std::string name, std::string file, unsigned line)
 Construct a new Test Case object. More...
 
 TestCase (std::string name, std::string file, unsigned line, std::function< void(TestContext *)> func)
 Construct a new Test Case object. More...
 

Public Attributes

TestContextcontext
 
- Public Attributes inherited from zeroerr::TestCase
std::string name
 
std::string file
 
unsigned line
 
std::function< void(TestContext *)> func
 
std::vector< TestCase * > subcases
 

Detailed Description

SubCase is a class that holds the subcase information.

Constructor & Destructor Documentation

◆ SubCase()

zeroerr::SubCase::SubCase ( std::string  name,
std::string  file,
unsigned  line,
TestContext context 
)

◆ ~SubCase()

zeroerr::SubCase::~SubCase ( )
default

Member Function Documentation

◆ operator<<()

void zeroerr::SubCase::operator<< ( std::function< void(TestContext *)>  op)

Member Data Documentation

◆ context

TestContext* zeroerr::SubCase::context

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