80 m_board->GetDesignSettings().m_DRCEngine->ClearViolationHandler();
101 FOOTPRINT* fp = m_board->Footprints().front();
111 "Fixture pad order changed: expected NPTH first." );
113 "Fixture pad order changed: expected PTH second." );
114 BOOST_WARN_MESSAGE(
static_cast<void*
>( first ) <
static_cast<void*
>( second ),
115 "Heap put PTH below NPTH; the bug may not trigger in this run." );
117 int holeClearanceCount = 0;
128 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& ,
int ,
132 ++holeClearanceCount;
139 BOOST_TEST_MESSAGE( wxString::Format(
"Hole clearance violations: %d", holeClearanceCount ) );
Container for design settings for a BOARD object.
std::map< int, SEVERITY > m_DRCSeverities
std::shared_ptr< DRC_ENGINE > m_DRCEngine
void RunTests(EDA_UNITS aUnits, bool aReportAllTrackErrors, bool aTestFootprints, BOARD_COMMIT *aCommit=nullptr)
Run the DRC tests.
void SetViolationHandler(DRC_VIOLATION_HANDLER aHandler)
Set an optional DRC violation handler (receives DRC_ITEMs and positions).
void ClearViolationHandler()
PAD_ATTRIB GetAttribute() const
void LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
@ NPTH
like PAD_PTH, but not plated mechanical use only, no connection allowed
@ PTH
Plated through hole pad.
~DRC_HOLE_CLEARANCE_FIXTURE()
SETTINGS_MANAGER m_settingsManager
DRC_HOLE_CLEARANCE_FIXTURE()=default
std::unique_ptr< BOARD > m_board
BOOST_REQUIRE_EQUAL(rows.size(), 1)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_REQUIRE_MESSAGE(dc.CacheTableInfo(table, { "part_id", "val" }), dc.GetLastError())
BOOST_FIXTURE_TEST_CASE(HoleClearanceIssue24355, DRC_HOLE_CLEARANCE_FIXTURE)
BOOST_TEST_MESSAGE("Polyline has "<< chain.PointCount()<< " points")
VECTOR2< int32_t > VECTOR2I