ZeroErr
Loading...
Searching...
No Matches
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, std::vector< Decorator * > decorators)
 
 ~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.
 
 TestCase (std::string name, std::string file, unsigned line, std::vector< Decorator * > decorators)
 Construct a new Test Case object.
 
 TestCase (std::string name, std::string file, unsigned line, std::function< void(TestContext *)> func, std::vector< Decorator * > decorators)
 Construct a new Test Case object.
 

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
 
std::vector< Decorator * > decorators
 

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,
std::vector< Decorator * >  decorators 
)

◆ ~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: