|
KiCad PCB EDA Suite
|
#include <filesystem>#include <fstream>#include <vector>#include <qa_utils/wx_utils/unit_test_utils.h>#include <boost/test/unit_test.hpp>#include <pcbnew_utils/board_file_utils.h>#include <dialogs/dialog_export_step.h>#include <board.h>#include <footprint.h>#include <wx/filefn.h>#include <wx/filename.h>#include <wx/string.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (ModifiedBoardStagesCurrentState) | |
| BOOST_AUTO_TEST_CASE (UnmodifiedBoardStagesOnDiskFile) | |
| An unmodified, saved board stages its existing on-disk file directly with no temporary copy. | |
| BOOST_AUTO_TEST_CASE (UnsavedBoardIsRejected) | |
| An empty board path is rejected (the board must be saved at least once before STEP export). | |
| BOOST_AUTO_TEST_CASE | ( | ModifiedBoardStagesCurrentState | ) |
Definition at line 89 of file test_step_export_modified_board.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), KI_TEST::DumpBoardToFile(), KI_TEST::GetPcbnewTestDataDir(), project, KI_TEST::ReadBoardFromFileOrStream(), and DIALOG_EXPORT_STEP::StageBoardForExport().
| BOOST_AUTO_TEST_CASE | ( | UnmodifiedBoardStagesOnDiskFile | ) |
An unmodified, saved board stages its existing on-disk file directly with no temporary copy.
Definition at line 165 of file test_step_export_modified_board.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), KI_TEST::ReadBoardFromFileOrStream(), and DIALOG_EXPORT_STEP::StageBoardForExport().
| BOOST_AUTO_TEST_CASE | ( | UnsavedBoardIsRejected | ) |
An empty board path is rejected (the board must be saved at least once before STEP export).
Definition at line 189 of file test_step_export_modified_board.cpp.
References BOOST_REQUIRE(), KI_TEST::GetPcbnewTestDataDir(), KI_TEST::ReadBoardFromFileOrStream(), and DIALOG_EXPORT_STEP::StageBoardForExport().