64 BOOST_REQUIRE_MESSAGE( m_board,
"Failed to load board creepage" );
66 std::vector<std::shared_ptr<DRC_ITEM>> violations;
69 BOOST_REQUIRE_MESSAGE( bds.
m_DRCEngine,
"DRC engine not initialized" );
77 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
78 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
81 violations.push_back( aItem );
88 BOOST_TEST_MESSAGE( wxString::Format(
"Found %d creepage violations", (
int) violations.size() ) );
90 for(
const auto& v : violations )
91 BOOST_TEST_MESSAGE( wxString::Format(
" Violation: %s", v->GetErrorMessage(
false ) ) );
95 BOOST_CHECK_GE( violations.size(), 1 );
110 BOOST_REQUIRE_MESSAGE( m_board,
"Failed to load board creepage_malformed_edge" );
112 std::vector<std::shared_ptr<DRC_ITEM>> violations;
115 BOOST_REQUIRE_MESSAGE( bds.
m_DRCEngine,
"DRC engine not initialized" );
123 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& aPos,
int aLayer,
124 const std::function<
void(
PCB_MARKER* )>& aPathGenerator )
127 violations.push_back( aItem );
134 BOOST_TEST_MESSAGE( wxString::Format(
"Found %d creepage violations (malformed edge)",
135 (
int) violations.size() ) );
137 for(
const auto& v : violations )
138 BOOST_TEST_MESSAGE( wxString::Format(
" Violation: %s", v->GetErrorMessage(
false ) ) );
142 BOOST_CHECK_GE( violations.size(), 1 );
std::unique_ptr< BOARD > m_board
SETTINGS_MANAGER m_settingsManager
DRC_CREEPAGE_TEST_FIXTURE()=default
~DRC_CREEPAGE_TEST_FIXTURE()
BOOST_FIXTURE_TEST_CASE(CreepageHVvsGND, DRC_CREEPAGE_TEST_FIXTURE)