Elaboradar  0.1

◆ add_method() [3/3]

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

Register a new test method.

Definizione alla linea 607 del file tests.h.

608  {
609  methods.emplace_back(name, test_function);
610  return methods.back();
611  }
std::vector< TestMethod > methods
All registered test methods.
Definition: tests.h:527
std::string name
Name of the test case.
Definition: tests.h:524

Referenzia methods, e name.