| 
    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 (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 (GridTypeAlignment) | |
| BOOST_AUTO_TEST_CASE (EdgeCases) | |
| BOOST_AUTO_TEST_CASE (GetGridSize) | |
| BOOST_AUTO_TEST_CASE (VisibleGrid) | |
| BOOST_AUTO_TEST_CASE (SnapPointManagement) | |
| #define BOOST_TEST_NO_MAIN | 
Definition at line 18 of file test_grid_helper.cpp.
| BOOST_AUTO_TEST_CASE | ( | AlignBasic | ) | 
Definition at line 52 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 75 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 | ( | AlignWithAuxiliaryAxes | ) | 
Definition at line 105 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 92 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 166 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 30 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 246 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 270 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 132 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 229 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 205 of file test_grid_helper.cpp.
References GRID_HELPER::ClearMaskFlag(), GRID_HELPER::CORNER, GRID_HELPER::OUTLINE, GRID_HELPER::SetMask(), GRID_HELPER::SetMaskFlag(), and GRID_HELPER::SNAPPABLE.
| BOOST_AUTO_TEST_CASE | ( | SkipPoint | ) | 
Definition at line 218 of file test_grid_helper.cpp.
References GRID_HELPER::ClearSkipPoint(), and GRID_HELPER::SetSkipPoint().
| BOOST_AUTO_TEST_CASE | ( | SnapFlags | ) | 
Definition at line 182 of file test_grid_helper.cpp.
References GRID_HELPER::GetSnap(), GRID_HELPER::GetUseGrid(), GRID_HELPER::SetSnap(), and GRID_HELPER::SetUseGrid().
| BOOST_AUTO_TEST_CASE | ( | SnapPointManagement | ) | 
Definition at line 297 of file test_grid_helper.cpp.
References GRID_HELPER::GetSnappedPoint(), and TEST_CLEAR_ANCHORS().
| BOOST_AUTO_TEST_CASE | ( | UseGridDisabled | ) | 
Definition at line 151 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 287 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 23 of file test_grid_helper.cpp.
Referenced by BOOST_AUTO_TEST_CASE().