23#include <boost/test/unit_test.hpp>
47 m_Pad->SetNumber(
"1" );
66 std::filesystem::path savePath = tempDir.
CreateChildDir(
"pad.pretty" ) /
"pad.kicad_mod";
93 std::unique_ptr<FOOTPRINT> loaded = RoundTrip();
98 const PAD* loadedPad = loaded->Pads().front();
constexpr EDA_IU_SCALE pcbIUScale
General utilities for PCB file IO for QA programs.
std::filesystem::path CreateChildDir(const wxString &aName) const
Create and return the path to a direct child directory.
LSET is a set of PCB_LAYER_IDs.
static LSET AllCuMask(int aCuLayerCount)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
@ NORMAL
Shape is the same on all layers.
static constexpr PCB_LAYER_ID ALL_LAYERS
! The layer identifier to use for the single defintion on normal padstacks
LSET GetLayerSet() const override
Return a std::bitset of all layers on which the item physically resides.
PAD_ATTRIB GetAttribute() const
VECTOR2I GetDrillSize() const
void DumpFootprintToFile(const FOOTPRINT &aFootprint, const std::filesystem::path &aLibraryPath)
Same as DumpBoardToFile, but for footprints.
std::unique_ptr< FOOTPRINT > ReadFootprintFromFile(const std::filesystem::path &aFilename, const wxString &aFootprintName)
Read a footprint object aFootprintName from aFileName.
@ NON_COMPONENT
Pad with no hole that does not connect to a physical component, but rather provides a connection poin...
@ SMD
Smd pad, appears on the solder paste layer (default)
Sets up a footprint and a single pad, and provides a save/reload round trip.
std::unique_ptr< FOOTPRINT > RoundTrip() const
Save the fixture footprint to a temporary library and load it back.
BOOST_FIXTURE_TEST_CASE(ServerStartsAndResponds, API_SERVER_E2E_FIXTURE)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_REQUIRE_EQUAL(rows.size(), 1)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_REQUIRE(res.columns()==1)
BOOST_AUTO_TEST_SUITE_END()
VECTOR2< int32_t > VECTOR2I