KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_symbol_import_manager.cpp File Reference

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.
 

Detailed Description

Test suite for SYMBOL_IMPORT_MANAGER.

Definition in file test_symbol_import_manager.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/16]

◆ BOOST_AUTO_TEST_CASE() [2/16]

◆ BOOST_AUTO_TEST_CASE() [3/16]

BOOST_AUTO_TEST_CASE ( DependencyMapKiCadSym )

◆ BOOST_AUTO_TEST_CASE() [4/16]

BOOST_AUTO_TEST_CASE ( DeselectAll )

◆ BOOST_AUTO_TEST_CASE() [5/16]

BOOST_AUTO_TEST_CASE ( DeselectWithDescendants )

◆ BOOST_AUTO_TEST_CASE() [6/16]

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() [7/16]

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() [8/16]

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() [9/16]

BOOST_AUTO_TEST_CASE ( GetSelectedDescendants )

◆ BOOST_AUTO_TEST_CASE() [10/16]

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() [11/16]

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() [12/16]

◆ BOOST_AUTO_TEST_CASE() [13/16]

◆ BOOST_AUTO_TEST_CASE() [14/16]

◆ BOOST_AUTO_TEST_CASE() [15/16]

◆ BOOST_AUTO_TEST_CASE() [16/16]

BOOST_AUTO_TEST_CASE ( SelectParentDoesNotSelectDescendants )