52 m_board->GetDesignSettings().m_DRCEngine->ClearViolationHandler();
66 std::multiset<wxString>
result;
75 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I&,
int,
79 result.emplace( aItem->GetErrorMessage(
false ) );
114 BOOST_REQUIRE_MESSAGE( aFixture.
m_board,
"Failed to load board " << aBoard );
116 "DRC engine not initialized" );
118 std::multiset<wxString>
v1;
119 std::multiset<wxString>
v2;
132 (
int)
v1.size(), (
int)
v2.size() ) );
150 checkParity( *
this,
"creepage/creepage_malformed_edge" );
156 checkParity( *
this,
"creepage_slots/creepage_slots" );
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
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)
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
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()
void LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
ADVANCED_CFG_FLAG_GUARD(bool aValue)
~ADVANCED_CFG_FLAG_GUARD()
CREEPAGE_PARITY_FIXTURE()=default
std::unique_ptr< BOARD > m_board
SETTINGS_MANAGER m_settingsManager
std::multiset< wxString > runCreepage()
Run the creepage DRC and return the multiset of violation messages.
~CREEPAGE_PARITY_FIXTURE()
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_CASE(CreepageBoard)
static void checkParity(CREEPAGE_PARITY_FIXTURE &aFixture, const std::string &aBoard)
BOOST_AUTO_TEST_SUITE_END()
BOOST_CHECK_MESSAGE(totalMismatches==0, std::to_string(totalMismatches)+" board(s) with strategy disagreements")
BOOST_TEST_MESSAGE("\n=== Real-World Polygon PIP Benchmark ===\n"<< formatTable(table))
wxString result
Test unit parsing edge cases and error handling.
BOOST_CHECK_EQUAL(result, "25.4")
VECTOR2< int32_t > VECTOR2I