#include <gtest/gtest.h>#include <gmock/gmock.h>#include "interop/model/plot/candle_stick_point.h"#include "interop/model/plot/plot_data.h"#include "interop/model/plot/filter_options.h"#include "src/tests/interop/metrics/inc/error_metrics_test.h"#include "src/tests/interop/metrics/inc/extraction_metrics_test.h"#include "src/tests/interop/logic/inc/empty_plot_test_generator.h"#include "src/tests/interop/logic/inc/collapsed_q_plot_test_generator.h"#include "src/tests/interop/logic/inc/plot_regression_test_generator.h"#include "src/tests/interop/run/info_test.h"Classes | |
| struct | candle_stick_tests |
| class | candle_stick_read_generator |
Typedefs | |
| typedef plot_data< model::plot::candle_stick_point > | candle_stick_plot_data |
Functions | |
| TEST (candle_stick_tests, test_filter_iterator_by_cycle) | |
| TEST_P (candle_stick_tests, plot_data) | |
| std::vector< constants::plot_types > | plot_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_data > | plot_by_cycle_gen |
| const constants::plot_types | candle_stick_types [] |
| collapsed_q_plot_test_generator< candle_stick_plot_data > | collapsed_plot_by_cycle_gen |
| candle_stick_tests::generator_type | plot_candle_stick_generators [] |
| 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) |
Detailed Description
Unit tests for candle stick type plot logic
- Date
- 10/26/16
- Version
- 1.0
- Copyright
- GNU Public License.
Typedef Documentation
Define the plot data
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[] |
Initial value:
Definition: enums.h:341
Definition: enums.h:341
| collapsed_q_plot_test_generator<candle_stick_plot_data> collapsed_plot_by_cycle_gen |
| empty_plot_test_generator<candle_stick_plot_data> plot_by_cycle_gen |
| candle_stick_tests::generator_type plot_candle_stick_generators[] |
Initial value:
= {
}
Definition: generic_fixture.h:100
generator_ptr< T > wrap(abstract_generator< T > *ptr)
Definition: generic_fixture.h:315