Elaboradar  0.1

◆ 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 710 del file tests.h.

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

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