KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_easyedapro_import.cpp File Reference

Test suite for import of EasyEDA Pro footprints. More...

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.
 

Detailed Description

Test suite for import of EasyEDA Pro footprints.

Definition in file test_easyedapro_import.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

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

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().