|
KiCad PCB EDA Suite
|
Regression test for issue #23576: creepage DRC path starts at incorrect point when encountering NPTH slot. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <board.h>#include <board_design_settings.h>#include <drc/drc_item.h>#include <drc/drc_engine.h>#include <footprint.h>#include <pcb_marker.h>#include <pcb_track.h>#include <pad.h>#include <settings/settings_manager.h>#include <widgets/report_severity.h>Go to the source code of this file.
Classes | |
| struct | DRC_CREEPAGE_PATH_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (CreepagePathStartPointIssue23576, DRC_CREEPAGE_PATH_FIXTURE) | |
Regression test for issue #23576: creepage DRC path starts at incorrect point when encountering NPTH slot.
Uses the same board as issue #23389 (same NPTH slot geometry). Validates that the creepage path start/end points lie on the physical edge of their respective copper items, not at the centerline of a track.
Definition in file test_drc_creepage_issue23576.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | CreepagePathStartPointIssue23576 | , |
| DRC_CREEPAGE_PATH_FIXTURE | ) |
Definition at line 71 of file test_drc_creepage_issue23576.cpp.
References std::abs(), ARC, BOOST_CHECK_MESSAGE(), BOOST_TEST_MESSAGE(), DRC_ENGINE::ClearViolationHandler(), SEG::Distance(), DRCE_CREEPAGE, DRCE_FIRST, DRCE_LAST, PCB_SHAPE::GetCenter(), KIGFX::VIEW_ITEM::GetClass(), EDA_SHAPE::GetEnd(), PCB_TRACK::GetEnd(), EDA_ITEM::GetPosition(), BOARD_DESIGN_SETTINGS::GetSeverity(), EDA_SHAPE::GetShape(), PCB_MARKER::GetShapes(), EDA_SHAPE::GetStart(), PCB_TRACK::GetStart(), PCB_TRACK::GetWidth(), KI_TEST::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, BOARD_DESIGN_SETTINGS::m_DRCSeverities, MM, pad, PCB_TRACE_T, RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, DRC_ENGINE::RunTests(), SEGMENT, DRC_ENGINE::SetViolationHandler(), VECTOR2< T >::x, and VECTOR2< T >::y.