|
KiCad PCB EDA Suite
|
Tests SelectShapeAutoConstraints, the decision logic behind draw time auto constraints. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <memory>#include <vector>#include <board.h>#include <pcb_shape.h>#include <constraints/pcb_constraint.h>#include <constraints/constraint_builder.h>#include "constraint_test_utils.h"Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (EndpointBindsCoincident) | |
| BOOST_AUTO_TEST_CASE (MidpointUpgrade) | |
| BOOST_AUTO_TEST_CASE (PointOnLineFallback) | |
| BOOST_AUTO_TEST_CASE (TangentWithinThreshold) | |
| BOOST_AUTO_TEST_CASE (TangentRejectedBeyondThreshold) | |
| BOOST_AUTO_TEST_CASE (SegmentsNeverTangent) | |
| BOOST_AUTO_TEST_CASE (CorridorBindsNearMiss) | |
| BOOST_AUTO_TEST_CASE (CorridorIgnoresFarMiss) | |
| BOOST_AUTO_TEST_CASE (CorridorExcludesDrawnEndpoints) | |
| BOOST_AUTO_TEST_CASE (AxisAlignedBindsInConstrainedMode) | |
| BOOST_AUTO_TEST_CASE (CentreCascade) | |
| BOOST_AUTO_TEST_CASE (ChordAuthorsSingleTangent) | |
| BOOST_AUTO_TEST_CASE (DuplicateNotReauthored) | |
Tests SelectShapeAutoConstraints, the decision logic behind draw time auto constraints.
Definition in file test_constraint_auto.cpp.
| BOOST_AUTO_TEST_CASE | ( | AxisAlignedBindsInConstrainedMode | ) |
Definition at line 232 of file test_constraint_auto.cpp.
References HORIZONTAL, KI_TEST::MM, SelectShapeAutoConstraints(), and VERTICAL.
| BOOST_AUTO_TEST_CASE | ( | CentreCascade | ) |
Definition at line 258 of file test_constraint_auto.cpp.
References KI_TEST::addCircle(), KI_TEST::addSegment(), CENTER, circle(), COINCIDENT, CONCENTRIC, KI_TEST::MM, POINT_ON_LINE, SelectShapeAutoConstraints(), and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | ChordAuthorsSingleTangent | ) |
Definition at line 291 of file test_constraint_auto.cpp.
References KI_TEST::addArc(), BOOST_CHECK_EQUAL(), COINCIDENT, KI_TEST::MM, SelectShapeAutoConstraints(), and TANGENT.
| BOOST_AUTO_TEST_CASE | ( | CorridorBindsNearMiss | ) |
Definition at line 185 of file test_constraint_auto.cpp.
References KI_TEST::addSegment(), END, EDA_ITEM::m_Uuid, KI_TEST::MM, POINT_ON_LINE, SelectShapeAutoConstraints(), and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | CorridorExcludesDrawnEndpoints | ) |
Definition at line 218 of file test_constraint_auto.cpp.
References KI_TEST::addSegment(), KI_TEST::MM, and SelectShapeAutoConstraints().
| BOOST_AUTO_TEST_CASE | ( | CorridorIgnoresFarMiss | ) |
Definition at line 205 of file test_constraint_auto.cpp.
References KI_TEST::addSegment(), KI_TEST::MM, and SelectShapeAutoConstraints().
| BOOST_AUTO_TEST_CASE | ( | DuplicateNotReauthored | ) |
Definition at line 321 of file test_constraint_auto.cpp.
References BOARD::Add(), KI_TEST::addSegment(), COINCIDENT, END, EDA_ITEM::m_Uuid, KI_TEST::MM, SelectShapeAutoConstraints(), and START.
| BOOST_AUTO_TEST_CASE | ( | EndpointBindsCoincident | ) |
Definition at line 79 of file test_constraint_auto.cpp.
References KI_TEST::addSegment(), BOOST_AUTO_TEST_CASE(), COINCIDENT, END, EDA_ITEM::m_Uuid, KI_TEST::MM, SelectShapeAutoConstraints(), and START.
| BOOST_AUTO_TEST_CASE | ( | MidpointUpgrade | ) |
Definition at line 99 of file test_constraint_auto.cpp.
References KI_TEST::addSegment(), EDA_ITEM::m_Uuid, MIDPOINT, KI_TEST::MM, SelectShapeAutoConstraints(), START, and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | PointOnLineFallback | ) |
Definition at line 117 of file test_constraint_auto.cpp.
References KI_TEST::addSegment(), EDA_ITEM::m_Uuid, KI_TEST::MM, POINT_ON_LINE, SelectShapeAutoConstraints(), and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | SegmentsNeverTangent | ) |
Definition at line 171 of file test_constraint_auto.cpp.
References KI_TEST::addSegment(), COINCIDENT, KI_TEST::MM, and SelectShapeAutoConstraints().
| BOOST_AUTO_TEST_CASE | ( | TangentRejectedBeyondThreshold | ) |
Definition at line 156 of file test_constraint_auto.cpp.
References KI_TEST::addSegment(), COINCIDENT, KI_TEST::MM, and SelectShapeAutoConstraints().
| BOOST_AUTO_TEST_CASE | ( | TangentWithinThreshold | ) |
Definition at line 133 of file test_constraint_auto.cpp.
References KI_TEST::addSegment(), COINCIDENT, EDA_ITEM::m_Uuid, KI_TEST::MM, SelectShapeAutoConstraints(), TANGENT, and WHOLE.