|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <diff_merge/property_diff.h>#include <diff_merge/kicad_diff_types.h>#include <board.h>#include <footprint.h>#include <pcb_field.h>#include <algorithm>#include <vector>Go to the source code of this file.
Functions | |
| static const PROPERTY_DELTA * | findDelta (const std::vector< PROPERTY_DELTA > &aDeltas, const wxString &aName) |
| BOOST_AUTO_TEST_CASE (FootprintDynamicPropertyOrder) | |
| BOOST_AUTO_TEST_CASE (DynamicSkipsStaticFields) | |
| BOOST_AUTO_TEST_CASE (FootprintFieldGetterAbsentVsEmpty) | |
| BOOST_AUTO_TEST_CASE (ApplyResolvesDynamicFieldProperty) | |
| BOOST_AUTO_TEST_CASE (ApplyFailsForNonexistentField) | |
| BOOST_AUTO_TEST_CASE (DynamicPropertyCacheStable) | |
| BOOST_AUTO_TEST_CASE (DynamicPropertyLookupCaseInsensitive) | |
| BOOST_AUTO_TEST_CASE (CustomPropertiesExposedAsDynamic) | |
| BOOST_AUTO_TEST_CASE | ( | ApplyFailsForNonexistentField | ) |
Definition at line 194 of file test_pcb_dynamic_properties.cpp.
References KICAD_DIFF::PROPERTY_APPLY_COUNTS::applied, KICAD_DIFF::ApplyPropertyResolutions(), BOOST_CHECK_EQUAL(), KICAD_DIFF::PROPERTY_APPLY_COUNTS::failed, KICAD_DIFF::OURS, and res.
| BOOST_AUTO_TEST_CASE | ( | ApplyResolvesDynamicFieldProperty | ) |
Definition at line 164 of file test_pcb_dynamic_properties.cpp.
References FOOTPRINT::Add(), KICAD_DIFF::PROPERTY_APPLY_COUNTS::applied, KICAD_DIFF::ApplyPropertyResolutions(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KICAD_DIFF::PROPERTY_APPLY_COUNTS::failed, FOOTPRINT::GetField(), EDA_TEXT::GetText(), KICAD_DIFF::OURS, res, EDA_TEXT::SetText(), and USER.
| BOOST_AUTO_TEST_CASE | ( | CustomPropertiesExposedAsDynamic | ) |
Definition at line 273 of file test_pcb_dynamic_properties.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), INSPECTABLE::Get(), EDA_ITEM::GetCustomProperties(), FOOTPRINT::GetDynamicProperties(), INSPECTABLE::Set(), EDA_ITEM::SetCustomProperty(), and text.
| BOOST_AUTO_TEST_CASE | ( | DynamicPropertyCacheStable | ) |
Definition at line 212 of file test_pcb_dynamic_properties.cpp.
References FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FOOTPRINT::GetDynamicProperties(), and USER.
| BOOST_AUTO_TEST_CASE | ( | DynamicPropertyLookupCaseInsensitive | ) |
Definition at line 243 of file test_pcb_dynamic_properties.cpp.
References FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FOOTPRINT::GetDynamicProperties(), PROPERTY_MANAGER::GetProperty(), PROPERTY_MANAGER::Instance(), and USER.
| BOOST_AUTO_TEST_CASE | ( | DynamicSkipsStaticFields | ) |
Definition at line 110 of file test_pcb_dynamic_properties.cpp.
References FOOTPRINT::GetDynamicProperties(), PROPERTY_MANAGER::GetProperties(), PROPERTY_MANAGER::Instance(), and TYPE_HASH.
| BOOST_AUTO_TEST_CASE | ( | FootprintDynamicPropertyOrder | ) |
Definition at line 51 of file test_pcb_dynamic_properties.cpp.
References FOOTPRINT::Add(), BOOST_AUTO_TEST_CASE(), FOOTPRINT::GetDynamicProperties(), FOOTPRINT::GetField(), PCB_FIELD::IsMandatory(), PCB_FIELD::IsPrivate(), name, PCB_FIELD::SetPrivate(), and USER.
| BOOST_AUTO_TEST_CASE | ( | FootprintFieldGetterAbsentVsEmpty | ) |
Definition at line 131 of file test_pcb_dynamic_properties.cpp.
References FOOTPRINT::Add(), KICAD_DIFF::PROPERTY_DELTA::after, KICAD_DIFF::PROPERTY_DELTA::before, BOOST_REQUIRE(), KICAD_DIFF::DiffItemProperties(), findDelta(), KICAD_DIFF::DIFF_VALUE::GetType(), KICAD_DIFF::DIFF_VALUE::NONE, EDA_TEXT::SetText(), KICAD_DIFF::DIFF_VALUE::STRING, and USER.
|
static |
Definition at line 36 of file test_pcb_dynamic_properties.cpp.
Referenced by BOOST_AUTO_TEST_CASE().