|
KiCad PCB EDA Suite
|
Tests for the auto_backup.format and auto_backup.location settings introduced in COMMON_SETTINGS schema 6. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <pgm_base.h>#include <settings/common_settings.h>#include <settings/json_settings_internals.h>#include <settings/settings_manager.h>#include <nlohmann/json.hpp>#include <wx/filename.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (BackupFormatLocationRoundTrip) | |
| BOOST_AUTO_TEST_CASE (BackupFormatLocationDefaults) | |
| BOOST_AUTO_TEST_CASE (SchemaFiveToSixPreservesArchiveBehavior) | |
| BOOST_AUTO_TEST_CASE (SchemaFiveToSixRespectsExistingFormat) | |
Tests for the auto_backup.format and auto_backup.location settings introduced in COMMON_SETTINGS schema 6.
Definition in file test_backup_settings.cpp.
| BOOST_AUTO_TEST_CASE | ( | BackupFormatLocationDefaults | ) |
Definition at line 67 of file test_backup_settings.cpp.
References COMMON_SETTINGS::AUTO_BACKUP::format, INCREMENTAL, COMMON_SETTINGS::AUTO_BACKUP::location, COMMON_SETTINGS::m_Backup, PROJECT_DIR, and JSON_SETTINGS::ResetToDefaults().
| BOOST_AUTO_TEST_CASE | ( | BackupFormatLocationRoundTrip | ) |
Definition at line 43 of file test_backup_settings.cpp.
References BOOST_AUTO_TEST_CASE(), COMMON_SETTINGS::AUTO_BACKUP::format, INCREMENTAL, JSON_SETTINGS::Load(), COMMON_SETTINGS::AUTO_BACKUP::location, COMMON_SETTINGS::m_Backup, PROJECT_DIR, JSON_SETTINGS::Store(), USER_DIR, and ZIP.
| BOOST_AUTO_TEST_CASE | ( | SchemaFiveToSixPreservesArchiveBehavior | ) |
Definition at line 83 of file test_backup_settings.cpp.
References BOOST_REQUIRE(), COMMON_SETTINGS::AUTO_BACKUP::format, JSON_SETTINGS::Internals(), JSON_SETTINGS::Load(), COMMON_SETTINGS::AUTO_BACKUP::location, COMMON_SETTINGS::m_Backup, JSON_SETTINGS::Migrate(), PROJECT_DIR, JSON_SETTINGS::Set(), JSON_SETTINGS::Store(), and ZIP.
| BOOST_AUTO_TEST_CASE | ( | SchemaFiveToSixRespectsExistingFormat | ) |
Definition at line 111 of file test_backup_settings.cpp.
References BOOST_REQUIRE(), COMMON_SETTINGS::AUTO_BACKUP::format, INCREMENTAL, JSON_SETTINGS::Load(), COMMON_SETTINGS::m_Backup, JSON_SETTINGS::Migrate(), JSON_SETTINGS::Set(), and JSON_SETTINGS::Store().