#include <gtest/gtest.h>
#include "interop/util/math.h"
#include "interop/model/run_metrics.h"
#include "src/tests/interop/metrics/inc/corrected_intensity_metrics_test.h"
#include "src/tests/interop/inc/generic_fixture.h"
#include "src/tests/interop/inc/proxy_parameter_generator.h"
#include "src/tests/interop/metrics/inc/metric_generator.h"
Classes | |
struct | corrected_intensity_metrics_tests |
Typedefs | |
typedef metric_set< corrected_intensity_metric > | corrected_intensity_metric_set |
Functions | |
INSTANTIATE_TEST_CASE_P (corrected_intensity_metric_unit_test, corrected_intensity_metrics_tests,::testing::ValuesIn(corrected_intensity_unit_test_generators)) | |
TEST_P (corrected_intensity_metrics_tests, test_metric_io_fidelity) | |
TEST (corrected_intensity_metrics_test, test_percent_base_nan) | |
INSTANTIATE_TEST_CASE_P (corrected_intensity_metric_regression_test, corrected_intensity_metrics_tests, ProxyValuesIn(corrected_intensity_regression_gen, regression_test_data::instance().files())) | |
Detailed Description
Unit tests for the corrected intensity metrics
- Date
- 8/7/2015
- Version
- 1.0
- Copyright
- GNU Public License.
Typedef Documentation
Function Documentation
INSTANTIATE_TEST_CASE_P | ( | corrected_intensity_metric_unit_test | , |
corrected_intensity_metrics_tests | , | ||
::testing:: | ValuesIncorrected_intensity_unit_test_generators | ||
) |
INSTANTIATE_TEST_CASE_P | ( | corrected_intensity_metric_regression_test | , |
corrected_intensity_metrics_tests | , | ||
ProxyValuesIn(corrected_intensity_regression_gen, regression_test_data::instance().files()) | |||
) |
This method populates the regression test with run folders specified on the command line. The run folders are contained in the method files
within a singleton class called regression_test_data
. This is populated in the unit_tests.cpp
file.
The ProxyValuesIn
function is a hack in GTest that allows the population of the files to be deferred.
TEST | ( | corrected_intensity_metrics_test | , |
test_percent_base_nan | |||
) |
TEST_P | ( | corrected_intensity_metrics_tests | , |
test_metric_io_fidelity | |||
) |
Variable Documentation
regression_test_metric_generator<corrected_intensity_metric_set> corrected_intensity_regression_gen |
corrected_intensity_metrics_tests::generator_type corrected_intensity_unit_test_generators[] |
Initial value:
= {
}
Definition: metric_generator.h:17
Definition: metric_generator.h:29
generator_ptr< T > wrap(abstract_generator< T > *ptr)
Definition: generic_fixture.h:315
Definition: metric_generator.h:25
Definition: metric_generator.h:21
This array contains a set of fixtures used to generate data for all TEST_P tests labeled corrected_intensity_metrics_tests.
This used the parameter based method in GTest. The genertic_test_fixture will call GetParam to use each fixture to populate the expected and actual metric_set.