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_test_utils.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 <text_var_dependency.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)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

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 45 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/6]

◆ BOOST_AUTO_TEST_CASE() [3/6]

◆ BOOST_AUTO_TEST_CASE() [4/6]

◆ BOOST_AUTO_TEST_CASE() [5/6]

◆ BOOST_AUTO_TEST_CASE() [6/6]