Elaboradar  0.1

◆ add_method() [2/3]

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

Register a new test method, including documentation.

Definizione alla linea 617 del file tests.h.

618  {
619  methods.emplace_back(name, test_function);
620  methods.back().doc = doc;
621  return methods.back();
622  }
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.