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 106 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 167 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_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 247 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 271 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 133 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 230 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 206 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 219 of file test_grid_helper.cpp.
References GRID_HELPER::ClearSkipPoint(), and GRID_HELPER::SetSkipPoint().
BOOST_AUTO_TEST_CASE | ( | SnapFlags | ) |
Definition at line 183 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 298 of file test_grid_helper.cpp.
References GRID_HELPER::GetSnappedPoint(), and TEST_CLEAR_ANCHORS().
BOOST_AUTO_TEST_CASE | ( | UseGridDisabled | ) |
Definition at line 152 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 288 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().