44 m_board->GetDesignSettings().m_DRCEngine->ClearViolationHandler();
66 std::vector<std::shared_ptr<DRC_ITEM>> bridgeViolations;
77 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& ,
int ,
81 bridgeViolations.push_back( aItem );
86 BOOST_TEST_MESSAGE( wxString::Format(
"Soldermask bridge violations: %d", (
int) bridgeViolations.size() ) );
88 if( !bridgeViolations.empty() )
94 for(
const std::shared_ptr<DRC_ITEM>& item : bridgeViolations )
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
Implements the RC_ITEM_RESOLVER interface to resolve PCB items by their KIID.
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 LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
void FillZones(BOARD *m_board)
F.Mask polygon over a GND zone, GND vias, and an NPTH with an annular ring must produce zero DRCE_SOL...
SETTINGS_MANAGER m_settingsManager
~DRC_NPTH_MASK_BRIDGE_FIXTURE()
std::unique_ptr< BOARD > m_board
DRC_NPTH_MASK_BRIDGE_FIXTURE()=default
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(DRCSolderMaskNPTHBridge, DRC_NPTH_MASK_BRIDGE_FIXTURE)
BOOST_TEST_MESSAGE("Polyline has "<< chain.PointCount()<< " points")
VECTOR2< int32_t > VECTOR2I