libept
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ept::tests::TestRegistry Struct Reference

Test registry. More...

#include <tests.h>

Public Member Functions

void register_test_case (TestCase &test_case)
 Register a new test case. More...
 
std::vector< TestCaseResultrun_tests (TestController &controller)
 Run all the registered tests using the given controller. More...
 

Static Public Member Functions

static TestRegistryget ()
 Get the singleton instance of TestRegistry. More...
 

Public Attributes

std::vector< TestCase * > entries
 All known test cases. More...
 

Detailed Description

Test registry.

It collects information about all known test cases and takes care of running them.

Member Function Documentation

◆ get()

TestRegistry & ept::tests::TestRegistry::get ( )
static

Get the singleton instance of TestRegistry.

Referenced by main(), and ept::tests::TestCase::TestCase().

◆ register_test_case()

void ept::tests::TestRegistry::register_test_case ( TestCase test_case)

Register a new test case.

No memory management is done: test_case needs to exist for the whole lifetime of TestRegistry.

Referenced by ept::tests::TestCase::TestCase().

◆ run_tests()

std::vector< TestCaseResult > ept::tests::TestRegistry::run_tests ( TestController controller)

Run all the registered tests using the given controller.

References res.

Member Data Documentation

◆ entries

std::vector<TestCase*> ept::tests::TestRegistry::entries

All known test cases.


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