53 std::vector<DRC_ITEM> violations;
66 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
VECTOR2I aPos,
int aLayer )
71 violations.push_back( *aItem );
76 if( violations.size() == 8 )
78 BOOST_CHECK_EQUAL( 1, 1 );
79 BOOST_TEST_MESSAGE(
"Custom rule severity test passed" );
83 BOOST_CHECK_EQUAL( violations.size(), 8 );
87 std::map<KIID, EDA_ITEM*> itemMap;
88 m_board->FillItemMap( itemMap );
90 for(
const DRC_ITEM& item : violations )
93 BOOST_ERROR(
"Custom rule severity test failed" );
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
std::set< wxString > m_DrcExclusions
wxString SerializeToString() const
@ DRCE_LIB_FOOTPRINT_ISSUES
@ DRCE_FOOTPRINT_TYPE_MISMATCH
@ DRCE_LIB_FOOTPRINT_MISMATCH
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(DRCCustomRuleSeverityTest, DRC_REGRESSION_TEST_FIXTURE)