|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <board.h>#include <footprint.h>#include <pad.h>#include <pcb_barcode.h>#include <pcb_dimension.h>#include <pcb_group.h>#include <pcb_reference_image.h>#include <pcb_shape.h>#include <pcb_table.h>#include <pcb_tablecell.h>#include <pcb_target.h>#include <pcb_text.h>#include <pcb_textbox.h>#include <pcb_track.h>#include <properties/property_mgr.h>#include <tools/match_properties.h>#include <zone.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (CompatibleFamiliesAndTargets) | |
| BOOST_AUTO_TEST_CASE (UnrelatedKindsAreNotCompatible) | |
| BOOST_AUTO_TEST_CASE (CommonPropertyCopiesAcrossKinds) | |
| BOOST_AUTO_TEST_CASE (CommonPropertyCopiesWithinOneKind) | |
| BOOST_AUTO_TEST_CASE (CrossKindCopyIgnoresFamilyOnlyKeys) | |
| BOOST_AUTO_TEST_CASE (CommonKeysReplaceTheFamilyKeysTheyCover) | |
| BOOST_AUTO_TEST_CASE (KeysAreCanonicalAndLabelsAreFriendly) | |
| BOOST_AUTO_TEST_CASE (FamilyAndPropertyLabelsSplitTheKey) | |
| BOOST_AUTO_TEST_CASE (ConnectedItemsOfferTheirLayer) | |
| BOOST_AUTO_TEST_CASE (LayerIsNotSharedWithConnectedItems) | |
| BOOST_AUTO_TEST_CASE (FillIsNotSharedWhereItCannotApply) | |
| BOOST_AUTO_TEST_CASE (DefaultKeysAreAllSafe) | |
| BOOST_AUTO_TEST_CASE (AnyEnabledForMatchesOnlyTheItemsOwnFamily) | |
| BOOST_AUTO_TEST_CASE (CopyIgnoresEnabledKeysOutsideTheCatalog) | |
| BOOST_AUTO_TEST_CASE (CopyLeavesTheSourceUntouched) | |
| BOOST_AUTO_TEST_CASE (CopyTableCellTextProperties) | |
| BOOST_AUTO_TEST_CASE (CopySafeProperties) | |
| BOOST_AUTO_TEST_CASE (CopyDoesNotCountIdenticalValuesAsChanges) | |
| BOOST_AUTO_TEST_CASE (CopyRejectsIncompatibleItemsWithoutMutation) | |
| BOOST_AUTO_TEST_CASE (CopyZonePropertiesStagesHatchedModeBeforeHatchProperties) | |
| BOOST_AUTO_TEST_CASE (CopyZonePropertiesFromSolidModeSkipsUnavailableHatchProperties) | |
| BOOST_AUTO_TEST_CASE (CoupledPropertiesValidateAgainstFinalState) | |
| BOOST_AUTO_TEST_CASE (EveryFamilyAdvertisesSomething) | |
| BOOST_AUTO_TEST_CASE (ZoneAndRuleAreaKeysDoNotOverlap) | |
| BOOST_AUTO_TEST_CASE (CopyableFlagExcludesIdentityGeometryAndConnectivity) | |
| BOOST_AUTO_TEST_CASE (RelatedItemsAreNotCompatible) | |
| BOOST_AUTO_TEST_CASE | ( | AnyEnabledForMatchesOnlyTheItemsOwnFamily | ) |
Definition at line 244 of file test_match_properties.cpp.
References MATCH_PROPERTIES_CATALOG::AllSafeKeys(), MATCH_PROPERTIES_CATALOG::AnyEnabledFor(), group, and table.
| BOOST_AUTO_TEST_CASE | ( | CommonKeysReplaceTheFamilyKeysTheyCover | ) |
Definition at line 135 of file test_match_properties.cpp.
References MATCH_PROPERTIES_CATALOG::AllSafeKeys(), families(), and MATCH_PROPERTIES_CATALOG::FamiliesFor().
| BOOST_AUTO_TEST_CASE | ( | CommonPropertyCopiesAcrossKinds | ) |
Definition at line 82 of file test_match_properties.cpp.
References BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), PCB_SHAPE::GetWidth(), result, PCB_SHAPE::SetWidth(), and PCB_TRACK::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | CommonPropertyCopiesWithinOneKind | ) |
Definition at line 100 of file test_match_properties.cpp.
References BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), PCB_TRACK::GetWidth(), result, and PCB_TRACK::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | CompatibleFamiliesAndTargets | ) |
Definition at line 47 of file test_match_properties.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Compatible(), and MATCH_PROPERTIES_CATALOG::CompatibleTargets().
| BOOST_AUTO_TEST_CASE | ( | ConnectedItemsOfferTheirLayer | ) |
Definition at line 186 of file test_match_properties.cpp.
References MATCH_PROPERTIES_CATALOG::AllSafeKeys(), MATCH_PROPERTIES_CATALOG::Copy(), F_Cu, BOARD_CONNECTED_ITEM::GetLayer(), In1_Cu, result, and BOARD_CONNECTED_ITEM::SetLayer().
| BOOST_AUTO_TEST_CASE | ( | CopyableFlagExcludesIdentityGeometryAndConnectivity | ) |
Definition at line 458 of file test_match_properties.cpp.
References PROPERTY_MANAGER::GetProperties(), PROPERTY_MANAGER::Instance(), name, and TYPE_HASH.
| BOOST_AUTO_TEST_CASE | ( | CopyDoesNotCountIdenticalValuesAsChanges | ) |
Definition at line 326 of file test_match_properties.cpp.
References BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), and PCB_TRACK::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | CopyIgnoresEnabledKeysOutsideTheCatalog | ) |
Definition at line 261 of file test_match_properties.cpp.
References BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), PCB_TRACK::GetStart(), result, and PCB_TRACK::SetStart().
| BOOST_AUTO_TEST_CASE | ( | CopyLeavesTheSourceUntouched | ) |
Definition at line 278 of file test_match_properties.cpp.
References MATCH_PROPERTIES_CATALOG::AllSafeKeys(), BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), PCB_TRACK::GetWidth(), and PCB_TRACK::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | CopyRejectsIncompatibleItemsWithoutMutation | ) |
Definition at line 342 of file test_match_properties.cpp.
References BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), PCB_TEXT::GetTextSize(), result, PCB_TEXT::SetTextSize(), and PCB_TRACK::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | CopySafeProperties | ) |
Definition at line 309 of file test_match_properties.cpp.
References BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), PCB_TRACK::GetWidth(), result, and PCB_TRACK::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | CopyTableCellTextProperties | ) |
Definition at line 291 of file test_match_properties.cpp.
References BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), PCB_TEXTBOX::GetTextThickness(), result, PCB_TEXTBOX::SetTextThickness(), and table.
| BOOST_AUTO_TEST_CASE | ( | CopyZonePropertiesFromSolidModeSkipsUnavailableHatchProperties | ) |
Definition at line 380 of file test_match_properties.cpp.
References BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), F_Cu, ZONE::GetFillMode(), ZONE::GetHatchThickness(), HATCH_PATTERN, POLYGONS, result, ZONE::SetFillMode(), ZONE::SetHatchThickness(), and ZONE::SetLayer().
| BOOST_AUTO_TEST_CASE | ( | CopyZonePropertiesStagesHatchedModeBeforeHatchProperties | ) |
Definition at line 357 of file test_match_properties.cpp.
References BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), F_Cu, ZONE::GetFillMode(), ZONE::GetHatchThickness(), HATCH_PATTERN, POLYGONS, result, ZONE::SetFillMode(), ZONE::SetHatchThickness(), and ZONE::SetLayer().
| BOOST_AUTO_TEST_CASE | ( | CoupledPropertiesValidateAgainstFinalState | ) |
Definition at line 403 of file test_match_properties.cpp.
References PADSTACK::ALL_LAYERS, BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), PCB_VIA::GetDrillValue(), PCB_VIA::GetWidth(), result, PCB_VIA::SetDrill(), and PCB_VIA::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | CrossKindCopyIgnoresFamilyOnlyKeys | ) |
Definition at line 117 of file test_match_properties.cpp.
References BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Copy(), PCB_SHAPE::GetWidth(), result, PCB_SHAPE::SetWidth(), and PCB_TRACK::SetWidth().
| BOOST_AUTO_TEST_CASE | ( | DefaultKeysAreAllSafe | ) |
Definition at line 235 of file test_match_properties.cpp.
References MATCH_PROPERTIES_CATALOG::AllSafeKeys(), and MATCH_PROPERTIES_CATALOG::DefaultKeys().
| BOOST_AUTO_TEST_CASE | ( | EveryFamilyAdvertisesSomething | ) |
Definition at line 424 of file test_match_properties.cpp.
References MATCH_PROPERTIES_CATALOG::AllSafeKeys(), and MATCH_PROPERTIES_CATALOG::FamiliesFor().
| BOOST_AUTO_TEST_CASE | ( | FamilyAndPropertyLabelsSplitTheKey | ) |
Definition at line 170 of file test_match_properties.cpp.
References _, BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::FamilyLabel(), and MATCH_PROPERTIES_CATALOG::PropertyLabel().
| BOOST_AUTO_TEST_CASE | ( | FillIsNotSharedWhereItCannotApply | ) |
Definition at line 218 of file test_match_properties.cpp.
References MATCH_PROPERTIES_CATALOG::Compatible(), families(), MATCH_PROPERTIES_CATALOG::FamiliesFor(), and table.
| BOOST_AUTO_TEST_CASE | ( | KeysAreCanonicalAndLabelsAreFriendly | ) |
Definition at line 156 of file test_match_properties.cpp.
References _, BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::DisplayLabel(), and MATCH_PROPERTIES_CATALOG::Family().
| BOOST_AUTO_TEST_CASE | ( | LayerIsNotSharedWithConnectedItems | ) |
Definition at line 207 of file test_match_properties.cpp.
References families(), and MATCH_PROPERTIES_CATALOG::FamiliesFor().
| BOOST_AUTO_TEST_CASE | ( | RelatedItemsAreNotCompatible | ) |
Definition at line 484 of file test_match_properties.cpp.
References BOOST_CHECK_EQUAL(), MATCH_PROPERTIES_CATALOG::Compatible(), MATCH_PROPERTIES_CATALOG::Family(), ZONE::SetIsRuleArea(), and table.
| BOOST_AUTO_TEST_CASE | ( | UnrelatedKindsAreNotCompatible | ) |
Definition at line 71 of file test_match_properties.cpp.
References MATCH_PROPERTIES_CATALOG::Compatible(), text, and via.
| BOOST_AUTO_TEST_CASE | ( | ZoneAndRuleAreaKeysDoNotOverlap | ) |
Definition at line 446 of file test_match_properties.cpp.
References MATCH_PROPERTIES_CATALOG::AllSafeKeys().