corrected_intensity_metrics_test.cpp File Reference

Classes

struct  corrected_intensity_metrics_tests
 

Typedefs

typedef metric_set< corrected_intensity_metriccorrected_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()))
 

Variables

corrected_intensity_metrics_tests::generator_type corrected_intensity_unit_test_generators []
 
regression_test_metric_generator< corrected_intensity_metric_setcorrected_intensity_regression_gen
 

Detailed Description

Unit tests for the corrected intensity metrics

See also
https://github.com/google/googletest/blob/master/googletest/docs/AdvancedGuide.md#how-to-write-value-parameterized-tests
Date
8/7/2015
Version
1.0

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

corrected_intensity_metrics_tests::generator_type corrected_intensity_unit_test_generators[]
Initial value:

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.