|
KiCad PCB EDA Suite
|
#include <pcbnew_utils/board_test_utils.h>#include <pcbnew_utils/board_file_utils.h>#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew/pcb_io/sprint_layout/pcb_io_sprint_layout.h>#include <pcbnew/pcb_io/sprint_layout/sprint_layout_parser.h>#include <board.h>#include <footprint.h>#include <pad.h>#include <pcb_shape.h>#include <pcb_track.h>#include <netinfo.h>#include <zone.h>Go to the source code of this file.
Classes | |
| struct | SPRINT_LAYOUT_IMPORT_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (CanReadLay6File) | |
| BOOST_AUTO_TEST_CASE (RejectsNonSprintLayoutFile) | |
| BOOST_AUTO_TEST_CASE (RejectsNonExistentFile) | |
| BOOST_AUTO_TEST_CASE (Gpio2nescBoardLoad) | |
| BOOST_AUTO_TEST_CASE (ReedDoorbellBoardLoad) | |
| BOOST_AUTO_TEST_CASE (MdbRs232BoardLoad) | |
| BOOST_AUTO_TEST_CASE (LoadBoardAppendToExisting) | |
| BOOST_AUTO_TEST_CASE (BoardHasOutline) | |
| BOOST_AUTO_TEST_CASE (PadsInsideBoardOutline) | |
| BOOST_AUTO_TEST_CASE (BoardHasCopperLayers) | |
| BOOST_AUTO_TEST_CASE (CachedLibraryFootprints) | |
| BOOST_AUTO_TEST_CASE (PadsHaveAttributes) | |
| BOOST_AUTO_TEST_CASE (PadPositionsHavePositiveY) | |
| BOOST_AUTO_TEST_CASE (DrawingsExistOnCopperAndSilk) | |
| BOOST_AUTO_TEST_CASE (AllTestFilesLoadWithoutCrash) | |
| BOOST_AUTO_TEST_CASE (MmJoy2BoardLoad) | |
| BOOST_AUTO_TEST_CASE (SmallDualRgbBoardLoad) | |
| BOOST_AUTO_TEST_CASE (MdbMasterRev2aBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyBpfBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyRfAmpBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyVfoBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyBufferBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyMainboardBoardLoad) | |
| BOOST_AUTO_TEST_CASE (KarpatyPowerSupplyBoardLoad) | |
| BOOST_AUTO_TEST_CASE (Ku14194RevBBoardLoad) | |
| BOOST_AUTO_TEST_CASE (AntennaSwitchBoardLoad) | |
| BOOST_AUTO_TEST_CASE (TfccBoardLoad) | |
| BOOST_AUTO_TEST_CASE (Amiga2000BoardLoad) | |
| BOOST_AUTO_TEST_CASE (AllBoardsHaveConsistentPadCoordinates) | |
| BOOST_AUTO_TEST_CASE (MultiBoardFileHasFiveBoards) | |
| BOOST_AUTO_TEST_CASE (MultiBoardSelectByIndex) | |
| BOOST_AUTO_TEST_CASE (MultiBoardCallbackInvoked) | |
| BOOST_AUTO_TEST_CASE (MultiBoardCallbackCancelReturnsNull) | |
| BOOST_AUTO_TEST_CASE (SingleBoardFileSkipsCallback) | |
| BOOST_AUTO_TEST_CASE (Pic12F629SmdPadPositions) | |
| BOOST_AUTO_TEST_CASE | ( | AllBoardsHaveConsistentPadCoordinates | ) |
Definition at line 571 of file test_sprint_layout_import.cpp.
References std::abs(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), KI_TEST::GetPcbnewTestDataDir(), pad, pcbIUScale, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | AllTestFilesLoadWithoutCrash | ) |
Definition at line 345 of file test_sprint_layout_import.cpp.
References BOOST_TEST_CONTEXT(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | Amiga2000BoardLoad | ) |
Definition at line 550 of file test_sprint_layout_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | AntennaSwitchBoardLoad | ) |
Definition at line 522 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | BoardHasCopperLayers | ) |
Definition at line 229 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | BoardHasOutline | ) |
Definition at line 142 of file test_sprint_layout_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), Edge_Cuts, PCB_SHAPE::GetLayer(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | CachedLibraryFootprints | ) |
Definition at line 240 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | CanReadLay6File | ) |
Definition at line 55 of file test_sprint_layout_import.cpp.
References BOOST_AUTO_TEST_CASE(), KI_TEST::GetPcbnewTestDataDir(), and path.
| BOOST_AUTO_TEST_CASE | ( | DrawingsExistOnCopperAndSilk | ) |
Definition at line 315 of file test_sprint_layout_import.cpp.
References B_Cu, B_SilkS, BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), F_Cu, F_SilkS, KI_TEST::GetPcbnewTestDataDir(), In1_Cu, and In2_Cu.
| BOOST_AUTO_TEST_CASE | ( | Gpio2nescBoardLoad | ) |
Definition at line 79 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyBpfBoardLoad | ) |
Definition at line 434 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyBufferBoardLoad | ) |
Definition at line 470 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyMainboardBoardLoad | ) |
Definition at line 482 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyPowerSupplyBoardLoad | ) |
Definition at line 494 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyRfAmpBoardLoad | ) |
Definition at line 446 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | KarpatyVfoBoardLoad | ) |
Definition at line 458 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | Ku14194RevBBoardLoad | ) |
Definition at line 510 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | LoadBoardAppendToExisting | ) |
Definition at line 114 of file test_sprint_layout_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), PCB_IO_SPRINT_LAYOUT::LoadBoard(), and result.
| BOOST_AUTO_TEST_CASE | ( | MdbMasterRev2aBoardLoad | ) |
Definition at line 417 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | MdbRs232BoardLoad | ) |
Definition at line 102 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | MmJoy2BoardLoad | ) |
Definition at line 383 of file test_sprint_layout_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | MultiBoardCallbackCancelReturnsNull | ) |
Definition at line 698 of file test_sprint_layout_import.cpp.
References KI_TEST::GetPcbnewTestDataDir(), PCB_IO_SPRINT_LAYOUT::LoadBoard(), and PROJECT_CHOOSER_PLUGIN::RegisterCallback().
| BOOST_AUTO_TEST_CASE | ( | MultiBoardCallbackInvoked | ) |
Definition at line 669 of file test_sprint_layout_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), PCB_IO_SPRINT_LAYOUT::LoadBoard(), and PROJECT_CHOOSER_PLUGIN::RegisterCallback().
| BOOST_AUTO_TEST_CASE | ( | MultiBoardFileHasFiveBoards | ) |
Definition at line 629 of file test_sprint_layout_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SPRINT_LAYOUT_PARSER::GetFileData(), KI_TEST::GetPcbnewTestDataDir(), and SPRINT_LAYOUT_PARSER::Parse().
| BOOST_AUTO_TEST_CASE | ( | MultiBoardSelectByIndex | ) |
Definition at line 642 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), SPRINT_LAYOUT_PARSER::GetFileData(), KI_TEST::GetPcbnewTestDataDir(), PCB_IO_SPRINT_LAYOUT::LoadBoard(), and SPRINT_LAYOUT_PARSER::Parse().
| BOOST_AUTO_TEST_CASE | ( | PadPositionsHavePositiveY | ) |
Definition at line 290 of file test_sprint_layout_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), and pad.
| BOOST_AUTO_TEST_CASE | ( | PadsHaveAttributes | ) |
Definition at line 258 of file test_sprint_layout_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), pad, PTH, and SMD.
| BOOST_AUTO_TEST_CASE | ( | PadsInsideBoardOutline | ) |
Definition at line 168 of file test_sprint_layout_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), BOX2< Vec >::Contains(), Edge_Cuts, PCB_SHAPE::GetBoundingBox(), PCB_SHAPE::GetLayer(), KI_TEST::GetPcbnewTestDataDir(), BOX2< Vec >::Inflate(), BOX2< Vec >::Merge(), pad, and pcbIUScale.
| BOOST_AUTO_TEST_CASE | ( | Pic12F629SmdPadPositions | ) |
Definition at line 743 of file test_sprint_layout_import.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), BOX2< Vec >::Contains(), Edge_Cuts, PCB_SHAPE::GetBoundingBox(), PCB_SHAPE::GetLayer(), KI_TEST::GetPcbnewTestDataDir(), BOX2< Vec >::Inflate(), BOX2< Vec >::Merge(), pad, pcbIUScale, and SMD.
| BOOST_AUTO_TEST_CASE | ( | ReedDoorbellBoardLoad | ) |
Definition at line 90 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | RejectsNonExistentFile | ) |
Definition at line 69 of file test_sprint_layout_import.cpp.
| BOOST_AUTO_TEST_CASE | ( | RejectsNonSprintLayoutFile | ) |
Definition at line 62 of file test_sprint_layout_import.cpp.
References KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | SingleBoardFileSkipsCallback | ) |
Definition at line 717 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), PCB_IO_SPRINT_LAYOUT::LoadBoard(), and PROJECT_CHOOSER_PLUGIN::RegisterCallback().
| BOOST_AUTO_TEST_CASE | ( | SmallDualRgbBoardLoad | ) |
Definition at line 405 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().
| BOOST_AUTO_TEST_CASE | ( | TfccBoardLoad | ) |
Definition at line 534 of file test_sprint_layout_import.cpp.
References BOOST_REQUIRE(), and KI_TEST::GetPcbnewTestDataDir().