#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "interop/model/plot/bar_point.h"
#include "interop/model/plot/plot_data.h"
#include "interop/model/plot/filter_options.h"
#include "src/tests/interop/logic/inc/empty_plot_test_generator.h"
#include "src/tests/interop/logic/inc/plot_regression_test_generator.h"
Classes | |
struct | bar_plot_tests |
class | bar_write_read_generator |
Typedefs | |
typedef plot_data< bar_point > | bar_plot_data |
Functions | |
TEST_P (bar_plot_tests, plot_data) | |
std::vector< constants::plot_types > | plot_bar_gen_data (bar_types, bar_types+util::length_of(bar_types)) |
INSTANTIATE_TEST_CASE_P (bar_plot_unit_test, bar_plot_tests, ProxyValuesIn(plot_bar_gen, plot_bar_gen_data)) | |
INSTANTIATE_TEST_CASE_P (bar_plot_add_unit_tests, bar_plot_tests,::testing::ValuesIn(plot_bar_generators)) | |
INSTANTIATE_TEST_CASE_P (qscore_histogram_regression_test, bar_plot_tests, ProxyValuesIn(qscore_histogram_regression_test_gen, regression_test_data::instance().files())) | |
INSTANTIATE_TEST_CASE_P (sample_qc_regression_test, bar_plot_tests, ProxyValuesIn(sample_qc_regression_test_gen, regression_test_data::instance().files())) | |
Variables | |
empty_plot_test_generator< bar_plot_data > | plot_bar_gen |
const constants::plot_types | bar_types [] = {constants::QHistogramPlot, constants::SampleQCPlot} |
bar_plot_tests::generator_type | plot_bar_generators [] |
plot_regression_test_generator< bar_plot_data > | qscore_histogram_regression_test_gen ("plot", constants::QHistogramPlot) |
plot_regression_test_generator< bar_plot_data > | sample_qc_regression_test_gen ("plot", constants::QHistogramPlot) |
Detailed Description
Unit tests for bar type plot logic
- Date
- 11/2/16
- Version
- 1.0
- Copyright
- GNU Public License.
Typedef Documentation
typedef plot_data<bar_point> bar_plot_data |
Define the plot data
Function Documentation
INSTANTIATE_TEST_CASE_P | ( | bar_plot_unit_test | , |
bar_plot_tests | , | ||
ProxyValuesIn(plot_bar_gen, plot_bar_gen_data) | |||
) |
INSTANTIATE_TEST_CASE_P | ( | bar_plot_add_unit_tests | , |
bar_plot_tests | , | ||
::testing:: | ValuesInplot_bar_generators | ||
) |
INSTANTIATE_TEST_CASE_P | ( | qscore_histogram_regression_test | , |
bar_plot_tests | , | ||
ProxyValuesIn(qscore_histogram_regression_test_gen, regression_test_data::instance().files()) | |||
) |
INSTANTIATE_TEST_CASE_P | ( | sample_qc_regression_test | , |
bar_plot_tests | , | ||
ProxyValuesIn(sample_qc_regression_test_gen, regression_test_data::instance().files()) | |||
) |
std::vector<constants::plot_types> plot_bar_gen_data | ( | bar_types | , |
bar_types+util:: | length_ofbar_types | ||
) |
TEST_P | ( | bar_plot_tests | , |
plot_data | |||
) |
Test if bar plot matchs expected data
Variable Documentation
const constants::plot_types bar_types[] = {constants::QHistogramPlot, constants::SampleQCPlot} |
empty_plot_test_generator<bar_plot_data> plot_bar_gen |
bar_plot_tests::generator_type plot_bar_generators[] |
Initial value:
= {
}
Definition: generic_fixture.h:100
generator_ptr< T > wrap(abstract_generator< T > *ptr)
Definition: generic_fixture.h:315
plot_regression_test_generator<bar_plot_data> qscore_histogram_regression_test_gen("plot", constants::QHistogramPlot) |
plot_regression_test_generator<bar_plot_data> sample_qc_regression_test_gen("plot", constants::QHistogramPlot) |