|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <base_units.h>#include <board.h>#include <footprint.h>#include <pcb_shape.h>#include <tools/block_drag_dependents.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (ExactAndToleranceMatches) | |
| BOOST_AUTO_TEST_CASE (ToleranceIsEuclidean) | |
| BOOST_AUTO_TEST_CASE (ArcCandidateFollowsWhole) | |
| BOOST_AUTO_TEST_CASE (FilletedCornerCarriesArcAndStretchesNextSegment) | |
| BOOST_AUTO_TEST_CASE (ClosedChainDoesNotCascadeIntoItself) | |
| BOOST_AUTO_TEST_CASE (LockedArcInTheChainRefuses) | |
| BOOST_AUTO_TEST_CASE (CircleCandidateIsStillSkipped) | |
| BOOST_AUTO_TEST_CASE (DifferentLayerDoesNotMatch) | |
| BOOST_AUTO_TEST_CASE (AmbiguousCandidatesAreNotGuessed) | |
| BOOST_AUTO_TEST_CASE (MutuallyCoincidentClusterFollowsTogether) | |
| BOOST_AUTO_TEST_CASE (MovedEndpointsAreNotDependents) | |
| BOOST_AUTO_TEST_CASE (DependentAppearsOnce) | |
| BOOST_AUTO_TEST_CASE (LockedDependentRejectsUnlessOverridden) | |
| BOOST_AUTO_TEST_CASE (LockedParentOfDependentRejects) | |
| BOOST_AUTO_TEST_CASE (BothEndsOfOneNeighborCanFollow) | |
| BOOST_AUTO_TEST_CASE | ( | AmbiguousCandidatesAreNotGuessed | ) |
Definition at line 289 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK(), BOOST_REQUIRE(), left, makeSegment(), moved, OK, right, and BOARD::SetOutlinesChainingEpsilon().
| BOOST_AUTO_TEST_CASE | ( | ArcCandidateFollowsWhole | ) |
Definition at line 131 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), makeArc(), makeSegment(), moved, OK, result, and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | BothEndsOfOneNeighborCanFollow | ) |
Definition at line 421 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), makeSegment(), and OK.
| BOOST_AUTO_TEST_CASE | ( | CircleCandidateIsStillSkipped | ) |
Definition at line 244 of file test_block_drag_dependents.cpp.
References BOARD::Add(), BlockDragFindDependents(), BOOST_CHECK(), BOOST_REQUIRE(), CIRCLE, circle(), makeSegment(), moved, OK, and result.
| BOOST_AUTO_TEST_CASE | ( | ClosedChainDoesNotCascadeIntoItself | ) |
Definition at line 182 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), makeArc(), makeSegment(), moved, OK, result, and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | DependentAppearsOnce | ) |
Definition at line 353 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), makeSegment(), and OK.
| BOOST_AUTO_TEST_CASE | ( | DifferentLayerDoesNotMatch | ) |
Definition at line 266 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK(), BOOST_REQUIRE(), candidates(), BOARD::Drawings(), Edge_Cuts, F_SilkS, makeSegment(), moved, and OK.
| BOOST_AUTO_TEST_CASE | ( | ExactAndToleranceMatches | ) |
Definition at line 76 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), makeSegment(), moved, OK, result, and BOARD::SetOutlinesChainingEpsilon().
| BOOST_AUTO_TEST_CASE | ( | FilletedCornerCarriesArcAndStretchesNextSegment | ) |
Definition at line 149 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), find, BLOCK_DRAG_ENDPOINT::follow, BLOCK_DRAG_ENDPOINT::isStart, makeArc(), makeSegment(), moved, next(), OK, result, STRETCH, and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | LockedArcInTheChainRefuses | ) |
Definition at line 225 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK(), LOCKED, makeArc(), makeSegment(), moved, result, and BOARD_ITEM::SetLocked().
| BOOST_AUTO_TEST_CASE | ( | LockedDependentRejectsUnlessOverridden | ) |
Definition at line 372 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK(), BOOST_REQUIRE_EQUAL(), LOCKED, locked, makeSegment(), moved, and OK.
| BOOST_AUTO_TEST_CASE | ( | LockedParentOfDependentRejects | ) |
Definition at line 392 of file test_block_drag_dependents.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BlockDragFindDependents(), BOOST_CHECK(), BOOST_REQUIRE_EQUAL(), Edge_Cuts, FOOTPRINT, LOCKED, makeSegment(), moved, OK, SEGMENT, PCB_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), BOARD_ITEM::SetLocked(), and PCB_SHAPE::SetStart().
| BOOST_AUTO_TEST_CASE | ( | MovedEndpointsAreNotDependents | ) |
Definition at line 336 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK(), BOOST_REQUIRE(), makeSegment(), and OK.
| BOOST_AUTO_TEST_CASE | ( | MutuallyCoincidentClusterFollowsTogether | ) |
Definition at line 308 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_REQUIRE_EQUAL(), makeSegment(), moved, and OK.
| BOOST_AUTO_TEST_CASE | ( | ToleranceIsEuclidean | ) |
Definition at line 113 of file test_block_drag_dependents.cpp.
References BlockDragFindDependents(), BOOST_CHECK(), BOOST_REQUIRE(), makeSegment(), moved, OK, result, and BOARD::SetOutlinesChainingEpsilon().