|
KiCad PCB EDA Suite
|
Tests for PROJECT_TEMPLATE class. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <project_template.h>#include <settings/settings_manager.h>#include <wx/dir.h>#include <wx/filename.h>#include <filesystem>#include <fstream>#include <sstream>Go to the source code of this file.
Classes | |
| class | PROJECT_TEMPLATE_TEST_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (DirectoriesRenamedCorrectly) | |
| BOOST_AUTO_TEST_CASE (CreateProjectRenamesDirectories) | |
| BOOST_AUTO_TEST_CASE (ExactMatchDirectoryRenamed) | |
| BOOST_AUTO_TEST_CASE (TemplateWithoutMetaDirSetsErrorTitle) | |
| BOOST_AUTO_TEST_CASE (TemplateWithMetaDirButNoInfoHtml) | |
| BOOST_AUTO_TEST_CASE (EnsureDefaultTemplateSeedsBaseDir) | |
| BOOST_AUTO_TEST_CASE (ProjectCreatedFromDefaultTemplateLoads) | |
| BOOST_AUTO_TEST_CASE (EnsureDefaultTemplateRejectsEmptyBaseDir) | |
| BOOST_AUTO_TEST_CASE (EnsureDefaultTemplateIsIdempotent) | |
| BOOST_AUTO_TEST_CASE (ReadOnlyTemplateProducesWritableProject) | |
Tests for PROJECT_TEMPLATE class.
Definition in file test_project_template.cpp.
| BOOST_AUTO_TEST_CASE | ( | CreateProjectRenamesDirectories | ) |
Definition at line 140 of file test_project_template.cpp.
References PROJECT_TEMPLATE::CreateProject(), and result.
| BOOST_AUTO_TEST_CASE | ( | DirectoriesRenamedCorrectly | ) |
Definition at line 90 of file test_project_template.cpp.
References BOOST_AUTO_TEST_CASE(), and PROJECT_TEMPLATE::GetDestinationFiles().
| BOOST_AUTO_TEST_CASE | ( | EnsureDefaultTemplateIsIdempotent | ) |
Definition at line 333 of file test_project_template.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and EnsureDefaultProjectTemplate().
| BOOST_AUTO_TEST_CASE | ( | EnsureDefaultTemplateRejectsEmptyBaseDir | ) |
Definition at line 324 of file test_project_template.cpp.
References EnsureDefaultProjectTemplate().
| BOOST_AUTO_TEST_CASE | ( | EnsureDefaultTemplateSeedsBaseDir | ) |
Definition at line 266 of file test_project_template.cpp.
References BOOST_REQUIRE(), EnsureDefaultProjectTemplate(), expected, PROJECT_TEMPLATE::GetError(), and PROJECT_TEMPLATE::GetTitle().
| BOOST_AUTO_TEST_CASE | ( | ExactMatchDirectoryRenamed | ) |
Definition at line 174 of file test_project_template.cpp.
References PROJECT_TEMPLATE::GetDestinationFiles().
| BOOST_AUTO_TEST_CASE | ( | ProjectCreatedFromDefaultTemplateLoads | ) |
Definition at line 294 of file test_project_template.cpp.
References BOOST_REQUIRE(), PROJECT_TEMPLATE::CreateProject(), EnsureDefaultProjectTemplate(), and SETTINGS_MANAGER::LoadProject().
| BOOST_AUTO_TEST_CASE | ( | ReadOnlyTemplateProducesWritableProject | ) |
Definition at line 359 of file test_project_template.cpp.
References PROJECT_TEMPLATE::CreateProject().
| BOOST_AUTO_TEST_CASE | ( | TemplateWithMetaDirButNoInfoHtml | ) |
Definition at line 244 of file test_project_template.cpp.
References BOOST_REQUIRE(), and PROJECT_TEMPLATE::GetTitle().
| BOOST_AUTO_TEST_CASE | ( | TemplateWithoutMetaDirSetsErrorTitle | ) |
Definition at line 218 of file test_project_template.cpp.
References BOOST_REQUIRE(), and PROJECT_TEMPLATE::GetTitle().