|
KiCad PCB EDA Suite
|
Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_NO_MAIN |
Functions | |
| void | TEST_CLEAR_ANCHORS (GRID_HELPER &helper) |
| BOOST_AUTO_TEST_CASE (DefaultConstructor) | |
| BOOST_AUTO_TEST_CASE (SnapResultGuideUpdateClearsStaleDimensionBrackets) | |
| BOOST_AUTO_TEST_CASE (SnapFrameSelectsPayloadForAcceptedId) | |
| BOOST_AUTO_TEST_CASE (AlignBasic) | |
| BOOST_AUTO_TEST_CASE (AlignGridWithCustomGrid) | |
| BOOST_AUTO_TEST_CASE (AlignWithOriginOffset) | |
| BOOST_AUTO_TEST_CASE (AlignWithAuxiliaryAxes) | |
| BOOST_AUTO_TEST_CASE (GridSnappingDisabled) | |
| BOOST_AUTO_TEST_CASE (UseGridDisabled) | |
| BOOST_AUTO_TEST_CASE (AsymmetricGrid) | |
| BOOST_AUTO_TEST_CASE (SnapFlags) | |
| BOOST_AUTO_TEST_CASE (MaskOperations) | |
| BOOST_AUTO_TEST_CASE (SkipPoint) | |
| BOOST_AUTO_TEST_CASE (SkipPointDefaultsToUnreachable) | |
| BOOST_AUTO_TEST_CASE (GridTypeAlignment) | |
| BOOST_AUTO_TEST_CASE (EdgeCases) | |
| BOOST_AUTO_TEST_CASE (GetGridSize) | |
| BOOST_AUTO_TEST_CASE (VisibleGrid) | |
| BOOST_AUTO_TEST_CASE (SnapPointManagement) | |
| BOOST_AUTO_TEST_CASE (AlignGridWithNonPageOrigin) | |
| BOOST_AUTO_TEST_CASE (MovementFromOffGridAnchor) | |
| #define BOOST_TEST_NO_MAIN |
Definition at line 18 of file test_grid_helper.cpp.
| BOOST_AUTO_TEST_CASE | ( | AlignBasic | ) |
Definition at line 140 of file test_grid_helper.cpp.
References GRID_HELPER::Align(), BOOST_CHECK_EQUAL(), GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | AlignGridWithCustomGrid | ) |
Definition at line 163 of file test_grid_helper.cpp.
References GRID_HELPER::AlignGrid(), BOOST_CHECK_EQUAL(), GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | AlignGridWithNonPageOrigin | ) |
Definition at line 460 of file test_grid_helper.cpp.
References GRID_HELPER::AlignGrid(), BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), IU_PER_MM, KiROUND(), name, GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | AlignWithAuxiliaryAxes | ) |
Definition at line 193 of file test_grid_helper.cpp.
References GRID_HELPER::Align(), BOOST_CHECK_EQUAL(), GRID_HELPER::SetAuxAxes(), GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | AlignWithOriginOffset | ) |
Definition at line 180 of file test_grid_helper.cpp.
References GRID_HELPER::AlignGrid(), BOOST_CHECK_EQUAL(), GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | AsymmetricGrid | ) |
Definition at line 254 of file test_grid_helper.cpp.
References GRID_HELPER::Align(), BOOST_CHECK_EQUAL(), GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | DefaultConstructor | ) |
Definition at line 58 of file test_grid_helper.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), GRID_HELPER::GetGrid(), GRID_HELPER::GetOrigin(), GRID_HELPER::GetSnap(), GRID_HELPER::GetUseGrid(), grid, GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | EdgeCases | ) |
Definition at line 394 of file test_grid_helper.cpp.
References GRID_HELPER::Align(), BOOST_CHECK_EQUAL(), GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | GetGridSize | ) |
Definition at line 418 of file test_grid_helper.cpp.
References BOOST_CHECK_EQUAL(), GRID_HELPER::GetGridSize(), GRID_CONNECTABLE, GRID_CURRENT, GRID_HELPER::SetGridSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | GridSnappingDisabled | ) |
Definition at line 220 of file test_grid_helper.cpp.
References GRID_HELPER::Align(), GRID_HELPER::AlignGrid(), BOOST_CHECK_EQUAL(), GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | GridTypeAlignment | ) |
Definition at line 377 of file test_grid_helper.cpp.
References GRID_HELPER::Align(), GRID_HELPER::AlignGrid(), BOOST_CHECK_EQUAL(), GRID_CURRENT, GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | MaskOperations | ) |
Definition at line 293 of file test_grid_helper.cpp.
References GRID_HELPER::ALL, BOOST_CHECK_EQUAL(), GRID_HELPER::CORNER, GRID_HELPER::OUTLINE, and GRID_HELPER::SNAPPABLE.
| BOOST_AUTO_TEST_CASE | ( | MovementFromOffGridAnchor | ) |
Definition at line 570 of file test_grid_helper.cpp.
References GRID_HELPER::AlignGrid(), anchor, BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), IU_PER_MM, KiROUND(), name, GRID_HELPER::SetGridSnapping(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | SkipPoint | ) |
Definition at line 322 of file test_grid_helper.cpp.
References GRID_HELPER::AlignGrid(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), GRID_HELPER::ClearSkipPoint(), cursor, grid, GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), GRID_HELPER::SetSkipPoint(), GRID_HELPER::SetSnapLineDirections(), GRID_HELPER::SetSnapLineOrigin(), and GRID_HELPER::SnapToConstructionLines().
| BOOST_AUTO_TEST_CASE | ( | SkipPointDefaultsToUnreachable | ) |
Definition at line 357 of file test_grid_helper.cpp.
References GRID_HELPER::AlignGrid(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), cursor, GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), GRID_HELPER::SetSnapLineDirections(), GRID_HELPER::SetSnapLineOrigin(), and GRID_HELPER::SnapToConstructionLines().
| BOOST_AUTO_TEST_CASE | ( | SnapFlags | ) |
Definition at line 270 of file test_grid_helper.cpp.
References GRID_HELPER::GetSnap(), GRID_HELPER::GetUseGrid(), GRID_HELPER::SetSnap(), and GRID_HELPER::SetUseGrid().
| BOOST_AUTO_TEST_CASE | ( | SnapFrameSelectsPayloadForAcceptedId | ) |
Definition at line 98 of file test_grid_helper.cpp.
References SNAP_RESULT::accepted, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SNAP_FRAME_INPUT< Payload >::context, INCOMPATIBLE, INTRINSIC_ANCHOR, MakePointSnapId(), OBJECT, SNAP_CANDIDATE::Point(), SNAP_FRAME_OUTPUT< Payload >::presentation, ResolveSnapFrame(), result, SNAP_FRAME_OUTPUT< Payload >::result, and SNAP_SOURCE_CONTEXT::sourcePoint.
| BOOST_AUTO_TEST_CASE | ( | SnapPointManagement | ) |
Definition at line 445 of file test_grid_helper.cpp.
References GRID_HELPER::GetSnappedPoint(), and TEST_CLEAR_ANCHORS().
| BOOST_AUTO_TEST_CASE | ( | SnapResultGuideUpdateClearsStaleDimensionBrackets | ) |
Definition at line 81 of file test_grid_helper.cpp.
References DIMENSION_BRACKET, SNAP_RESULT::guides, and SNAP_LINE.
| BOOST_AUTO_TEST_CASE | ( | UseGridDisabled | ) |
Definition at line 239 of file test_grid_helper.cpp.
References GRID_HELPER::Align(), BOOST_CHECK_EQUAL(), GRID_HELPER::SetGridSize(), GRID_HELPER::SetGridSnapping(), GRID_HELPER::SetOrigin(), GRID_HELPER::SetUseGrid(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | VisibleGrid | ) |
Definition at line 435 of file test_grid_helper.cpp.
References BOOST_CHECK_EQUAL(), GRID_HELPER::GetVisibleGrid(), GRID_HELPER::SetVisibleGridSize(), VECTOR2< T >::x, and VECTOR2< T >::y.
| void TEST_CLEAR_ANCHORS | ( | GRID_HELPER & | helper | ) |
Definition at line 24 of file test_grid_helper.cpp.
Referenced by BOOST_AUTO_TEST_CASE().