46 wxString brd_name( wxT(
"test_copper_graphics" ) );
52 std::vector<DRC_ITEM> violations;
66 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
VECTOR2I aPos,
int aLayer )
71 violations.push_back( *aItem );
76 const int expected_err_cnt = 4;
81 if( violations.size() == expected_err_cnt )
83 BOOST_CHECK_EQUAL( 1, 1 );
84 BOOST_TEST_MESSAGE(
"DRC copper graphics test passed" );
88 BOOST_CHECK_EQUAL( violations.size(), expected_err_cnt );
92 std::map<KIID, EDA_ITEM*> itemMap;
93 m_board->FillItemMap( itemMap );
95 for(
const DRC_ITEM& item : violations )
98 BOOST_ERROR( wxString::Format(
"DRC copper graphics 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_MIRRORED_TEXT_ON_FRONT_LAYER
@ DRCE_LIB_FOOTPRINT_ISSUES
@ DRCE_NONMIRRORED_TEXT_ON_BACK_LAYER
@ DRCE_LIB_FOOTPRINT_MISMATCH
void LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
std::unique_ptr< BOARD > m_board
DRC_COPPER_GRAPHICS_TEST_FIXTURE()
SETTINGS_MANAGER m_settingsManager
BOOST_FIXTURE_TEST_CASE(DRCCopperGraphicsTest, DRC_COPPER_GRAPHICS_TEST_FIXTURE)