|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <algorithm>#include <base_units.h>#include <drawing_sheet/ds_data_item.h>#include <drawing_sheet/ds_data_model.h>#include <drawing_sheet/ds_draw_item.h>#include <drawing_sheet/ds_proxy_view_item.h>#include <page_info.h>#include <text_var_dependency.h>#include <title_block.h>Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_NO_MAIN |
Functions | |
| BOOST_AUTO_TEST_CASE (CollectKeysFindsTitleBlockSources) | |
| BOOST_AUTO_TEST_CASE (AttachRegistersProxyAsDependent) | |
| BOOST_AUTO_TEST_CASE (InvalidationReachesProxyViaListener) | |
| BOOST_AUTO_TEST_CASE (DetachUnregistersProxy) | |
| BOOST_AUTO_TEST_CASE (DestructorAutoUnregisters) | |
| BOOST_AUTO_TEST_CASE (RepeatedTextKeepsAllInstancesWithNegativeStep) | |
| static std::vector< wxString > | repeatTexts (const wxString &aBase, int aCount, int aLabelStep) |
| BOOST_AUTO_TEST_CASE (RepeatedLabelStepsLettersAndNumbersCleanly) | |
| #define BOOST_TEST_NO_MAIN |
Definition at line 20 of file test_drawing_sheet_reactive.cpp.
| BOOST_AUTO_TEST_CASE | ( | AttachRegistersProxyAsDependent | ) |
Definition at line 78 of file test_drawing_sheet_reactive.cpp.
References DS_PROXY_VIEW_ITEM::AttachToTracker(), TEXT_VAR_DEPENDENCY_INDEX::DependentCount(), TEXT_VAR_REF_KEY::FromToken(), TEXT_VAR_TRACKER::Index(), and unityScale.
| BOOST_AUTO_TEST_CASE | ( | CollectKeysFindsTitleBlockSources | ) |
Definition at line 51 of file test_drawing_sheet_reactive.cpp.
References BOOST_AUTO_TEST_CASE(), DS_PROXY_VIEW_ITEM::CollectTextVarKeys(), TEXT_VAR_REF_KEY::TITLE_BLOCK, and unityScale.
| BOOST_AUTO_TEST_CASE | ( | DestructorAutoUnregisters | ) |
Definition at line 146 of file test_drawing_sheet_reactive.cpp.
References DS_PROXY_VIEW_ITEM::AttachToTracker(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), TEXT_VAR_TRACKER::Index(), TEXT_VAR_DEPENDENCY_INDEX::ItemCount(), and unityScale.
| BOOST_AUTO_TEST_CASE | ( | DetachUnregistersProxy | ) |
Definition at line 125 of file test_drawing_sheet_reactive.cpp.
References DS_PROXY_VIEW_ITEM::AttachToTracker(), BOOST_CHECK_EQUAL(), TEXT_VAR_DEPENDENCY_INDEX::DependentCount(), TEXT_VAR_REF_KEY::FromToken(), TEXT_VAR_TRACKER::Index(), and unityScale.
| BOOST_AUTO_TEST_CASE | ( | InvalidationReachesProxyViaListener | ) |
Definition at line 99 of file test_drawing_sheet_reactive.cpp.
References TEXT_VAR_TRACKER::AddInvalidateListener(), DS_PROXY_VIEW_ITEM::AttachToTracker(), BOOST_CHECK_EQUAL(), TEXT_VAR_REF_KEY::FromToken(), TEXT_VAR_TRACKER::InvalidateKey(), and unityScale.
| BOOST_AUTO_TEST_CASE | ( | RepeatedLabelStepsLettersAndNumbersCleanly | ) |
Definition at line 228 of file test_drawing_sheet_reactive.cpp.
References repeatTexts().
| BOOST_AUTO_TEST_CASE | ( | RepeatedTextKeepsAllInstancesWithNegativeStep | ) |
Definition at line 165 of file test_drawing_sheet_reactive.cpp.
References BOOST_CHECK_EQUAL(), DS_DRAW_ITEM_LIST::BuildDrawItemsList(), DS_DRAW_ITEM_LIST::GetFirst(), DS_DRAW_ITEM_LIST::GetNext(), DS_DATA_MODEL::GetTheInstance(), LT_CORNER, model, text, unityScale, and WSG_TEXT_T.
|
static |
Definition at line 198 of file test_drawing_sheet_reactive.cpp.
References DS_DRAW_ITEM_LIST::BuildDrawItemsList(), DS_DRAW_ITEM_LIST::GetFirst(), DS_DRAW_ITEM_LIST::GetNext(), DS_DATA_MODEL::GetTheInstance(), LT_CORNER, model, text, unityScale, and WSG_TEXT_T.
Referenced by BOOST_AUTO_TEST_CASE().