KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_fields_table_presence.cpp File Reference
#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)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/20]

BOOST_AUTO_TEST_CASE ( ApplyingBaseEditDoesNotCreateUntouchedVariantOverride )

◆ BOOST_AUTO_TEST_CASE() [2/20]

◆ BOOST_AUTO_TEST_CASE() [3/20]

BOOST_AUTO_TEST_CASE ( CopyUsesStagedSourceValuesForDefaultAndNamedVariants )

◆ BOOST_AUTO_TEST_CASE() [4/20]

BOOST_AUTO_TEST_CASE ( DiscardingModelAfterVariantSwitchLeavesBoardUnchanged )

◆ BOOST_AUTO_TEST_CASE() [5/20]

BOOST_AUTO_TEST_CASE ( ExcludeFromSimulationAttributeIsEditable )

Definition at line 152 of file test_fields_table_presence.cpp.

References BOOST_CHECK_EQUAL().

◆ BOOST_AUTO_TEST_CASE() [6/20]

BOOST_AUTO_TEST_CASE ( ExcludeFromSimulationAttributeIsVariantAware )

Definition at line 168 of file test_fields_table_presence.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/20]

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() [8/20]

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() [9/20]

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() [10/20]

BOOST_AUTO_TEST_CASE ( MixedVariablesRespectClearEmptyAndMissingFields )

◆ BOOST_AUTO_TEST_CASE() [11/20]

BOOST_AUTO_TEST_CASE ( MixedVariablesUseStagedFieldsForDisplayAndExport )

◆ BOOST_AUTO_TEST_CASE() [12/20]

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() [13/20]

BOOST_AUTO_TEST_CASE ( RefreshMergesLiveFieldsWithoutLosingStagedEdits )

◆ BOOST_AUTO_TEST_CASE() [14/20]

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() [15/20]

BOOST_AUTO_TEST_CASE ( RenameAcrossComputedBoundaryResetsStoredValue )

◆ BOOST_AUTO_TEST_CASE() [16/20]

BOOST_AUTO_TEST_CASE ( RevertingVariantRetainsOtherVariantsEdits )

◆ BOOST_AUTO_TEST_CASE() [17/20]

BOOST_AUTO_TEST_CASE ( UndoRestoresEditsInTheirVariantsAndPreservesExternalChanges )

◆ BOOST_AUTO_TEST_CASE() [18/20]

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() [19/20]

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() [20/20]

BOOST_AUTO_TEST_CASE ( VariantSwitchStagesAllEditsUntilApply )