|
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 <project.h>#include <settings/settings_manager.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 (OutlinePickerSkipsHiddenLayers) | |
| BOOST_AUTO_TEST_CASE (AnchorPickerSkipsHiddenLayers) | |
| BOOST_AUTO_TEST_CASE | ( | AnchorPickerSkipsHiddenLayers | ) |
Definition at line 386 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), LSET::AllLayersMask(), B_SilkS, BOOST_REQUIRE(), F_SilkS, SETTINGS_MANAGER::LoadProject(), EDA_ITEM::m_Uuid, KI_TEST::MM, NearestConstraintAnchor(), SETTINGS_MANAGER::Prj(), BASE_SET::set(), PCB_SHAPE::SetLayer(), BOARD::SetProject(), BOARD::SetVisibleLayers(), and START.
| BOOST_AUTO_TEST_CASE | ( | AngularRejectsZeroLengthSegment | ) |
Definition at line 200 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 259 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 168 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 143 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 91 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 75 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 110 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 61 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 44 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 291 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 312 of file test_constraint_authoring.cpp.
References ARC_ANGLE, FIXED_LENGTH, InitialConstraintValue(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | InitialValueDoesNotMixTypes | ) |
Definition at line 335 of file test_constraint_authoring.cpp.
References ARC_ANGLE, FIXED_LENGTH, InitialConstraintValue(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | InitialValueRemembersLastUsed | ) |
Definition at line 324 of file test_constraint_authoring.cpp.
References FIXED_LENGTH, InitialConstraintValue(), and KI_TEST::MM.
| BOOST_AUTO_TEST_CASE | ( | NearestAnchorExcludesPickedHandleNotCoincident | ) |
Definition at line 229 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 212 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 | ( | OutlinePickerSkipsHiddenLayers | ) |
Definition at line 355 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), LSET::AllLayersMask(), B_SilkS, BOOST_REQUIRE(), F_SilkS, BOARD::IsLayerVisible(), SETTINGS_MANAGER::LoadProject(), EDA_ITEM::m_Uuid, KI_TEST::MM, NearestOutlineShape(), SETTINGS_MANAGER::Prj(), BASE_SET::set(), PCB_SHAPE::SetLayer(), BOARD::SetProject(), and BOARD::SetVisibleLayers().
| BOOST_AUTO_TEST_CASE | ( | WrongSelectionYieldsNoConstraint | ) |
Definition at line 184 of file test_constraint_authoring.cpp.
References KI_TEST::addSegment(), BuildConstraintFromItems(), COINCIDENT, CONCENTRIC, KI_TEST::MM, and PARALLEL.