|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <board.h>#include <footprint.h>#include <pcb_shape.h>#include <base_units.h>#include <numeric>#include <random>Go to the source code of this file.
Classes | |
| struct | COURTYARD_SEGMENT |
| struct | COURTYARD_ARC |
Functions | |
| static VECTOR2I | mmPoint (double aX, double aY) |
| static void | buildShapes (FOOTPRINT &aFootprint, const std::vector< COURTYARD_SEGMENT > &aSegments, const std::vector< COURTYARD_ARC > &aArcs, const std::vector< size_t > &aOrder) |
| static void | checkCourtyardCloses (const std::vector< COURTYARD_SEGMENT > &aSegments, const std::vector< COURTYARD_ARC > &aArcs, const std::vector< size_t > &aOrder) |
| BOOST_AUTO_TEST_CASE (ClosesFromEverySeedShape) | |
| The courtyard closes whatever order its shapes arrive in. | |
| BOOST_AUTO_TEST_CASE (ClosesInArbitraryShapeOrder) | |
Variables | |
| static const std::vector< COURTYARD_SEGMENT > | l5Segments |
| static const std::vector< COURTYARD_ARC > | l5Arcs |
| BOOST_AUTO_TEST_CASE | ( | ClosesFromEverySeedShape | ) |
The courtyard closes whatever order its shapes arrive in.
Shape order used to track allocation addresses, so ticket 2491 saw the error come and go.
Definition at line 142 of file test_footprint_courtyard_chaining.cpp.
References BOOST_TEST_CONTEXT(), checkCourtyardCloses(), l5Arcs, and l5Segments.
| BOOST_AUTO_TEST_CASE | ( | ClosesInArbitraryShapeOrder | ) |
Definition at line 160 of file test_footprint_courtyard_chaining.cpp.
References BOOST_TEST_CONTEXT(), checkCourtyardCloses(), l5Arcs, l5Segments, and rng.
|
static |
Definition at line 92 of file test_footprint_courtyard_chaining.cpp.
References FOOTPRINT::Add(), ARC, B_CrtYd, mmPoint(), pcbIUScale, SEGMENT, PCB_SHAPE::SetArcGeometry(), PCB_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), PCB_SHAPE::SetStart(), and PCB_SHAPE::SetWidth().
Referenced by checkCourtyardCloses().
|
static |
Definition at line 122 of file test_footprint_courtyard_chaining.cpp.
References B_CrtYd, BOOST_CHECK_EQUAL(), FOOTPRINT::BuildCourtyardCaches(), buildShapes(), FOOTPRINT::GetCourtyard(), EDA_ITEM::GetFlags(), MALFORMED_COURTYARDS, and SHAPE_POLY_SET::OutlineCount().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 86 of file test_footprint_courtyard_chaining.cpp.
References pcbIUScale.
Referenced by buildShapes().
|
static |
Definition at line 74 of file test_footprint_courtyard_chaining.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 58 of file test_footprint_courtyard_chaining.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().