Elaboradar 0.1
Caricamento in corso...
Ricerca in corso...
Nessun risultato

◆ add_method() [1/2]

template<typename FIXTURE >
template<typename ... Args>
TestMethod & radarelab::utils::tests::FixtureTestCase< FIXTURE >::add_method ( const std::string &  name,
const std::string &  doc,
std::function< void(FIXTURE &)>  test_function 
)
inline

Register a new test method that takes a reference to the fixture as argument, including documentation.

Definizione alla linea 711 del file tests.h.

712 {
713 return TestCase::add_method(name, doc, [=]() { test_function(*fixture); });
714 }
std::string name
Name of the test case.
Definition: tests.h:525
TestMethod & add_method(const std::string &name)
Register a new test method, with the actual test function to be added later.
Definition: tests.h:598

Referenzia radarelab::utils::tests::TestCase::add_method(), e radarelab::utils::tests::TestCase::name.