|
KiCad PCB EDA Suite
|
Test suite for SYMBOL_IMPORT_MANAGER. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <symbol_import_manager.h>#include <sch_io/sch_io_mgr.h>#include <sch_io/sch_io.h>#include <ki_exception.h>#include <lib_symbol.h>#include <wx/filename.h>Go to the source code of this file.
Classes | |
| class | TEST_SYMBOL_IMPORT_MANAGER_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (LoadKiCadSymbolLibrary) | |
| Test loading symbols from a KiCad symbol library. | |
| BOOST_AUTO_TEST_CASE (LoadLegacyLibrary) | |
| Test loading symbols from a legacy symbol library. | |
| BOOST_AUTO_TEST_CASE (DependencyMapKiCadSym) | |
| Test dependency map building for KiCad symbols. | |
| BOOST_AUTO_TEST_CASE (GetAncestorsSingleLevel) | |
| Test GetAncestors with single-level inheritance. | |
| BOOST_AUTO_TEST_CASE (GetDescendants) | |
| Test GetDescendants. | |
| BOOST_AUTO_TEST_CASE (SelectAutoSelectsAncestors) | |
| Test symbol selection auto-selects ancestors. | |
| BOOST_AUTO_TEST_CASE (SelectParentDoesNotSelectDescendants) | |
| Test that selecting a parent does not auto-select descendants. | |
| BOOST_AUTO_TEST_CASE (GetSelectedDescendants) | |
| Test GetSelectedDescendants identifies which descendants will be orphaned. | |
| BOOST_AUTO_TEST_CASE (DeselectWithDescendants) | |
| Test DeselectWithDescendants cascades deselection. | |
| BOOST_AUTO_TEST_CASE (SelectAll) | |
| Test SelectAll selects all symbols. | |
| BOOST_AUTO_TEST_CASE (SelectAllWithFilter) | |
| Test SelectAll with filter. | |
| BOOST_AUTO_TEST_CASE (DeselectAll) | |
| Test DeselectAll clears all selections. | |
| BOOST_AUTO_TEST_CASE (ConflictDetection) | |
| Test conflict detection with CheckExistingSymbols. | |
| BOOST_AUTO_TEST_CASE (FilterMatching) | |
| Test MatchesFilter for symbol name filtering. | |
| BOOST_AUTO_TEST_CASE (SelectionCounts) | |
| Test selection counts. | |
| BOOST_AUTO_TEST_CASE (ClearResetsState) | |
| Test Clear resets all state. | |
Test suite for SYMBOL_IMPORT_MANAGER.
Definition in file test_symbol_import_manager.cpp.
| BOOST_AUTO_TEST_CASE | ( | ClearResetsState | ) |
Test Clear resets all state.
Definition at line 520 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SYMBOL_IMPORT_MANAGER::Clear(), SYMBOL_IMPORT_MANAGER::GetSymbolCount(), SYMBOL_IMPORT_MANAGER::GetSymbolsToImport(), and SYMBOL_IMPORT_MANAGER::SelectAll().
| BOOST_AUTO_TEST_CASE | ( | ConflictDetection | ) |
Test conflict detection with CheckExistingSymbols.
Definition at line 434 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SYMBOL_IMPORT_MANAGER::CheckExistingSymbols(), SYMBOL_IMPORT_MANAGER::GetConflicts(), SYMBOL_IMPORT_MANAGER::GetSymbolInfo(), SYMBOL_IMPORT_INFO::m_existsInDest, name, and SYMBOL_IMPORT_MANAGER::SetSymbolSelected().
| BOOST_AUTO_TEST_CASE | ( | DependencyMapKiCadSym | ) |
Test dependency map building for KiCad symbols.
Definition at line 191 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SYMBOL_IMPORT_MANAGER::GetDirectDerivatives(), SYMBOL_IMPORT_MANAGER::GetParent(), and SYMBOL_IMPORT_MANAGER::IsDerived().
| BOOST_AUTO_TEST_CASE | ( | DeselectAll | ) |
Test DeselectAll clears all selections.
Definition at line 418 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SYMBOL_IMPORT_MANAGER::DeselectAll(), SYMBOL_IMPORT_MANAGER::GetSymbolsToImport(), and SYMBOL_IMPORT_MANAGER::SelectAll().
| BOOST_AUTO_TEST_CASE | ( | DeselectWithDescendants | ) |
Test DeselectWithDescendants cascades deselection.
Definition at line 357 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SYMBOL_IMPORT_MANAGER::DeselectWithDescendants(), SYMBOL_IMPORT_MANAGER::GetSymbolsToImport(), and SYMBOL_IMPORT_MANAGER::SetSymbolSelected().
| BOOST_AUTO_TEST_CASE | ( | FilterMatching | ) |
Test MatchesFilter for symbol name filtering.
Definition at line 467 of file test_symbol_import_manager.cpp.
References SYMBOL_IMPORT_MANAGER::MatchesFilter().
| BOOST_AUTO_TEST_CASE | ( | GetAncestorsSingleLevel | ) |
Test GetAncestors with single-level inheritance.
Definition at line 232 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and SYMBOL_IMPORT_MANAGER::GetAncestors().
| BOOST_AUTO_TEST_CASE | ( | GetDescendants | ) |
Test GetDescendants.
Definition at line 251 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and SYMBOL_IMPORT_MANAGER::GetDescendants().
| BOOST_AUTO_TEST_CASE | ( | GetSelectedDescendants | ) |
Test GetSelectedDescendants identifies which descendants will be orphaned.
Definition at line 334 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SYMBOL_IMPORT_MANAGER::GetSelectedDescendants(), SYMBOL_IMPORT_MANAGER::GetSymbolInfo(), SYMBOL_IMPORT_INFO::m_autoSelected, and SYMBOL_IMPORT_MANAGER::SetSymbolSelected().
| BOOST_AUTO_TEST_CASE | ( | LoadKiCadSymbolLibrary | ) |
Test loading symbols from a KiCad symbol library.
Definition at line 161 of file test_symbol_import_manager.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and SYMBOL_IMPORT_MANAGER::GetSymbolCount().
| BOOST_AUTO_TEST_CASE | ( | LoadLegacyLibrary | ) |
Test loading symbols from a legacy symbol library.
Definition at line 176 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and SYMBOL_IMPORT_MANAGER::GetSymbolCount().
| BOOST_AUTO_TEST_CASE | ( | SelectAll | ) |
Test SelectAll selects all symbols.
Definition at line 382 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SYMBOL_IMPORT_MANAGER::GetManualSelectionCount(), SYMBOL_IMPORT_MANAGER::GetSymbolCount(), SYMBOL_IMPORT_MANAGER::GetSymbolsToImport(), and SYMBOL_IMPORT_MANAGER::SelectAll().
| BOOST_AUTO_TEST_CASE | ( | SelectAllWithFilter | ) |
Test SelectAll with filter.
Definition at line 400 of file test_symbol_import_manager.cpp.
References BOOST_REQUIRE(), SYMBOL_IMPORT_MANAGER::GetAutoSelectionCount(), SYMBOL_IMPORT_MANAGER::GetManualSelectionCount(), SYMBOL_IMPORT_MANAGER::GetSymbolCount(), name, and SYMBOL_IMPORT_MANAGER::SelectAll().
| BOOST_AUTO_TEST_CASE | ( | SelectAutoSelectsAncestors | ) |
Test symbol selection auto-selects ancestors.
Definition at line 277 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SYMBOL_IMPORT_MANAGER::GetSymbolInfo(), SYMBOL_IMPORT_MANAGER::GetSymbolsToImport(), SYMBOL_IMPORT_INFO::m_autoSelected, SYMBOL_IMPORT_INFO::m_checked, and SYMBOL_IMPORT_MANAGER::SetSymbolSelected().
| BOOST_AUTO_TEST_CASE | ( | SelectionCounts | ) |
Test selection counts.
Definition at line 489 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SYMBOL_IMPORT_MANAGER::GetAutoSelectionCount(), SYMBOL_IMPORT_MANAGER::GetManualSelectionCount(), and SYMBOL_IMPORT_MANAGER::SetSymbolSelected().
| BOOST_AUTO_TEST_CASE | ( | SelectParentDoesNotSelectDescendants | ) |
Test that selecting a parent does not auto-select descendants.
Definition at line 306 of file test_symbol_import_manager.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SYMBOL_IMPORT_MANAGER::GetSymbolInfo(), SYMBOL_IMPORT_MANAGER::GetSymbolsToImport(), SYMBOL_IMPORT_INFO::m_autoSelected, SYMBOL_IMPORT_INFO::m_checked, and SYMBOL_IMPORT_MANAGER::SetSymbolSelected().