32struct BDS_TEST_FIXTURE
35 m_board( new
BOARD() )
38 SETTINGS_MANAGER m_settingsManager;
39 std::unique_ptr<BOARD> m_board;
44BOOST_FIXTURE_TEST_SUITE( BoardDesignSettings, BDS_TEST_FIXTURE )
88 const int ruleClearance =
pcbIUScale.mmToIU( 4.0 );
90 auto rule = std::make_shared<DRC_RULE>( wxT(
"NPTH Hole to Track Clearance" ) );
94 rule->AddConstraint( constraint );
96 auto engine = std::make_shared<DRC_ENGINE>( m_board.get(), &bds );
97 engine->InitEngine( rule );
126 for(
int step = 2; step <= lastReal; ++step )
140 for(
int step = lastReal - 1; step >= 1; --step )
149 for(
int step = 0; step < lastReal * 3; ++step )
151 BOOST_CHECK_GE( idx, 1 );
constexpr EDA_IU_SCALE pcbIUScale
Container for design settings for a BOARD object.
void UseCustomTrackViaSize(bool aEnabled)
Enables/disables custom track/via size settings.
int GetNextDiffPairIndex(int aIndex, bool aForward) const
Compute the next diff pair dimensions list index when cycling predefined sizes, skipping the index-0 ...
void SetViaSizeIndex(int aIndex)
Set the current via size list index to aIndex.
std::shared_ptr< DRC_ENGINE > m_DRCEngine
int GetTrackWidthIndex() const
int GetViaSizeIndex() const
int GetDiffPairIndex() const
std::vector< DIFF_PAIR_DIMENSION > m_DiffPairDimensionsList
void SetDiffPairIndex(int aIndex)
int GetNextTrackWidthIndex(int aIndex, bool aForward) const
Compute the next track width list index when cycling predefined sizes, skipping the index-0 netclass ...
int GetBiggestClearanceValue() const
int GetCurrentTrackWidth() const
void SetTrackWidthIndex(int aIndex)
Set the current track width list index to aIndex.
int GetNextViaSizeIndex(int aIndex, bool aForward) const
Compute the next via size list index when cycling predefined sizes, skipping the index-0 netclass pla...
std::vector< int > m_TrackWidthList
std::vector< VIA_DIMENSION > m_ViasDimensionsList
MINOPTMAX< int > & Value()
virtual void Load()
Updates the parameters of this object based on the current JSON document contents.
virtual bool Store()
Stores the current parameters into the JSON document represented by this object Note: this doesn't do...
@ PHYSICAL_HOLE_CLEARANCE_CONSTRAINT
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_CASE(NegativeSilkClearanceRoundTrip)
Regression test for https://gitlab.com/kicad/code/kicad/-/issues/23327.
BOOST_AUTO_TEST_SUITE_END()
BOOST_CHECK_EQUAL(result, "25.4")