|
KiCad PCB EDA Suite
|
#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) | |
| 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 | ( | ChangeInvalidatesZone_NonCopperRejected | ) |
Definition at line 285 of file test_diff_types_helpers.cpp.
References KICAD_DIFF::ChangeInvalidatesZone().
| BOOST_AUTO_TEST_CASE | ( | ChangeRequiresConnectivityRebuild_NetCarriers | ) |
Definition at line 299 of file test_diff_types_helpers.cpp.
References KICAD_DIFF::ChangeRequiresConnectivityRebuild().
| BOOST_AUTO_TEST_CASE | ( | ChangeRequiresConnectivityRebuild_NonNetItemsRejected | ) |
Definition at line 327 of file test_diff_types_helpers.cpp.
References KICAD_DIFF::ChangeRequiresConnectivityRebuild().
| BOOST_AUTO_TEST_CASE | ( | DocPropConstants_AllDistinct | ) |
Definition at line 222 of file test_diff_types_helpers.cpp.
References BOOST_CHECK_EQUAL(), KICAD_DIFF::DOC_PROP_BOARD_THICKNESS, KICAD_DIFF::DOC_PROP_DRAWING_SHEET, KICAD_DIFF::DOC_PROP_DRC_SEVERITIES, KICAD_DIFF::DOC_PROP_ERC_SEVERITIES, KICAD_DIFF::DOC_PROP_LAYER_STACKUP, KICAD_DIFF::DOC_PROP_PAGE_FORMAT, and KICAD_DIFF::DOC_PROP_PAGE_ORIENTATION.
| BOOST_AUTO_TEST_CASE | ( | DocPropConstants_PinnedValues | ) |
Definition at line 241 of file test_diff_types_helpers.cpp.
References KICAD_DIFF::DOC_PROP_BOARD_THICKNESS, KICAD_DIFF::DOC_PROP_DRAWING_SHEET, KICAD_DIFF::DOC_PROP_DRC_SEVERITIES, KICAD_DIFF::DOC_PROP_ERC_SEVERITIES, KICAD_DIFF::DOC_PROP_LAYER_STACKUP, KICAD_DIFF::DOC_PROP_PAGE_FORMAT, and KICAD_DIFF::DOC_PROP_PAGE_ORIENTATION.
| BOOST_AUTO_TEST_CASE | ( | IndexChangesByKiid_DeepNesting | ) |
Definition at line 417 of file test_diff_types_helpers.cpp.
References BOOST_CHECK_EQUAL(), KICAD_DIFF::DOCUMENT_DIFF::changes, KICAD_DIFF::ITEM_CHANGE::children, index, and KICAD_DIFF::IndexChangesByKiid().
| BOOST_AUTO_TEST_CASE | ( | IndexChangesByKiid_DuplicateKiidLastWins | ) |
Definition at line 433 of file test_diff_types_helpers.cpp.
References KICAD_DIFF::DOCUMENT_DIFF::changes, KICAD_DIFF::ITEM_CHANGE::id, index, KICAD_DIFF::IndexChangesByKiid(), KICAD_DIFF::ITEM_CHANGE::kind, KICAD_DIFF::MODIFIED, and KICAD_DIFF::ITEM_CHANGE::typeName.
| 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 | ( | IndexChangesByKiid_FlatList | ) |
Definition at line 381 of file test_diff_types_helpers.cpp.
References KICAD_DIFF::DOCUMENT_DIFF::changes, index, and KICAD_DIFF::IndexChangesByKiid().
| BOOST_AUTO_TEST_CASE | ( | IndexChangesByKiid_RecursesIntoChildren | ) |
Definition at line 396 of file test_diff_types_helpers.cpp.
References KICAD_DIFF::DOCUMENT_DIFF::changes, KICAD_DIFF::ITEM_CHANGE::children, index, and KICAD_DIFF::IndexChangesByKiid().
| 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 | ( | IndexPropertiesByName_FlatList | ) |
| BOOST_AUTO_TEST_CASE | ( | LibraryItemKiidPath_Deterministic | ) |
Definition at line 42 of file test_diff_types_helpers.cpp.
References BOOST_AUTO_TEST_CASE(), and KICAD_DIFF::LibraryItemKiidPath().
| 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 | ( | LibraryItemKiidPath_EmptyName | ) |
Definition at line 78 of file test_diff_types_helpers.cpp.
References KICAD_DIFF::LibraryItemKiidPath(), and NilUuid().
| BOOST_AUTO_TEST_CASE | ( | LibraryItemKiidPath_PinnedOutput | ) |
Definition at line 53 of file test_diff_types_helpers.cpp.
References BOOST_CHECK_EQUAL(), KICAD_DIFF::LibraryItemKiidPath(), and path.
| 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 | ( | SchScreenSentinelKiid_DistinctFromNiluuid | ) |
Definition at line 118 of file test_diff_types_helpers.cpp.
References NilUuid(), and KICAD_DIFF::SchScreenSentinelKiid().
| BOOST_AUTO_TEST_CASE | ( | SchScreenSentinelKiid_DoesntCollideWithGeneratedKiids | ) |
Definition at line 137 of file test_diff_types_helpers.cpp.
References BOOST_REQUIRE(), and KICAD_DIFF::SchScreenSentinelKiid().
| BOOST_AUTO_TEST_CASE | ( | SchScreenSentinelKiid_PinnedLiteral | ) |
Definition at line 126 of file test_diff_types_helpers.cpp.
References BOOST_CHECK_EQUAL(), and KICAD_DIFF::SchScreenSentinelKiid().
| 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 | ( | SideEffectPredicates_IndependentOfChangeKind | ) |
Definition at line 341 of file test_diff_types_helpers.cpp.
References KICAD_DIFF::ADDED, KICAD_DIFF::ChangeInvalidatesZone(), KICAD_DIFF::ChangeRequiresConnectivityRebuild(), KICAD_DIFF::ITEM_CHANGE::kind, KICAD_DIFF::REMOVED, and KICAD_DIFF::ITEM_CHANGE::typeName.
| 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 | ( | SummarizeSeverities_EmptyMap | ) |
Definition at line 155 of file test_diff_types_helpers.cpp.
References empty(), and KICAD_DIFF::SummarizeSeverities().
| 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 | ( | SummarizeSeverities_OrderInvariant | ) |
Definition at line 203 of file test_diff_types_helpers.cpp.
References BOOST_CHECK_EQUAL(), and KICAD_DIFF::SummarizeSeverities().
| BOOST_AUTO_TEST_CASE | ( | SummarizeSeverities_SameContentSameHash | ) |
Definition at line 181 of file test_diff_types_helpers.cpp.
References BOOST_CHECK_EQUAL(), and KICAD_DIFF::SummarizeSeverities().