|
KiCad PCB EDA Suite
|
#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_engine.h>#include <drc/drc_item.h>#include <pcb_marker.h>#include <settings/settings_manager.h>#include <zone.h>Go to the source code of this file.
Classes | |
| struct | DRC_COPPER_THIEVING_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (ThievingZoneProducesNoIsolatedCopperViolations, DRC_COPPER_THIEVING_FIXTURE) | |
| A copper-thieving zone produces a grid of intentionally-isolated stamps. | |
| BOOST_FIXTURE_TEST_CASE | ( | ThievingZoneProducesNoIsolatedCopperViolations | , |
| DRC_COPPER_THIEVING_FIXTURE | ) |
A copper-thieving zone produces a grid of intentionally-isolated stamps.
Each stamp would trigger DRCE_ISOLATED_COPPER without the explicit exclusion in drc_cache_generator and drc_test_provider_connectivity. Verify that a thieving zone produces zero isolated-copper violations.
Definition at line 46 of file test_drc_copper_thieving.cpp.
References ZONE::AppendCorner(), BOOST_CHECK_EQUAL(), COPPER_THIEVING, DOTS, DRCE_ISOLATED_COPPER, DRCE_LAST, THIEVING_SETTINGS::element_size, F_Cu, KI_TEST::FillZones(), THIEVING_SETTINGS::gap, DRC_ENGINE::InitEngine(), BOARD_DESIGN_SETTINGS::m_DRCEngine, BOARD_DESIGN_SETTINGS::m_DRCSeverities, MM, NEVER, THIEVING_SETTINGS::pattern, pcbIUScale, RPT_SEVERITY_IGNORE, DRC_ENGINE::RunTests(), ZONE::SetFillMode(), ZONE::SetIslandRemovalMode(), ZONE::SetLayer(), ZONE::SetThievingSettings(), and DRC_ENGINE::SetViolationHandler().