51 std::vector<std::pair<wxString, int>> tests =
56 {
"issue14549_2", 0 },
60 for(
const std::pair<wxString, int>&
test : tests )
65 std::vector<DRC_ITEM> violations;
76 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
VECTOR2I aPos,
int aLayer )
78 if( bds.GetSeverity( aItem->GetErrorCode() ) == SEVERITY::RPT_SEVERITY_ERROR )
79 violations.push_back( *aItem );
84 if( violations.size() ==
test.second )
86 BOOST_CHECK_EQUAL( 1, 1 );
87 BOOST_TEST_MESSAGE( wxString::Format(
"DRC copper sliver: %s, passed",
test.first ) );
93 std::map<KIID, EDA_ITEM*> itemMap;
94 m_board->FillItemMap( itemMap );
96 for(
const DRC_ITEM& item : violations )
102 BOOST_ERROR( wxString::Format(
"DRC copper sliver: %s, failed (violations found %d expected %d)",
103 test.first, (
int)violations.size(),
test.second ) );
constexpr EDA_IU_SCALE pcbIUScale
Container for design settings for a BOARD object.
std::map< int, SEVERITY > m_DRCSeverities
std::shared_ptr< DRC_ENGINE > m_DRCEngine
void LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
void FillZones(BOARD *m_board)
SETTINGS_MANAGER m_settingsManager
DRC_REGRESSION_TEST_FIXTURE()
std::unique_ptr< BOARD > m_board
BOOST_FIXTURE_TEST_CASE(DRCCopperSliver, DRC_REGRESSION_TEST_FIXTURE)