|
KiCad PCB EDA Suite
|
Tests for Save As subsheet copy options. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include "eeschema_test_utils.h"#include <eeschema/api/sch_api_save.h>#include <eeschema/eeschema_helpers.h>#include <eeschema/save_project_utils.h>#include <pgm_base.h>#include <schematic.h>#include <settings/settings_manager.h>#include <title_block.h>#include <sch_sheet.h>#include <sch_sheet_path.h>#include <sch_symbol.h>#include <wildcards_and_files_ext.h>#include <wx/filename.h>#include <wx/ffile.h>#include <wx/filefn.h>Go to the source code of this file.
Classes | |
| class | SAVEAS_SUBSHEET_FIXTURE |
Functions | |
| static bool | ScreensContain (SCH_SCREENS &aScreens, SCH_SCREEN *aScreen) |
| BOOST_AUTO_TEST_CASE (CopyInternalReferenceExternal) | |
| BOOST_AUTO_TEST_CASE (CopyIncludingExternal) | |
| BOOST_AUTO_TEST_CASE (NoCopyKeepsOriginalPaths) | |
| BOOST_AUTO_TEST_CASE (VirtualRootScreenGetsNoDestination) | |
| BOOST_AUTO_TEST_CASE (VirtualRootScreenGetsNoDestinationOnCopy) | |
| BOOST_AUTO_TEST_CASE (ApiSaveCopyWritesTheTopLevelSheet) | |
| BOOST_AUTO_TEST_CASE (ApiSaveWritesTheLoadedProjectFile) | |
Tests for Save As subsheet copy options.
Definition in file test_saveas_copy_subsheets.cpp.
| BOOST_AUTO_TEST_CASE | ( | ApiSaveCopyWritesTheTopLevelSheet | ) |
Definition at line 318 of file test_saveas_copy_subsheets.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), FILEEXT::KiCadSchematicFileExtension, LoadSchematic(), REFERENCE, SCH_API_SAVE::SaveSchematicCopy(), and SCH_SYMBOL_T.
| BOOST_AUTO_TEST_CASE | ( | ApiSaveWritesTheLoadedProjectFile | ) |
Definition at line 353 of file test_saveas_copy_subsheets.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), KI_TEST::GetEeschemaTestDataDir(), SETTINGS_MANAGER::GetProject(), PGM_BASE::GetSettingsManager(), SCH_SCREEN::GetTitleBlock(), FILEEXT::KiCadSchematicFileExtension, SETTINGS_MANAGER::LoadProject(), EESCHEMA_HELPERS::LoadSchematic(), name, Pgm(), project, FILEEXT::ProjectFileExtension, SCH_API_SAVE::SaveSchematic(), SCH_SCREEN::SetFileName(), TITLE_BLOCK::SetRevision(), SCH_SCREEN::SetTitleBlock(), and SETTINGS_MANAGER::UnloadProject().
| BOOST_AUTO_TEST_CASE | ( | CopyIncludingExternal | ) |
Definition at line 175 of file test_saveas_copy_subsheets.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), SCH_SCREENS::GetCount(), SCH_SCREEN::GetFileName(), SCH_SCREENS::GetScreen(), FILEEXT::KiCadSchematicFileExtension, LoadSchematic(), and PrepareSaveAsFiles().
| BOOST_AUTO_TEST_CASE | ( | CopyInternalReferenceExternal | ) |
Definition at line 119 of file test_saveas_copy_subsheets.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK(), BOOST_CHECK_EQUAL(), SCH_SCREENS::GetCount(), SCH_SCREEN::GetFileName(), SCH_SCREENS::GetScreen(), FILEEXT::KiCadSchematicFileExtension, LoadSchematic(), path, and PrepareSaveAsFiles().
| BOOST_AUTO_TEST_CASE | ( | NoCopyKeepsOriginalPaths | ) |
Definition at line 212 of file test_saveas_copy_subsheets.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), SCH_SCREENS::GetCount(), SCH_SCREEN::GetFileName(), SCH_SCREENS::GetScreen(), FILEEXT::KiCadSchematicFileExtension, LoadSchematic(), and PrepareSaveAsFiles().
| BOOST_AUTO_TEST_CASE | ( | VirtualRootScreenGetsNoDestination | ) |
Definition at line 251 of file test_saveas_copy_subsheets.cpp.
References BOOST_CHECK(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SCREEN::GetFileName(), FILEEXT::KiCadSchematicFileExtension, LoadSchematic(), PrepareSaveAsFiles(), and ScreensContain().
| BOOST_AUTO_TEST_CASE | ( | VirtualRootScreenGetsNoDestinationOnCopy | ) |
Definition at line 284 of file test_saveas_copy_subsheets.cpp.
References BOOST_CHECK(), BOOST_REQUIRE(), FILEEXT::KiCadSchematicFileExtension, LoadSchematic(), PrepareSaveAsFiles(), and ScreensContain().
|
static |
Definition at line 106 of file test_saveas_copy_subsheets.cpp.
References SCH_SCREENS::GetCount(), and SCH_SCREENS::GetScreen().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().