plot_candle_stick_test.cpp File Reference

Classes

struct  candle_stick_tests
 
class  candle_stick_read_generator
 

Typedefs

typedef plot_data< model::plot::candle_stick_pointcandle_stick_plot_data
 

Functions

 TEST (candle_stick_tests, test_filter_iterator_by_cycle)
 
 TEST_P (candle_stick_tests, plot_data)
 
std::vector< constants::plot_typesplot_by_cycle_gen_data (candle_stick_types, candle_stick_types+util::length_of(candle_stick_types))
 
 INSTANTIATE_TEST_CASE_P (candle_stick_unit_test, candle_stick_tests, ProxyValuesIn(plot_by_cycle_gen, plot_by_cycle_gen_data))
 
 INSTANTIATE_TEST_CASE_P (collapsed_candle_stick_unit_test, candle_stick_tests, ProxyValuesIn(collapsed_plot_by_cycle_gen, plot_by_cycle_gen_data))
 
 INSTANTIATE_TEST_CASE_P (candle_stick_unit_tests, candle_stick_tests,::testing::ValuesIn(plot_candle_stick_generators))
 
 INSTANTIATE_TEST_CASE_P (plot_by_cycle_regression_test, candle_stick_tests, ProxyValuesIn(by_cycle_regression_test_gen, regression_test_data::instance().files()))
 
 INSTANTIATE_TEST_CASE_P (plot_by_lane_regression_test, candle_stick_tests, ProxyValuesIn(by_lane_regression_test_gen, regression_test_data::instance().files()))
 

Variables

empty_plot_test_generator< candle_stick_plot_dataplot_by_cycle_gen
 
const constants::plot_types candle_stick_types []
 
collapsed_q_plot_test_generator< candle_stick_plot_datacollapsed_plot_by_cycle_gen
 
candle_stick_tests::generator_type plot_candle_stick_generators []
 
plot_regression_test_generator< candle_stick_plot_databy_cycle_regression_test_gen ("plot", constants::ByCyclePlot)
 
plot_regression_test_generator< candle_stick_plot_databy_lane_regression_test_gen ("plot", constants::ByLanePlot)
 

Detailed Description

Unit tests for candle stick type plot logic

Date
10/26/16
Version
1.0

Typedef Documentation

Function Documentation

INSTANTIATE_TEST_CASE_P ( candle_stick_unit_test  ,
candle_stick_tests  ,
ProxyValuesIn(plot_by_cycle_gen, plot_by_cycle_gen_data  
)
INSTANTIATE_TEST_CASE_P ( collapsed_candle_stick_unit_test  ,
candle_stick_tests  ,
ProxyValuesIn(collapsed_plot_by_cycle_gen, plot_by_cycle_gen_data  
)
INSTANTIATE_TEST_CASE_P ( candle_stick_unit_tests  ,
candle_stick_tests  ,
::testing::  ValuesInplot_candle_stick_generators 
)
INSTANTIATE_TEST_CASE_P ( plot_by_cycle_regression_test  ,
candle_stick_tests  ,
ProxyValuesIn(by_cycle_regression_test_gen, regression_test_data::instance().files())   
)
INSTANTIATE_TEST_CASE_P ( plot_by_lane_regression_test  ,
candle_stick_tests  ,
ProxyValuesIn(by_lane_regression_test_gen, regression_test_data::instance().files())   
)
std::vector<constants::plot_types> plot_by_cycle_gen_data ( candle_stick_types  ,
candle_stick_types+util::  length_ofcandle_stick_types 
)
TEST ( candle_stick_tests  ,
test_filter_iterator_by_cycle   
)

Test that the filter iterator works

TEST_P ( candle_stick_tests  ,
plot_data   
)

Test if candle stick plot matchs expected data

Variable Documentation

plot_regression_test_generator<candle_stick_plot_data> by_cycle_regression_test_gen("plot", constants::ByCyclePlot)
plot_regression_test_generator<candle_stick_plot_data> by_lane_regression_test_gen("plot", constants::ByLanePlot)
const constants::plot_types candle_stick_types[]
candle_stick_tests::generator_type plot_candle_stick_generators[]
Initial value:
= {
}
generator_ptr< T > wrap(abstract_generator< T > *ptr)
Definition: generic_fixture.h:315