|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <boost/test/unit_test.hpp>#include <drc/drc_rtree.h>#include <pcb_shape.h>#include <geometry/shape_segment.h>#include <properties/property_mgr.h>#include <properties/property.h>#include <i18n_utility.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (PCBShapeCornerRadius) | |
| BOOST_AUTO_TEST_CASE (PCBShapeCornerRadiusValidation) | |
| BOOST_AUTO_TEST_CASE (ShapeEffectiveGeometryHitsLineEnding) | |
| BOOST_AUTO_TEST_CASE (PCBShapeLineEndingRTreeQuery) | |
| BOOST_AUTO_TEST_CASE (PCBShapeHitTestHitsLineEnding) | |
| BOOST_AUTO_TEST_CASE (PCBShapeShortLineHitTestHitsConsumedBodyEnding) | |
| BOOST_AUTO_TEST_CASE | ( | PCBShapeCornerRadius | ) |
Definition at line 30 of file pcbnew/test_shape_corner_radius.cpp.
References BOOST_CHECK_EQUAL(), EDA_SHAPE::GetCornerRadius(), RECTANGLE, EDA_SHAPE::SetCornerRadius(), PCB_SHAPE::SetEnd(), and PCB_SHAPE::SetStart().
| BOOST_AUTO_TEST_CASE | ( | PCBShapeCornerRadiusValidation | ) |
Definition at line 45 of file pcbnew/test_shape_corner_radius.cpp.
References _HKI, PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), PROPERTY_MANAGER::Rebuild(), RECTANGLE, PCB_SHAPE::SetEnd(), PCB_SHAPE::SetStart(), TYPE_HASH, and PROPERTY_BASE::Validate().
| BOOST_AUTO_TEST_CASE | ( | PCBShapeHitTestHitsLineEnding | ) |
Definition at line 108 of file pcbnew/test_shape_corner_radius.cpp.
References F_Cu, PCB_SHAPE::HitTest(), SEGMENT, PCB_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), PCB_SHAPE::SetStart(), EDA_SHAPE::SetStartEndingLength(), EDA_SHAPE::SetStartEndingStyle(), EDA_SHAPE::SetStartEndingWidth(), PCB_SHAPE::SetWidth(), and SQUARE.
| BOOST_AUTO_TEST_CASE | ( | PCBShapeLineEndingRTreeQuery | ) |
Definition at line 83 of file pcbnew/test_shape_corner_radius.cpp.
References BOOST_CHECK_EQUAL(), DRC_RTREE::Build(), CLEARANCE_CONSTRAINT, F_Cu, DRC_RTREE::Insert(), DRC_RTREE::QueryColliding(), SEGMENT, PCB_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), PCB_SHAPE::SetStart(), EDA_SHAPE::SetStartEndingLength(), EDA_SHAPE::SetStartEndingStyle(), EDA_SHAPE::SetStartEndingWidth(), PCB_SHAPE::SetWidth(), and SQUARE.
| BOOST_AUTO_TEST_CASE | ( | PCBShapeShortLineHitTestHitsConsumedBodyEnding | ) |
Definition at line 126 of file pcbnew/test_shape_corner_radius.cpp.
References ARROW, F_Cu, PCB_SHAPE::HitTest(), SEGMENT, PCB_SHAPE::SetEnd(), EDA_SHAPE::SetEndEndingLength(), EDA_SHAPE::SetEndEndingStyle(), EDA_SHAPE::SetEndEndingWidth(), PCB_SHAPE::SetLayer(), PCB_SHAPE::SetStart(), and PCB_SHAPE::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | ShapeEffectiveGeometryHitsLineEnding | ) |
Definition at line 64 of file pcbnew/test_shape_corner_radius.cpp.
References BOOST_REQUIRE(), F_Cu, PCB_SHAPE::GetEffectiveShape(), SHAPE_SEGMENT::GetSeg(), SEGMENT, PCB_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), PCB_SHAPE::SetStart(), EDA_SHAPE::SetStartEndingLength(), EDA_SHAPE::SetStartEndingStyle(), EDA_SHAPE::SetStartEndingWidth(), PCB_SHAPE::SetWidth(), and SQUARE.