|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <diff_merge/kicad_diff_types.h>#include <base_units.h>#include <eda_units.h>#include <geometry/eda_angle.h>Go to the source code of this file.
Macros | |
| #define | CHECK_WX_EQ(actual, expected) |
Functions | |
| BOOST_AUTO_TEST_CASE (NoneRendersAsAngleBracketed) | |
| BOOST_AUTO_TEST_CASE (BoolRendersAsTrueFalse) | |
| BOOST_AUTO_TEST_CASE (IntRendersAsDecimalDigits) | |
| BOOST_AUTO_TEST_CASE (Int64RendersAsDecimalDigits) | |
| BOOST_AUTO_TEST_CASE (DoubleRendersWithG) | |
| BOOST_AUTO_TEST_CASE (StringRoundTrips) | |
| BOOST_AUTO_TEST_CASE (Vector2IRendersAsXyTuple) | |
| BOOST_AUTO_TEST_CASE (Box2IRendersSurfacely) | |
| BOOST_AUTO_TEST_CASE (ColorRendersAsCssString) | |
| BOOST_AUTO_TEST_CASE (KiidRendersAsUuid) | |
| BOOST_AUTO_TEST_CASE (EnumRendersLabelWhenPresent) | |
| BOOST_AUTO_TEST_CASE (EnumRendersNumericWhenLabelEmpty) | |
| BOOST_AUTO_TEST_CASE (LayerRendersCanonicalName) | |
| BOOST_AUTO_TEST_CASE (DistanceIntRendersInMillimeters) | |
| BOOST_AUTO_TEST_CASE (CoordVectorRendersInMillimeters) | |
| BOOST_AUTO_TEST_CASE (AngleDoubleRendersInDegrees) | |
| BOOST_AUTO_TEST_CASE (PlainIntStaysRawUnderUnitOverload) | |
| BOOST_AUTO_TEST_CASE (DistanceIntHonorsSchematicScale) | |
| BOOST_AUTO_TEST_CASE (PolygonSetRendersCounts) | |
| BOOST_AUTO_TEST_CASE (EmptyPolygonSetRendersZeroCounts) | |
Definition at line 39 of file test_diff_value_display.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
| BOOST_AUTO_TEST_CASE | ( | AngleDoubleRendersInDegrees | ) |
Definition at line 193 of file test_diff_value_display.cpp.
References KICAD_DIFF::ANGLE, CHECK_WX_EQ, DEGREES_T, KICAD_DIFF::DIFF_VALUE::FromDouble(), EDA_UNIT_UTILS::UI::MessageTextFromValue(), MM, pcbIUScale, KICAD_DIFF::DIFF_VALUE::ToDisplayString(), and KICAD_DIFF::DIFF_VALUE::WithDisplayHint().
| BOOST_AUTO_TEST_CASE | ( | BoolRendersAsTrueFalse | ) |
Definition at line 54 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, and KICAD_DIFF::DIFF_VALUE::FromBool().
| BOOST_AUTO_TEST_CASE | ( | Box2IRendersSurfacely | ) |
Definition at line 108 of file test_diff_value_display.cpp.
References KICAD_DIFF::DIFF_VALUE::AsBox2I(), BOOST_CHECK_EQUAL(), KICAD_DIFF::DIFF_VALUE::BOX2I, KICAD_DIFF::DIFF_VALUE::FromBox2I(), BOX2< Vec >::GetHeight(), KICAD_DIFF::DIFF_VALUE::GetType(), BOX2< Vec >::GetWidth(), BOX2< Vec >::GetX(), and BOX2< Vec >::GetY().
| BOOST_AUTO_TEST_CASE | ( | ColorRendersAsCssString | ) |
Definition at line 126 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, KICAD_DIFF::DIFF_VALUE::FromColor(), and KIGFX::COLOR4D::ToCSSString().
| BOOST_AUTO_TEST_CASE | ( | CoordVectorRendersInMillimeters | ) |
Definition at line 183 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, KICAD_DIFF::COORD, KICAD_DIFF::DIFF_VALUE::FromVector2I(), MM, pcbIUScale, KICAD_DIFF::DIFF_VALUE::ToDisplayString(), and KICAD_DIFF::DIFF_VALUE::WithDisplayHint().
| BOOST_AUTO_TEST_CASE | ( | DistanceIntHonorsSchematicScale | ) |
Definition at line 214 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, KICAD_DIFF::DISTANCE, KICAD_DIFF::DIFF_VALUE::FromInt(), MM, schIUScale, KICAD_DIFF::DIFF_VALUE::ToDisplayString(), and KICAD_DIFF::DIFF_VALUE::WithDisplayHint().
| BOOST_AUTO_TEST_CASE | ( | DistanceIntRendersInMillimeters | ) |
Definition at line 171 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, KICAD_DIFF::DISTANCE, KICAD_DIFF::DIFF_VALUE::FromInt(), MM, pcbIUScale, KICAD_DIFF::DIFF_VALUE::ToDisplayString(), and KICAD_DIFF::DIFF_VALUE::WithDisplayHint().
| BOOST_AUTO_TEST_CASE | ( | DoubleRendersWithG | ) |
Definition at line 76 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, and KICAD_DIFF::DIFF_VALUE::FromDouble().
| BOOST_AUTO_TEST_CASE | ( | EmptyPolygonSetRendersZeroCounts | ) |
Definition at line 240 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, and KICAD_DIFF::DIFF_VALUE::FromPolygonSet().
| BOOST_AUTO_TEST_CASE | ( | EnumRendersLabelWhenPresent | ) |
Definition at line 149 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, and KICAD_DIFF::DIFF_VALUE::FromEnum().
| BOOST_AUTO_TEST_CASE | ( | EnumRendersNumericWhenLabelEmpty | ) |
Definition at line 155 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, and KICAD_DIFF::DIFF_VALUE::FromEnum().
| BOOST_AUTO_TEST_CASE | ( | Int64RendersAsDecimalDigits | ) |
Definition at line 69 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, and KICAD_DIFF::DIFF_VALUE::FromInt64().
| BOOST_AUTO_TEST_CASE | ( | IntRendersAsDecimalDigits | ) |
Definition at line 61 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, and KICAD_DIFF::DIFF_VALUE::FromInt().
| BOOST_AUTO_TEST_CASE | ( | KiidRendersAsUuid | ) |
Definition at line 140 of file test_diff_value_display.cpp.
References KICAD_DIFF::DIFF_VALUE::FromKiid().
| BOOST_AUTO_TEST_CASE | ( | LayerRendersCanonicalName | ) |
Definition at line 163 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, F_Cu, and KICAD_DIFF::DIFF_VALUE::FromLayer().
| BOOST_AUTO_TEST_CASE | ( | NoneRendersAsAngleBracketed | ) |
Definition at line 47 of file test_diff_value_display.cpp.
References BOOST_AUTO_TEST_CASE(), CHECK_WX_EQ, and KICAD_DIFF::DIFF_VALUE::ToDisplayString().
| BOOST_AUTO_TEST_CASE | ( | PlainIntStaysRawUnderUnitOverload | ) |
Definition at line 204 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, KICAD_DIFF::DIFF_VALUE::FromInt(), MM, pcbIUScale, and KICAD_DIFF::DIFF_VALUE::ToDisplayString().
| BOOST_AUTO_TEST_CASE | ( | PolygonSetRendersCounts | ) |
Definition at line 225 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, and KICAD_DIFF::DIFF_VALUE::FromPolygonSet().
| BOOST_AUTO_TEST_CASE | ( | StringRoundTrips | ) |
Definition at line 83 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, and KICAD_DIFF::DIFF_VALUE::FromString().
| BOOST_AUTO_TEST_CASE | ( | Vector2IRendersAsXyTuple | ) |
Definition at line 91 of file test_diff_value_display.cpp.
References CHECK_WX_EQ, and KICAD_DIFF::DIFF_VALUE::FromVector2I().