KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_sch_ellipse_roundtrip.cpp File Reference
#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.
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/11]

◆ BOOST_AUTO_TEST_CASE() [2/11]

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() [3/11]

◆ BOOST_AUTO_TEST_CASE() [4/11]

BOOST_AUTO_TEST_CASE ( SchematicEllipseArcAllFieldsPreserved )

◆ BOOST_AUTO_TEST_CASE() [5/11]

BOOST_AUTO_TEST_CASE ( SchematicEllipseArcStartEqualsEnd )

◆ BOOST_AUTO_TEST_CASE() [6/11]

BOOST_AUTO_TEST_CASE ( SchematicEllipseMinimumRadii )

◆ BOOST_AUTO_TEST_CASE() [7/11]

BOOST_AUTO_TEST_CASE ( SchematicEllipseNegativeRotation )

◆ BOOST_AUTO_TEST_CASE() [8/11]

◆ BOOST_AUTO_TEST_CASE() [9/11]

◆ BOOST_AUTO_TEST_CASE() [10/11]

◆ BOOST_AUTO_TEST_CASE() [11/11]

BOOST_AUTO_TEST_CASE ( SymbolEllipseWithFill )