KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_drc_copper_thieving.cpp File Reference

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.
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()

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().