46 std::vector<DRC_ITEM> violations;
50 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
51 const std::vector<PCB_SHAPE>& aShapes )
56 violations.push_back( *aItem );
63 for(
const DRC_ITEM& item : violations )
69 if( danglingVias == 1 && violations.size() == 1 )
78 std::map<KIID, EDA_ITEM*> itemMap;
79 m_board->FillItemMap( itemMap );
81 for(
const DRC_ITEM& item : violations )
84 BOOST_ERROR(
"Via dangling rule test failed" );
BOOST_CHECK_EQUAL(result, "25.4")