|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <eeschema_test_utils.h>#include <sch_io/kicad_sexpr/sch_io_kicad_sexpr.h>#include <sch_screen.h>#include <sch_sheet.h>#include <sch_shape.h>#include <schematic.h>#include <lib_symbol.h>#include <stroke_params.h>#include <geometry/eda_angle.h>#include <qa_utils/wx_utils/unit_test_utils.h>#include <wx/filename.h>#include <wx/stdpaths.h>Go to the source code of this file.
Classes | |
| struct | SCH_ELLIPSE_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (SchematicClosedEllipse) | |
| BOOST_AUTO_TEST_CASE (SchematicEllipseArc) | |
| BOOST_AUTO_TEST_CASE (SchematicEllipseNegativeRotation) | |
| BOOST_AUTO_TEST_CASE (SchematicEllipseStrokeAndFill) | |
| BOOST_AUTO_TEST_CASE (SymbolEllipse) | |
| BOOST_AUTO_TEST_CASE (SymbolEllipseArc) | |
| BOOST_AUTO_TEST_CASE (SchematicEllipseArcStartEqualsEnd) | |
| BOOST_AUTO_TEST_CASE (SymbolEllipseWithFill) | |
| BOOST_AUTO_TEST_CASE (SchematicEllipseMinimumRadii) | |
| BOOST_AUTO_TEST_CASE (SchematicEllipseAllFieldsPreserved) | |
| Verify that every ellipse field survives a save/load roundtrip. | |
| BOOST_AUTO_TEST_CASE (SchematicEllipseArcAllFieldsPreserved) | |
| Verify that every ellipse arc field survives a save/load roundtrip. | |
| BOOST_AUTO_TEST_CASE | ( | SchematicClosedEllipse | ) |
Definition at line 127 of file test_sch_ellipse_roundtrip.cpp.
References EDA_ANGLE::AsDegrees(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), DEGREES_T, ELLIPSE, EDA_SHAPE::GetEllipseCenter(), EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), LAYER_NOTES, SOLID, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | SchematicEllipseAllFieldsPreserved | ) |
Verify that every ellipse field survives a save/load roundtrip.
Covers the parseEllipseBody defaults documentation requirement: center, major_radius, minor_radius, rotation_angle, stroke, fill, uuid.
Definition at line 348 of file test_sch_ellipse_roundtrip.cpp.
References EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), DEGREES_T, DOT, ELLIPSE, EDA_SHAPE::GetEllipseCenter(), EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), EDA_SHAPE::GetFillMode(), STROKE_PARAMS::GetLineStyle(), SCH_SHAPE::GetStroke(), STROKE_PARAMS::GetWidth(), LAYER_NOTES, NO_FILL, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | SchematicEllipseArc | ) |
Definition at line 147 of file test_sch_ellipse_roundtrip.cpp.
References EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), DEGREES_T, ELLIPSE_ARC, EDA_SHAPE::GetEllipseEndAngle(), EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), EDA_SHAPE::GetEllipseStartAngle(), LAYER_NOTES, and SOLID.
| BOOST_AUTO_TEST_CASE | ( | SchematicEllipseArcAllFieldsPreserved | ) |
Verify that every ellipse arc field survives a save/load roundtrip.
Covers: center, major_radius, minor_radius, rotation_angle, start_angle, end_angle, stroke.
Definition at line 377 of file test_sch_ellipse_roundtrip.cpp.
References EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), DASHDOT, DEGREES_T, ELLIPSE_ARC, EDA_SHAPE::GetEllipseCenter(), EDA_SHAPE::GetEllipseEndAngle(), EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), EDA_SHAPE::GetEllipseStartAngle(), STROKE_PARAMS::GetLineStyle(), SCH_SHAPE::GetStroke(), STROKE_PARAMS::GetWidth(), LAYER_NOTES, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | SchematicEllipseArcStartEqualsEnd | ) |
Definition at line 275 of file test_sch_ellipse_roundtrip.cpp.
References ANGLE_0, EDA_ANGLE::AsDegrees(), DEGREES_T, ELLIPSE_ARC, EDA_SHAPE::GetEllipseEndAngle(), EDA_SHAPE::GetEllipseStartAngle(), LAYER_NOTES, and SOLID.
| BOOST_AUTO_TEST_CASE | ( | SchematicEllipseMinimumRadii | ) |
Definition at line 326 of file test_sch_ellipse_roundtrip.cpp.
References ANGLE_0, ELLIPSE, EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), LAYER_NOTES, and SOLID.
| BOOST_AUTO_TEST_CASE | ( | SchematicEllipseNegativeRotation | ) |
Definition at line 169 of file test_sch_ellipse_roundtrip.cpp.
References EDA_ANGLE::AsDegrees(), DEGREES_T, ELLIPSE, EDA_SHAPE::GetEllipseRotation(), LAYER_NOTES, and SOLID.
| BOOST_AUTO_TEST_CASE | ( | SchematicEllipseStrokeAndFill | ) |
Definition at line 185 of file test_sch_ellipse_roundtrip.cpp.
References ANGLE_0, BOOST_CHECK_EQUAL(), DASH, ELLIPSE, FILLED_SHAPE, FILLED_WITH_COLOR, EDA_SHAPE::GetFillMode(), STROKE_PARAMS::GetLineStyle(), SCH_SHAPE::GetStroke(), STROKE_PARAMS::GetWidth(), and LAYER_NOTES.
| BOOST_AUTO_TEST_CASE | ( | SymbolEllipse | ) |
Definition at line 204 of file test_sch_ellipse_roundtrip.cpp.
References EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), DEGREES_T, ELLIPSE, EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), LAYER_DEVICE, and SOLID.
| BOOST_AUTO_TEST_CASE | ( | SymbolEllipseArc | ) |
Definition at line 238 of file test_sch_ellipse_roundtrip.cpp.
References EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), DEGREES_T, ELLIPSE_ARC, EDA_SHAPE::GetEllipseEndAngle(), EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), EDA_SHAPE::GetEllipseStartAngle(), LAYER_DEVICE, and SOLID.
| BOOST_AUTO_TEST_CASE | ( | SymbolEllipseWithFill | ) |
Definition at line 294 of file test_sch_ellipse_roundtrip.cpp.
References ANGLE_0, ELLIPSE, FILLED_SHAPE, EDA_SHAPE::GetFillMode(), LAYER_DEVICE, and SOLID.