KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_diff_types_helpers.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <diff_merge/kicad_diff_types.h>
#include <map>
#include <set>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (LibraryItemKiidPath_Deterministic)
 
 BOOST_AUTO_TEST_CASE (LibraryItemKiidPath_PinnedOutput)
 
 BOOST_AUTO_TEST_CASE (LibraryItemKiidPath_DistinctNames)
 
 BOOST_AUTO_TEST_CASE (LibraryItemKiidPath_EmptyName)
 
 BOOST_AUTO_TEST_CASE (LibraryItemKiidPath_UnicodeName)
 
 BOOST_AUTO_TEST_CASE (SchScreenSentinelKiid_Stable)
 
 BOOST_AUTO_TEST_CASE (SchScreenSentinelKiid_DistinctFromNiluuid)
 
 BOOST_AUTO_TEST_CASE (SchScreenSentinelKiid_PinnedLiteral)
 
 BOOST_AUTO_TEST_CASE (SchScreenSentinelKiid_DoesntCollideWithGeneratedKiids)
 
 BOOST_AUTO_TEST_CASE (SummarizeSeverities_EmptyMap)
 
 BOOST_AUTO_TEST_CASE (SummarizeSeverities_NonEmpty)
 
 BOOST_AUTO_TEST_CASE (SummarizeSeverities_SameContentSameHash)
 
 BOOST_AUTO_TEST_CASE (SummarizeSeverities_DifferentContentDifferentHash)
 
 BOOST_AUTO_TEST_CASE (SummarizeSeverities_OrderInvariant)
 
 BOOST_AUTO_TEST_CASE (DocPropConstants_AllDistinct)
 
 BOOST_AUTO_TEST_CASE (DocPropConstants_PinnedValues)
 
 BOOST_AUTO_TEST_CASE (ChangeInvalidatesZone_CopperConductors)
 
 BOOST_AUTO_TEST_CASE (ChangeInvalidatesZone_NonCopperRejected)
 
 BOOST_AUTO_TEST_CASE (ChangeRequiresConnectivityRebuild_NetCarriers)
 
 BOOST_AUTO_TEST_CASE (ChangeRequiresConnectivityRebuild_NonNetItemsRejected)
 
 BOOST_AUTO_TEST_CASE (SideEffectPredicates_IndependentOfChangeKind)
 
 BOOST_AUTO_TEST_CASE (IndexChangesByKiid_FlatList)
 
 BOOST_AUTO_TEST_CASE (IndexChangesByKiid_RecursesIntoChildren)
 
 BOOST_AUTO_TEST_CASE (IndexChangesByKiid_DeepNesting)
 
 BOOST_AUTO_TEST_CASE (IndexChangesByKiid_DuplicateKiidLastWins)
 
 BOOST_AUTO_TEST_CASE (IndexChangesByKiid_EmptyDiff)
 
 BOOST_AUTO_TEST_CASE (IndexPropertiesByName_FlatList)
 
 BOOST_AUTO_TEST_CASE (IndexPropertiesByName_EmptyChange)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/28]

BOOST_AUTO_TEST_CASE ( ChangeInvalidatesZone_CopperConductors )

Definition at line 274 of file test_diff_types_helpers.cpp.

References KICAD_DIFF::ChangeInvalidatesZone().

◆ BOOST_AUTO_TEST_CASE() [2/28]

BOOST_AUTO_TEST_CASE ( ChangeInvalidatesZone_NonCopperRejected )

Definition at line 285 of file test_diff_types_helpers.cpp.

References KICAD_DIFF::ChangeInvalidatesZone().

◆ BOOST_AUTO_TEST_CASE() [3/28]

BOOST_AUTO_TEST_CASE ( ChangeRequiresConnectivityRebuild_NetCarriers )

◆ BOOST_AUTO_TEST_CASE() [4/28]

BOOST_AUTO_TEST_CASE ( ChangeRequiresConnectivityRebuild_NonNetItemsRejected )

◆ BOOST_AUTO_TEST_CASE() [5/28]

◆ BOOST_AUTO_TEST_CASE() [6/28]

◆ BOOST_AUTO_TEST_CASE() [7/28]

BOOST_AUTO_TEST_CASE ( IndexChangesByKiid_DeepNesting )

◆ BOOST_AUTO_TEST_CASE() [8/28]

