Elaboradar 0.1
Caricamento in corso...
Ricerca in corso...
Nessun risultato
Template per la classe radarelab::utils::tests::FixtureTestCase< FIXTURE >

Test case that includes a fixture. Continua...

#include <tests.h>

Diagramma delle classi per radarelab::utils::tests::FixtureTestCase< FIXTURE >
radarelab::utils::tests::TestCase

Membri pubblici

void setup () override
 Set up the test case before it is run.
 
void teardown () override
 Clean up after the test case is run.
 
void method_setup (TestMethodResult &mr) override
 Set up before the test method is run.
 
void method_teardown (TestMethodResult &mr) override
 Clean up after the test method is run.
 
template<typename ... Args>
TestMethodadd_method (const std::string &name, std::function< void(FIXTURE &)> test_function)
 Register a new test method that takes a reference to the fixture as argument.
 
template<typename ... Args>
TestMethodadd_method (const std::string &name, const std::string &doc, std::function< void(FIXTURE &)> test_function)
 Register a new test method that takes a reference to the fixture as argument, including documentation.
 
- Membri pubblici ereditati da radarelab::utils::tests::TestCase
void register_tests_once ()
 Idempotent wrapper for register_tests()
 
virtual void register_tests ()=0
 This will be called before running the test case, to populate it with its test methods.
 
virtual TestCaseResult run_tests (TestController &controller)
 Call setup(), run all the tests that have been registered, then call teardown().
 
virtual TestMethodResult run_test (TestController &controller, TestMethod &method)
 Run a test method.
 
TestMethodadd_method (const std::string &name)
 Register a new test method, with the actual test function to be added later.
 
template<typename ... Args>
TestMethodadd_method (const std::string &name, std::function< void()> test_function)
 Register a new test method.
 
template<typename ... Args>
TestMethodadd_method (const std::string &name, const std::string &doc, std::function< void()> test_function)
 Register a new test method, including documentation.
 

Altri membri ereditati

- Attributi pubblici ereditati da radarelab::utils::tests::TestCase
std::string name
 Name of the test case.
 
std::vector< TestMethodmethods
 All registered test methods.
 
bool tests_registered = false
 Set to true the first time register_tests_once is run.
 

Descrizione dettagliata

template<typename FIXTURE>
class radarelab::utils::tests::FixtureTestCase< FIXTURE >

Test case that includes a fixture.

Definizione alla linea 656 del file tests.h.


La documentazione per questa classe รจ stata generata a partire dal seguente file: