|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <qa_utils/wx_utils/unit_test_utils.h>#include <board.h>#include <board_commit.h>#include <footprint.h>#include <footprint_fields_data_model.h>#include <pcb_field.h>#include <template_fieldnames.h>#include <tool/tool_manager.h>Go to the source code of this file.
Classes | |
| struct | FOOTPRINT_FIELDS_TABLE_PRESENCE_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (UntouchedMissingPresetFieldRemainsAbsent) | |
| BOOST_AUTO_TEST_CASE (ExplicitEmptyValueCreatesField) | |
| BOOST_AUTO_TEST_CASE (ExistingEmptyFieldCanBeCleared) | |
| BOOST_AUTO_TEST_CASE (UserAddedColumnCreatesEmptyField) | |
| BOOST_AUTO_TEST_CASE (ExcludeFromSimulationAttributeIsEditable) | |
| BOOST_AUTO_TEST_CASE (ExcludeFromSimulationAttributeIsVariantAware) | |
| BOOST_AUTO_TEST_CASE (RenameAcrossComputedBoundaryResetsStoredValue) | |
| BOOST_AUTO_TEST_CASE (RefreshMergesLiveFieldsWithoutLosingStagedEdits) | |
| BOOST_AUTO_TEST_CASE (RefreshPreservesClearAndExplicitEmptyCreation) | |
| BOOST_AUTO_TEST_CASE (VariantSwitchStagesAllEditsUntilApply) | |
| BOOST_AUTO_TEST_CASE (DiscardingModelAfterVariantSwitchLeavesBoardUnchanged) | |
| BOOST_AUTO_TEST_CASE (CopyUsesStagedSourceValuesForDefaultAndNamedVariants) | |
| BOOST_AUTO_TEST_CASE (CopyGroupedCellPreservesEachFootprintsSourceValue) | |
| BOOST_AUTO_TEST_CASE (ApplyingBaseEditDoesNotCreateUntouchedVariantOverride) | |
| BOOST_AUTO_TEST_CASE (FieldClearIsSharedWithNewVariantAndCanBeReverted) | |
| BOOST_AUTO_TEST_CASE (UndoRestoresEditsInTheirVariantsAndPreservesExternalChanges) | |
| BOOST_AUTO_TEST_CASE (RefreshMergesInactiveVariantAndExternalFieldRemoval) | |
| BOOST_AUTO_TEST_CASE (RevertingVariantRetainsOtherVariantsEdits) | |
| BOOST_AUTO_TEST_CASE (MixedVariablesUseStagedFieldsForDisplayAndExport) | |
| BOOST_AUTO_TEST_CASE (MixedVariablesRespectClearEmptyAndMissingFields) | |
| BOOST_AUTO_TEST_CASE | ( | ApplyingBaseEditDoesNotCreateUntouchedVariantOverride | ) |
Definition at line 373 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), GetDefaultFieldName(), name, UNTRANSLATED, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | CopyGroupedCellPreservesEachFootprintsSourceValue | ) |
Definition at line 347 of file test_fields_table_presence.cpp.
References FOOTPRINT::AddVariant(), BOOST_CHECK_EQUAL(), FOOTPRINT, GetDefaultFieldName(), FOOTPRINT::GetValue(), INDETERMINATE_STATE, name, FOOTPRINT_VARIANT::SetFieldValue(), FOOTPRINT::SetReference(), FOOTPRINT::SetValue(), UNTRANSLATED, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | CopyUsesStagedSourceValuesForDefaultAndNamedVariants | ) |
Definition at line 320 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), GetDefaultFieldName(), GetDefaultVariantName(), name, UNTRANSLATED, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | DiscardingModelAfterVariantSwitchLeavesBoardUnchanged | ) |
Definition at line 300 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), GetDefaultFieldName(), model, name, REFERENCE, UNTRANSLATED, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | ExcludeFromSimulationAttributeIsEditable | ) |
Definition at line 152 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL().
| BOOST_AUTO_TEST_CASE | ( | ExcludeFromSimulationAttributeIsVariantAware | ) |
Definition at line 168 of file test_fields_table_presence.cpp.
| BOOST_AUTO_TEST_CASE | ( | ExistingEmptyFieldCanBeCleared | ) |
Definition at line 114 of file test_fields_table_presence.cpp.
References BOOST_REQUIRE(), and USER.
| BOOST_AUTO_TEST_CASE | ( | ExplicitEmptyValueCreatesField | ) |
Definition at line 94 of file test_fields_table_presence.cpp.
References BOOST_REQUIRE(), and EDA_TEXT::GetText().
| BOOST_AUTO_TEST_CASE | ( | FieldClearIsSharedWithNewVariantAndCanBeReverted | ) |
Definition at line 390 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), name, EDA_TEXT::SetText(), and USER.
| BOOST_AUTO_TEST_CASE | ( | MixedVariablesRespectClearEmptyAndMissingFields | ) |
Definition at line 515 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), EDA_TEXT::GetText(), EDA_TEXT::SetText(), and USER.
| BOOST_AUTO_TEST_CASE | ( | MixedVariablesUseStagedFieldsForDisplayAndExport | ) |
Definition at line 484 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), expected, GetDefaultFieldName(), EDA_TEXT::SetText(), UNTRANSLATED, USER, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | RefreshMergesInactiveVariantAndExternalFieldRemoval | ) |
Definition at line 433 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), name, EDA_TEXT::SetText(), and USER.
| BOOST_AUTO_TEST_CASE | ( | RefreshMergesLiveFieldsWithoutLosingStagedEdits | ) |
Definition at line 216 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), GetDefaultFieldName(), EDA_TEXT::GetText(), name, EDA_TEXT::SetText(), UNTRANSLATED, USER, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | RefreshPreservesClearAndExplicitEmptyCreation | ) |
Definition at line 248 of file test_fields_table_presence.cpp.
References BOOST_REQUIRE(), and USER.
| BOOST_AUTO_TEST_CASE | ( | RenameAcrossComputedBoundaryResetsStoredValue | ) |
Definition at line 185 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), EDA_TEXT::GetText(), EDA_TEXT::SetText(), and USER.
| BOOST_AUTO_TEST_CASE | ( | RevertingVariantRetainsOtherVariantsEdits | ) |
Definition at line 463 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), GetDefaultFieldName(), UNTRANSLATED, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | UndoRestoresEditsInTheirVariantsAndPreservesExternalChanges | ) |
Definition at line 411 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), GetDefaultFieldName(), UNTRANSLATED, and VALUE.
| BOOST_AUTO_TEST_CASE | ( | UntouchedMissingPresetFieldRemainsAbsent | ) |
Definition at line 80 of file test_fields_table_presence.cpp.
References BOOST_AUTO_TEST_CASE(), and BOOST_REQUIRE().
| BOOST_AUTO_TEST_CASE | ( | UserAddedColumnCreatesEmptyField | ) |
Definition at line 135 of file test_fields_table_presence.cpp.
References BOOST_REQUIRE(), and EDA_TEXT::GetText().
| BOOST_AUTO_TEST_CASE | ( | VariantSwitchStagesAllEditsUntilApply | ) |
Definition at line 271 of file test_fields_table_presence.cpp.
References BOOST_CHECK_EQUAL(), GetDefaultFieldName(), name, UNTRANSLATED, and VALUE.