KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_text_var_reactive.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <algorithm>
#include <board.h>
#include <board_commit.h>
#include <board_text_var_adapter.h>
#include <footprint.h>
#include <pcb_field.h>
#include <pcb_text.h>
#include <pcbnew_utils/board_test_utils.h>
#include <text_var_dependency.h>
#include <tool/tool_manager.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (AdapterIsInstalledOnConstruction)
 End-to-end reactive pipeline: BOARD commits + TEXT_VAR_TRACKER + BOARD_TEXT_VAR_ADAPTER together.
 
 BOOST_AUTO_TEST_CASE (AddingTextItemRegistersDependencies)
 
 BOOST_AUTO_TEST_CASE (FootprintChangeFiresInvalidation)
 
 BOOST_AUTO_TEST_CASE (RemovedItemsAreUnregistered)
 
 BOOST_AUTO_TEST_CASE (SpiceOPTokensAreNotRegistered)
 
 BOOST_AUTO_TEST_CASE (VariantSwitchFiresCrossRefInvalidation)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

BOOST_AUTO_TEST_CASE ( AdapterIsInstalledOnConstruction )

End-to-end reactive pipeline: BOARD commits + TEXT_VAR_TRACKER + BOARD_TEXT_VAR_ADAPTER together.

These tests exercise the listener-driven flow that the adapter installs in the BOARD constructor.

Definition at line 41 of file test_text_var_reactive.cpp.

References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOARD::GetTextVarAdapter(), TEXT_VAR_TRACKER::Index(), TEXT_VAR_DEPENDENCY_INDEX::ItemCount(), and BOARD_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]