|
KiCad PCB EDA Suite
|
Tests for DRC_ITEM::GetViolationLayers, the layer a clicked violation focuses on. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <board.h>#include <pcb_shape.h>#include <pcb_track.h>#include <zone.h>#include <pcb_marker.h>#include <drc/drc_item.h>Go to the source code of this file.
Classes | |
| struct | DRC_VIOLATION_LAYERS_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (EdgeClearanceFocusesEdgeCuts, DRC_VIOLATION_LAYERS_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (MarkerLayerTakesPriority, DRC_VIOLATION_LAYERS_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (FallbackToItemLayers, DRC_VIOLATION_LAYERS_FIXTURE) | |
Tests for DRC_ITEM::GetViolationLayers, the layer a clicked violation focuses on.
Definition in file test_drc_violation_layers_issue24941.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | EdgeClearanceFocusesEdgeCuts | , |
| DRC_VIOLATION_LAYERS_FIXTURE | ) |
Definition at line 43 of file test_drc_violation_layers_issue24941.cpp.
References BOOST_CHECK_EQUAL(), DRC_ITEM::Create(), DRCE_EDGE_CLEARANCE, Edge_Cuts, F_Cu, DRC_ITEM::GetViolationLayers(), EDA_ITEM::m_Uuid, SEGMENT, PCB_SHAPE::SetEnd(), PCB_TRACK::SetEnd(), BOARD_CONNECTED_ITEM::SetLayer(), PCB_SHAPE::SetLayer(), PCB_SHAPE::SetStart(), and PCB_TRACK::SetStart().
| BOOST_FIXTURE_TEST_CASE | ( | FallbackToItemLayers | , |
| DRC_VIOLATION_LAYERS_FIXTURE | ) |
Definition at line 98 of file test_drc_violation_layers_issue24941.cpp.
References B_Cu, BOOST_CHECK_EQUAL(), DRC_ITEM::Create(), DRCE_CLEARANCE, DRC_ITEM::GetViolationLayers(), EDA_ITEM::m_Uuid, PCB_TRACK::SetEnd(), BOARD_CONNECTED_ITEM::SetLayer(), and PCB_TRACK::SetStart().
| BOOST_FIXTURE_TEST_CASE | ( | MarkerLayerTakesPriority | , |
| DRC_VIOLATION_LAYERS_FIXTURE | ) |
Definition at line 75 of file test_drc_violation_layers_issue24941.cpp.
References B_Cu, BOOST_CHECK_EQUAL(), DRC_ITEM::Create(), DRCE_CONNECTION_WIDTH, F_Cu, DRC_ITEM::GetViolationLayers(), EDA_ITEM::m_Uuid, and ZONE::SetLayerSet().