46 wxString brd_name( wxT(
"solder_mask_bridge_test" ) );
50 std::vector<DRC_ITEM> violations;
61 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
VECTOR2I aPos,
int aLayer )
66 violations.push_back( *aItem );
71 const int expected_err_cnt = 5;
73 if( violations.size() == expected_err_cnt )
75 BOOST_CHECK_EQUAL( 1, 1 );
76 BOOST_TEST_MESSAGE(
"DRC solder mask bridge test passed" );
80 BOOST_CHECK_EQUAL( violations.size(), expected_err_cnt );
84 std::map<KIID, EDA_ITEM*> itemMap;
85 m_board->FillItemMap( itemMap );
87 for(
const DRC_ITEM& item : violations )
90 BOOST_ERROR( wxString::Format(
"DRC solder mask bridge test failed board <%s>", brd_name ) );
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_LIB_FOOTPRINT_MISMATCH
void LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
void FillZones(BOARD *m_board)
std::unique_ptr< BOARD > m_board
SETTINGS_MANAGER m_settingsManager
DRC_SOLDER_MASK_BRIDGING_TEST_FIXTURE()
BOOST_FIXTURE_TEST_CASE(DRCSolderMaskBridgingTest, DRC_SOLDER_MASK_BRIDGING_TEST_FIXTURE)