|
KiCad PCB EDA Suite
|
#include <map>#include <memory>#include <vector>#include <qa_utils/wx_utils/unit_test_utils.h>#include <tool/tool_manager.h>#include <pcbnew_utils/board_test_utils.h>#include <board.h>#include <board_commit.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 (BuildParallelFromTwoSegments) | |
| BOOST_AUTO_TEST_CASE (BuildFixedLengthMeasuresGeometry) | |
| BOOST_AUTO_TEST_CASE (BuildAngularMeasuresAngle) | |
| BOOST_AUTO_TEST_CASE (BuildAngularIsUndirectedCorner) | |
| BOOST_AUTO_TEST_CASE (BuildAngularObtuseCornerInvariant) | |
| BOOST_AUTO_TEST_CASE (BuildAngularDomainEndpoints) | |
| BOOST_AUTO_TEST_CASE (BuildAngularDisconnectedLines) | |
| BOOST_AUTO_TEST_CASE (WrongSelectionYieldsNoConstraint) | |
| BOOST_AUTO_TEST_CASE (AngularRejectsZeroLengthSegment) | |
| BOOST_AUTO_TEST_CASE (NearestAnchorSnapsToEndpoint) | |
| BOOST_AUTO_TEST_CASE (NearestAnchorExcludesPickedHandleNotCoincident) | |
| BOOST_AUTO_TEST_CASE (ApplyIsOneUndoStep) | |
| BOOST_AUTO_TEST_CASE (BuildRadialFromArcsAndEllipses) | |
| BOOST_AUTO_TEST_CASE (InitialValueDefaultsToMeasured) | |
| BOOST_AUTO_TEST_CASE (InitialValueRemembersLastUsed) | |
| BOOST_AUTO_TEST_CASE (InitialValueDoesNotMixTypes) | |
| BOOST_AUTO_TEST_CASE | ( | AngularRejectsZeroLengthSegment | ) |
Definition at line 198 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), ANGULAR_DIMENSION, BuildConstraintFromItems(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | ApplyIsOneUndoStep | ) |
Definition at line 257 of file test_constraint_authoring.cpp.
References COMMIT::Add(), KI_TEST::addSegment(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BuildConstraintFromItems(), BOARD::Constraints(), KI_TEST::MM, PARALLEL, BOARD_COMMIT::Push(), TOOL_MANAGER::RegisterTool(), COMMIT::Remove(), and TOOL_MANAGER::SetEnvironment().
| BOOST_AUTO_TEST_CASE | ( | BuildAngularDisconnectedLines | ) |
Definition at line 166 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), ANGULAR_DIMENSION, BOOST_REQUIRE(), BuildConstraintFromItems(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | BuildAngularDomainEndpoints | ) |
Definition at line 141 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), ANGULAR_DIMENSION, BOOST_REQUIRE(), BuildConstraintFromItems(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | BuildAngularIsUndirectedCorner | ) |
Definition at line 89 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), ANGULAR_DIMENSION, BOOST_REQUIRE(), BuildConstraintFromItems(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | BuildAngularMeasuresAngle | ) |
Definition at line 73 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), ANGULAR_DIMENSION, BOOST_REQUIRE(), BuildConstraintFromItems(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | BuildAngularObtuseCornerInvariant | ) |
Definition at line 108 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), ANGULAR_DIMENSION, BOOST_REQUIRE(), BuildConstraintFromItems(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | BuildFixedLengthMeasuresGeometry | ) |
Definition at line 59 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), BOOST_REQUIRE(), BuildConstraintFromItems(), FIXED_LENGTH, and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | BuildParallelFromTwoSegments | ) |
Definition at line 42 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), BuildConstraintFromItems(), EDA_ITEM::m_Uuid, KI_TEST::MM, PARALLEL, and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | BuildRadialFromArcsAndEllipses | ) |
Definition at line 289 of file test_constraint_authoring.cpp.
References KI_TEST::addArc(), KI_TEST::addCircle(), KI_TEST::addEllipse(), BuildConstraintFromItems(), circle(), CONCENTRIC, DEGREES_T, EQUAL_RADIUS, FIXED_RADIUS, and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | InitialValueDefaultsToMeasured | ) |
Definition at line 310 of file test_constraint_authoring.cpp.
References ARC_ANGLE, FIXED_LENGTH, InitialConstraintValue(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | InitialValueDoesNotMixTypes | ) |
Definition at line 333 of file test_constraint_authoring.cpp.
References ARC_ANGLE, FIXED_LENGTH, InitialConstraintValue(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | InitialValueRemembersLastUsed | ) |
Definition at line 322 of file test_constraint_authoring.cpp.
References FIXED_LENGTH, InitialConstraintValue(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | NearestAnchorExcludesPickedHandleNotCoincident | ) |
Definition at line 227 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), BOOST_REQUIRE(), ConstraintAnchorPosition(), EDA_ITEM::m_Uuid, KI_TEST::MM, and NearestConstraintAnchor().
| BOOST_AUTO_TEST_CASE | ( | NearestAnchorSnapsToEndpoint | ) |
Definition at line 210 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), BOOST_REQUIRE(), END, EDA_ITEM::m_Uuid, KI_TEST::MM, and NearestConstraintAnchor().
| BOOST_AUTO_TEST_CASE | ( | WrongSelectionYieldsNoConstraint | ) |
Definition at line 182 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), BuildConstraintFromItems(), COINCIDENT, CONCENTRIC, KI_TEST::MM, and PARALLEL.