47 std::vector<DRC_ITEM> violations;
51 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
52 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
57 violations.push_back( *aItem );
64 for(
const DRC_ITEM& item : violations )
70 if( danglingVias == 1 && violations.size() == 1 )
79 std::map<KIID, EDA_ITEM*> itemMap;
80 m_board->FillItemMap( itemMap );
82 for(
const DRC_ITEM& item : violations )
85 BOOST_ERROR(
"Via dangling rule test failed" );
BOOST_CHECK_EQUAL(result, "25.4")