|
KiCad PCB EDA Suite
|
Test suite for import of EasyEDA Pro footprints. More...
#include <pcbnew_utils/board_test_utils.h>#include <pcbnew_utils/board_file_utils.h>#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew/pcb_io/easyedapro/pcb_io_easyedapro.h>#include <pcbnew/pcb_io/easyedapro/pcb_io_easyedapro_parser.h>#include <board.h>#include <footprint.h>#include <pad.h>#include <pcb_shape.h>Go to the source code of this file.
Classes | |
| struct | EASYEDAPRO_IMPORT_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (PolygonPadImport) | |
| Test importing a footprint with POLYGON-shaped pads (issue #20348) EasyEDA Pro uses POLYGON shape type for complex custom pad shapes, which was previously not handled. | |
| BOOST_AUTO_TEST_CASE (ParsePolyDegenerateClosedPathSkipped) | |
| A closed polyline that collapses to two points must be skipped, not asserted on. | |
Test suite for import of EasyEDA Pro footprints.
Definition in file test_easyedapro_import.cpp.
| BOOST_AUTO_TEST_CASE | ( | ParsePolyDegenerateClosedPathSkipped | ) |
A closed polyline that collapses to two points must be skipped, not asserted on.
Such degenerate outlines occur in real projects (issue #22239) and would otherwise abort the import in a debug build.
Definition at line 93 of file test_easyedapro_import.cpp.
References PCB_IO_EASYEDAPRO_PARSER::ParsePoly().
| BOOST_AUTO_TEST_CASE | ( | PolygonPadImport | ) |
Test importing a footprint with POLYGON-shaped pads (issue #20348) EasyEDA Pro uses POLYGON shape type for complex custom pad shapes, which was previously not handled.
Definition at line 54 of file test_easyedapro_import.cpp.
References PADSTACK::ALL_LAYERS, BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CUSTOM, FOOTPRINT::FindPadByNumber(), KI_TEST::GetPcbnewTestDataDir(), PAD::GetPrimitives(), PAD::GetShape(), and FOOTPRINT::Pads().