KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_schematic_text_var_reactive.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <algorithm>
#include <memory>
#include <eeschema_helpers.h>
#include <eeschema_test_utils.h>
#include <locale_io.h>
#include <schematic.h>
#include <schematic_text_var_adapter.h>
#include <sch_screen.h>
#include <sch_sheet.h>
#include <sch_symbol.h>
#include <sch_text.h>
#include <sch_field.h>
#include <sch_sheet_pin.h>
#include <text_var_dependency.h>
#include "sch_table.h"

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (AdapterInstalledOnSchematicConstruction)
 SCHEMATIC_TEXT_VAR_ADAPTER exercised at the listener interface.
 
 BOOST_AUTO_TEST_CASE (SchTextItemRegistersOnAdded)
 
 BOOST_AUTO_TEST_CASE (SchSymbolFieldsRegisterAsDependents)
 
 BOOST_AUTO_TEST_CASE (RemovedItemsAreUnregistered)
 
 BOOST_AUTO_TEST_CASE (RetextReRegisters)
 
 BOOST_AUTO_TEST_CASE (SpiceOPTokensAreNotRegistered)
 
 BOOST_AUTO_TEST_CASE (LoadedSchematicIsIndexed)
 
 BOOST_AUTO_TEST_CASE (ReplacedSheetScreenIsUnindexed)
 
 BOOST_AUTO_TEST_CASE (KiidCrossRefInvalidatedBySymbolChange)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/9]

BOOST_AUTO_TEST_CASE ( AdapterInstalledOnSchematicConstruction )

SCHEMATIC_TEXT_VAR_ADAPTER exercised at the listener interface.

Drives the adapter via direct OnSchItems* calls — this bypasses SCH_COMMIT (which requires TOOL_MANAGER scaffolding) and keeps the tests focused on the adapter's own logic. The commit-driven path is exercised by the pcbnew/BOARD equivalent, which uses the same TEXT_VAR_TRACKER underneath.

Definition at line 50 of file test_schematic_text_var_reactive.cpp.

References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCHEMATIC::GetTextVarAdapter(), TEXT_VAR_TRACKER::Index(), TEXT_VAR_DEPENDENCY_INDEX::ItemCount(), and SCHEMATIC_TEXT_VAR_ADAPTER::Tracker().

◆ BOOST_AUTO_TEST_CASE() [2/9]

◆ BOOST_AUTO_TEST_CASE() [3/9]

◆ BOOST_AUTO_TEST_CASE() [4/9]

◆ BOOST_AUTO_TEST_CASE() [5/9]

◆ BOOST_AUTO_TEST_CASE() [6/9]

◆ BOOST_AUTO_TEST_CASE() [7/9]

◆ BOOST_AUTO_TEST_CASE() [8/9]

◆ BOOST_AUTO_TEST_CASE() [9/9]