Go to the source code of this file.
Classes | |
class | MainTestFixture |
MainTestFixture is a base class for Catch fixtures for mlpack binding tests. More... | |
Macros | |
#define | BINDING_TEST_FIXTURE(CLASS_NAME) |
Define a test fixture for an mlpack binding test with the name given as CLASS_NAME . More... | |
#define | RUN_BINDING() BINDING_FUNCTION(params, timers) |
Run the binding. More... | |
Implementation of MainTestFixture, the base class for the test fixture for all main classes. This also defines the MAIN_TEST_FIXTURE() convenience macro.
mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.
Definition in file main_test_fixture.hpp.
#define BINDING_TEST_FIXTURE | ( | CLASS_NAME | ) |
Define a test fixture for an mlpack binding test with the name given as CLASS_NAME
.
This fixture has all the same methods as MainTestFixture
and can be used to set input parameters for a binding test. When all the parameters are set, use the RUN_BINDING()
macro to actually run the binding.
Before calling this macro, make sure the BINDING_NAME
macro is defined appropriately. This is generally done simply by including the binding's *_main.cpp
file.
Definition at line 32 of file main_test_fixture.hpp.
#define RUN_BINDING | ( | ) | BINDING_FUNCTION(params, timers) |
Run the binding.
This depends on the BINDING_NAME
macro being defined appropriately. This is generally done simply by including the binding's *_main.cpp
file.
Definition at line 45 of file main_test_fixture.hpp.