|
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>#include <pcbnew_utils/board_file_utils.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 47 of file test_drc_copper_thieving.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), COPPER_THIEVING, DRCE_ISOLATED_COPPER, DRCE_LAST, F_Cu, ZONE::GetFilledPolysList(), ZONE::GetFillMode(), KI_TEST::GetPcbnewTestDataDir(), DRC_ENGINE::InitEngine(), BOARD_DESIGN_SETTINGS::m_DRCEngine, BOARD_DESIGN_SETTINGS::m_DRCSeverities, MM, SHAPE_POLY_SET::OutlineCount(), KI_TEST::ReadBoardFromFileOrStream(), RPT_SEVERITY_IGNORE, DRC_ENGINE::RunTests(), and DRC_ENGINE::SetViolationHandler().