MCPcopy Create free account
hub / github.com/comaps/comaps / UNIT_TEST

Function UNIT_TEST

libs/map/map_tests/chart_generator_tests.cpp:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55} // namespace
56
57UNIT_TEST(ScaleChartData_Test)
58{
59 vector<double> chartData = {0.0, -1.0, 2.0};
60 maps::ScaleChartData(chartData, 2.0 /* scale */);
61 vector<double> const expectedChartData = {0.0, -2.0, 4.0};
62 TEST_EQUAL(chartData, expectedChartData, ());
63}
64
65UNIT_TEST(ShiftChartData_Test)
66{

Callers

nothing calls this directly

Calls 13

ScaleChartDataFunction · 0.85
ShiftChartDataFunction · 0.85
ReflectChartDataFunction · 0.85
TESTFunction · 0.85
NormalizeChartDataFunction · 0.85
GenerateYAxisChartDataFunction · 0.85
GenerateChartByPointsFunction · 0.85
TestAngleColorsFunction · 0.85
IsColorFunction · 0.85
GenerateChartFunction · 0.85
AlmostEqualAbsFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected