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,
72 violations.push_back( *aItem );
77 const int expected_err_cnt = 4;
82 if( violations.size() == expected_err_cnt )
84 BOOST_CHECK_EQUAL( 1, 1 );
85 BOOST_TEST_MESSAGE(
"DRC copper graphics test passed" );
89 BOOST_CHECK_EQUAL( violations.size(), expected_err_cnt );
93 std::map<KIID, EDA_ITEM*> itemMap;
94 m_board->FillItemMap( itemMap );
96 for(
const DRC_ITEM& item : violations )
99 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
std::function< void(PCB_MARKER *aMarker)> DRC_CUSTOM_MARKER_HANDLER
@ 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)