52 std::vector<std::pair<wxString, int>> tests = {
53 {
"test_starved_thermal", 2 },
57 for(
const std::pair<wxString, int>&
test : tests )
62 std::vector<DRC_ITEM> violations;
69 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
VECTOR2I aPos,
int aLayer,
73 violations.push_back( *aItem );
78 if( violations.size() ==
test.second )
87 std::map<KIID, EDA_ITEM*> itemMap;
88 m_board->FillItemMap( itemMap );
90 for(
const DRC_ITEM& item : violations )
96 BOOST_ERROR( wxString::Format(
97 "DRC starved thermal: %s, failed (violations found %d expected %d)",
test.first,
98 (
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
SEVERITY GetSeverity(int aDRCErrorCode)
std::function< void(PCB_MARKER *aMarker)> DRC_CUSTOM_MARKER_HANDLER
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_CHECK_EQUAL(ret, c.m_exp_result)
BOOST_FIXTURE_TEST_CASE(DRCStarvedThermal, DRC_REGRESSION_TEST_FIXTURE)
BOOST_TEST_MESSAGE("Polyline has "<< chain.PointCount()<< " points")