KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_issue25112_shared_sheet_field_scope.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <memory>
#include <set>
#include <eeschema_helpers.h>
#include <lib_fields_data_model.h>
#include <lib_symbol.h>
#include <symbol_fields_data_model.h>
#include <locale_io.h>
#include <richio.h>
#include <sch_commit.h>
#include <sch_field.h>
#include <sch_io/kicad_sexpr/sch_io_kicad_sexpr.h>
#include <sch_reference_list.h>
#include <sch_sheet.h>
#include <sch_sheet_path.h>
#include <sch_symbol.h>
#include <schematic.h>
#include <template_fieldnames.h>
#include <tool/tool_manager.h>

Go to the source code of this file.

Classes

struct  ISSUE25112_FIXTURE
 
struct  LIB_FIELDS_TABLE_TEXT_VARS_FIXTURE
 

Functions

 BOOST_FIXTURE_TEST_CASE (SheetScopedFieldEditSurvivesApply, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (SheetScopedFieldClearCanBeReverted, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (GroupedEditStateChecksEveryItem, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (SheetScopedVariantEditStaysOnItsPath, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (CopyVariantToDefaultReachesHiddenSharedSheetPaths, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (CopyUsesSourceVariantsInheritedAttributes, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (SheetScopedBoardExclusionSurvivesApply, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (UntouchedMissingPresetFieldRemainsAbsent, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (ExplicitEmptyValueCreatesField, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (ExistingEmptyFieldCanBeCleared, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (UserAddedColumnCreatesEmptyField, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (RevertingVariantFieldCreationRestoresAbsence, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (RefreshPreservesStagedFieldsAcrossSharedSheetPaths, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (RefreshPreservesFieldPresenceEditsAcrossVariantsAndPaths, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (NewlyAddedVariantDoesNotReceivePreviousVariantsValues, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (VariantRoundTripRetainsEditsAndCancelLeavesSchematicAlone, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (RenamingAndDeletingVariantsRetargetsPendingEdits, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (RevertingVariantKeepsBaseEditsConsistentAcrossPaths, ISSUE25112_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (MixedVariablesResolveStagedVariantFieldsBeforeApply, ISSUE25112_FIXTURE)
 
 BOOST_AUTO_TEST_CASE (DerivedFieldsDisplayPendingInheritanceWithoutCreatingOverrides)
 
 BOOST_AUTO_TEST_CASE (MixedVariablesResolveStagedFieldsAndLiveFallbacks)
 
 BOOST_AUTO_TEST_CASE (StagedVariableCyclesRemainBounded)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( MixedVariablesResolveStagedFieldsAndLiveFallbacks )

Definition at line 794 of file test_issue25112_shared_sheet_field_scope.cpp.

References BOOST_CHECK_EQUAL(), and expected.

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( StagedVariableCyclesRemainBounded )

Definition at line 808 of file test_issue25112_shared_sheet_field_scope.cpp.

References BOOST_CHECK_EQUAL().

◆ BOOST_FIXTURE_TEST_CASE() [1/19]

BOOST_FIXTURE_TEST_CASE ( CopyUsesSourceVariantsInheritedAttributes ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [2/19]

BOOST_FIXTURE_TEST_CASE ( CopyVariantToDefaultReachesHiddenSharedSheetPaths ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [3/19]

BOOST_FIXTURE_TEST_CASE ( ExistingEmptyFieldCanBeCleared ,
ISSUE25112_FIXTURE  )

Definition at line 382 of file test_issue25112_shared_sheet_field_scope.cpp.

References BOOST_REQUIRE(), model, and USER.

◆ BOOST_FIXTURE_TEST_CASE() [4/19]

BOOST_FIXTURE_TEST_CASE ( ExplicitEmptyValueCreatesField ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [5/19]

◆ BOOST_FIXTURE_TEST_CASE() [6/19]

BOOST_FIXTURE_TEST_CASE ( MixedVariablesResolveStagedVariantFieldsBeforeApply ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [7/19]

BOOST_FIXTURE_TEST_CASE ( NewlyAddedVariantDoesNotReceivePreviousVariantsValues ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [8/19]

BOOST_FIXTURE_TEST_CASE ( RefreshPreservesFieldPresenceEditsAcrossVariantsAndPaths ,
ISSUE25112_FIXTURE  )

Definition at line 470 of file test_issue25112_shared_sheet_field_scope.cpp.

References BOOST_REQUIRE(), model, name, and USER.

◆ BOOST_FIXTURE_TEST_CASE() [9/19]

BOOST_FIXTURE_TEST_CASE ( RefreshPreservesStagedFieldsAcrossSharedSheetPaths ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [10/19]

BOOST_FIXTURE_TEST_CASE ( RenamingAndDeletingVariantsRetargetsPendingEdits ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [11/19]

BOOST_FIXTURE_TEST_CASE ( RevertingVariantFieldCreationRestoresAbsence ,
ISSUE25112_FIXTURE  )

Definition at line 424 of file test_issue25112_shared_sheet_field_scope.cpp.

References BOOST_REQUIRE(), and model.

◆ BOOST_FIXTURE_TEST_CASE() [12/19]

BOOST_FIXTURE_TEST_CASE ( RevertingVariantKeepsBaseEditsConsistentAcrossPaths ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [13/19]

BOOST_FIXTURE_TEST_CASE ( SheetScopedBoardExclusionSurvivesApply ,
ISSUE25112_FIXTURE  )

Definition at line 329 of file test_issue25112_shared_sheet_field_scope.cpp.

References BOOST_REQUIRE(), and model.

◆ BOOST_FIXTURE_TEST_CASE() [14/19]

BOOST_FIXTURE_TEST_CASE ( SheetScopedFieldClearCanBeReverted ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [15/19]

BOOST_FIXTURE_TEST_CASE ( SheetScopedFieldEditSurvivesApply ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [16/19]

BOOST_FIXTURE_TEST_CASE ( SheetScopedVariantEditStaysOnItsPath ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [17/19]

BOOST_FIXTURE_TEST_CASE ( UntouchedMissingPresetFieldRemainsAbsent ,
ISSUE25112_FIXTURE  )

Definition at line 345 of file test_issue25112_shared_sheet_field_scope.cpp.

References BOOST_REQUIRE(), and model.

◆ BOOST_FIXTURE_TEST_CASE() [18/19]

BOOST_FIXTURE_TEST_CASE ( UserAddedColumnCreatesEmptyField ,
ISSUE25112_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [19/19]

BOOST_FIXTURE_TEST_CASE ( VariantRoundTripRetainsEditsAndCancelLeavesSchematicAlone ,
ISSUE25112_FIXTURE  )