49 const LSET defaultCustomLayers =
58 footprint.
Add( shape );
71 footprint.
Add( rescueShape );
87 footprint.
Add( copperShape );
101 PAD* pthPad =
new PAD( &footprint );
103 footprint.
Add( pthPad );
108 BOOST_TEST( ( allLayers & padLayers ) == padLayers );
118 +
"QFN-24_L4.0-W4.0-P0.50-BL-EP2.6.kicad_mod";
125 "Issue footprint must exercise the Rescue layer for this test to be meaningful" );
127 const LSET defaultCustomLayers =
132 "Footprint properties dialog must not block saving when only Rescue items orphan" );
General utilities for PCB file IO for QA programs.
LSET is a set of PCB_LAYER_IDs.
static LSET UserDefinedLayersMask(int aUserDefinedLayerCount=MAX_USER_DEFINED_LAYERS)
Return a mask with the requested number of user defined layers.
static const LSET & InternalCuMask()
Return a complete set of internal copper layers which is all Cu layers except F_Cu and B_Cu.
void SetAttribute(PAD_ATTRIB aAttribute)
LSET GetLayerSet() const override
Return a std::bitset of all layers on which the item physically resides.
void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
std::string GetPcbnewTestDataDir()
Utility which returns a path to the data directory where the test board files are stored.
std::unique_ptr< FOOTPRINT > ReadFootprintFromFileOrStream(const std::string &aFilename, std::istream &aFallback)
LSET GetAllFootprintLayers(const FOOTPRINT &aFootprint)
Return the union of layers referenced by every item inside the footprint (including graphic items,...
LSET GetOrphanedFootprintLayers(const FOOTPRINT &aFootprint, const LSET &aCustomUserLayers)
Compute the set of footprint-used layers that would be orphaned if the footprint's allowed layer set ...
@ PTH
Plated through hole pad.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_TEST(contains==c.ExpectedContains)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()