41 pad.SetAttribute( PAD_ATTRIB::NPTH );
51 pad.SetAttribute( PAD_ATTRIB::PTH );
61 pad.SetAttribute( PAD_ATTRIB::SMD );
72BOOST_FIXTURE_TEST_SUITE( PadNumbering,
PAD_FIXTURE )
79 auto npth = MakeNPTH();
80 BOOST_CHECK_EQUAL(
false, npth.CanHaveNumber() );
82 auto aperture = MakeAperture();
83 BOOST_CHECK_EQUAL(
false, aperture.CanHaveNumber() );
86 BOOST_CHECK_EQUAL(
true, smd.CanHaveNumber() );
Information pertinent to a Pcbnew printed circuit board.
static LSET UnplatedHoleMask()
layer set for a mechanical unplated through hole pad
static LSET ApertureMask()
layer set for an aperture pad
static LSET SMDMask()
layer set for a SMD pad on Front layer
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(CanNumber)
Check what gets names and what doesn't.