KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_sym_lib_differ.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <schematic_utils/schematic_file_util.h>
#include <diff_merge/sym_item_diff.h>
#include <diff_merge/sym_lib_differ.h>
#include <diff_merge/kicad_diff_types.h>
#include <diff_merge/sch_geometry_extractor.h>
#include <lib_symbol.h>
#include <sch_item.h>
#include <sch_pin.h>
#include <sch_shape.h>
#include <json_common.h>
#include <wx/filename.h>
#include <functional>
#include <set>

Go to the source code of this file.

Functions

static wxString getFixturePath ()
 
 BOOST_AUTO_TEST_CASE (IdenticalLibrariesDiffEmpty)
 
 BOOST_AUTO_TEST_CASE (SymbolNameOnlyInBeforeShowsRemoved)
 
 BOOST_AUTO_TEST_CASE (SymbolChangesCarryDrawableBBoxes)
 
 BOOST_AUTO_TEST_CASE (ExtractSymbolGeometryProducesDrawableContext)
 
 BOOST_AUTO_TEST_CASE (DiffJsonRoundTrip)
 
 BOOST_AUTO_TEST_CASE (LibraryItemKiidPathIsDeterministicForSameName)
 
 BOOST_AUTO_TEST_CASE (LibraryItemKiidPathDiffersForDifferentNames)
 
 BOOST_AUTO_TEST_CASE (MultipleSymbolRemovalsAllEmitChanges)
 
 BOOST_AUTO_TEST_CASE (OutputOrderingIsDeterministicAcrossRuns)
 
 BOOST_AUTO_TEST_CASE (ModifiedSymbolCarriesPinChildDelta)
 
 BOOST_AUTO_TEST_CASE (UnitAndBodyStyleNamesAreDetected)
 
 BOOST_AUTO_TEST_CASE (PinNameChangeIsDetected)
 
 BOOST_AUTO_TEST_CASE (AddedGraphicYieldsSingleAddedElement)
 
static void editSymbol (const std::vector< std::unique_ptr< LIB_SYMBOL > > &aOwners, size_t aIndex, const std::function< void(LIB_SYMBOL &)> &aEdit)
 
 BOOST_AUTO_TEST_CASE (MergeKeepsBothSidesRejectsADroppedEdit)
 
 BOOST_AUTO_TEST_CASE (CombineSymbolEditsRejectsUnreportedState)
 
 BOOST_AUTO_TEST_CASE (CombineSymbolEditsKeepsTheOtherSidesEdits)
 
 BOOST_AUTO_TEST_CASE (DerivedSymbolKeepsResolvedParentAfterLoad)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/17]

◆ BOOST_AUTO_TEST_CASE() [2/17]

◆ BOOST_AUTO_TEST_CASE() [3/17]

◆ BOOST_AUTO_TEST_CASE() [4/17]

BOOST_AUTO_TEST_CASE ( DerivedSymbolKeepsResolvedParentAfterLoad )

◆ BOOST_AUTO_TEST_CASE() [5/17]

◆ BOOST_AUTO_TEST_CASE() [6/17]

◆ BOOST_AUTO_TEST_CASE() [7/17]

BOOST_AUTO_TEST_CASE ( IdenticalLibrariesDiffEmpty )

◆ BOOST_AUTO_TEST_CASE() [8/17]

BOOST_AUTO_TEST_CASE ( LibraryItemKiidPathDiffersForDifferentNames )

Definition at line 167 of file test_sym_lib_differ.cpp.

References BOOST_CHECK(), and KICAD_DIFF::LibraryItemKiidPath().

◆ BOOST_AUTO_TEST_CASE() [9/17]

BOOST_AUTO_TEST_CASE ( LibraryItemKiidPathIsDeterministicForSameName )

◆ BOOST_AUTO_TEST_CASE() [10/17]

BOOST_AUTO_TEST_CASE ( MergeKeepsBothSidesRejectsADroppedEdit )

◆ BOOST_AUTO_TEST_CASE() [11/17]

◆ BOOST_AUTO_TEST_CASE() [12/17]

◆ BOOST_AUTO_TEST_CASE() [13/17]

BOOST_AUTO_TEST_CASE ( OutputOrderingIsDeterministicAcrossRuns )

◆ BOOST_AUTO_TEST_CASE() [14/17]

◆ BOOST_AUTO_TEST_CASE() [15/17]

◆ BOOST_AUTO_TEST_CASE() [16/17]

◆ BOOST_AUTO_TEST_CASE() [17/17]

BOOST_AUTO_TEST_CASE ( UnitAndBodyStyleNamesAreDetected )

◆ editSymbol()

static void editSymbol ( const std::vector< std::unique_ptr< LIB_SYMBOL > > & aOwners,
size_t aIndex,
const std::function< void(LIB_SYMBOL &)> & aEdit )
static

Definition at line 418 of file test_sym_lib_differ.cpp.

References ALL_BODY_STYLES, and ALL_UNITS.

Referenced by BOOST_AUTO_TEST_CASE().

◆ getFixturePath()