◆ BOOST_AUTO_TEST_CASE() [9/28]

BOOST_AUTO_TEST_CASE ( IndexChangesByKiid_EmptyDiff )

Definition at line 461 of file test_diff_types_helpers.cpp.

References empty(), and KICAD_DIFF::IndexChangesByKiid().

◆ BOOST_AUTO_TEST_CASE() [10/28]

BOOST_AUTO_TEST_CASE ( IndexChangesByKiid_FlatList )

◆ BOOST_AUTO_TEST_CASE() [11/28]

BOOST_AUTO_TEST_CASE ( IndexChangesByKiid_RecursesIntoChildren )

◆ BOOST_AUTO_TEST_CASE() [12/28]

BOOST_AUTO_TEST_CASE ( IndexPropertiesByName_EmptyChange )

Definition at line 492 of file test_diff_types_helpers.cpp.

References empty(), and KICAD_DIFF::IndexPropertiesByName().

◆ BOOST_AUTO_TEST_CASE() [13/28]

◆ BOOST_AUTO_TEST_CASE() [14/28]

BOOST_AUTO_TEST_CASE ( LibraryItemKiidPath_Deterministic )

◆ BOOST_AUTO_TEST_CASE() [15/28]

BOOST_AUTO_TEST_CASE ( LibraryItemKiidPath_DistinctNames )

Definition at line 65 of file test_diff_types_helpers.cpp.

References KICAD_DIFF::LibraryItemKiidPath().

◆ BOOST_AUTO_TEST_CASE() [16/28]

BOOST_AUTO_TEST_CASE ( LibraryItemKiidPath_EmptyName )

Definition at line 78 of file test_diff_types_helpers.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [17/28]

BOOST_AUTO_TEST_CASE ( LibraryItemKiidPath_PinnedOutput )

◆ BOOST_AUTO_TEST_CASE() [18/28]

BOOST_AUTO_TEST_CASE ( LibraryItemKiidPath_UnicodeName )

Definition at line 91 of file test_diff_types_helpers.cpp.

References KICAD_DIFF::LibraryItemKiidPath().

◆ BOOST_AUTO_TEST_CASE() [19/28]

BOOST_AUTO_TEST_CASE ( SchScreenSentinelKiid_DistinctFromNiluuid )

Definition at line 118 of file test_diff_types_helpers.cpp.

References NilUuid(), and KICAD_DIFF::SchScreenSentinelKiid().

◆ BOOST_AUTO_TEST_CASE() [20/28]

BOOST_AUTO_TEST_CASE ( SchScreenSentinelKiid_DoesntCollideWithGeneratedKiids )

◆ BOOST_AUTO_TEST_CASE() [21/28]

BOOST_AUTO_TEST_CASE ( SchScreenSentinelKiid_PinnedLiteral )

◆ BOOST_AUTO_TEST_CASE() [22/28]

BOOST_AUTO_TEST_CASE ( SchScreenSentinelKiid_Stable )

Definition at line 106 of file test_diff_types_helpers.cpp.

References KICAD_DIFF::SchScreenSentinelKiid().

◆ BOOST_AUTO_TEST_CASE() [23/28]

◆ BOOST_AUTO_TEST_CASE() [24/28]

BOOST_AUTO_TEST_CASE ( SummarizeSeverities_DifferentContentDifferentHash )

Definition at line 192 of file test_diff_types_helpers.cpp.

References KICAD_DIFF::SummarizeSeverities().

◆ BOOST_AUTO_TEST_CASE() [25/28]

BOOST_AUTO_TEST_CASE ( SummarizeSeverities_EmptyMap )

Definition at line 155 of file test_diff_types_helpers.cpp.

References empty(), and KICAD_DIFF::SummarizeSeverities().

◆ BOOST_AUTO_TEST_CASE() [26/28]

BOOST_AUTO_TEST_CASE ( SummarizeSeverities_NonEmpty )

Definition at line 168 of file test_diff_types_helpers.cpp.

References KICAD_DIFF::SummarizeSeverities().

◆ BOOST_AUTO_TEST_CASE() [27/28]

BOOST_AUTO_TEST_CASE ( SummarizeSeverities_OrderInvariant )

◆ BOOST_AUTO_TEST_CASE() [28/28]

BOOST_AUTO_TEST_CASE ( SummarizeSeverities_SameContentSameHash )