|
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 int | repeatCountAtY (double aY) |
| BOOST_AUTO_TEST_CASE (RepeatedTextAnchoredInPageMarginKeepsItsRepeats) | |
| static std::vector< wxString > | repeatTexts (const wxString &aBase, int aCount, int aLabelStep) |
| BOOST_AUTO_TEST_CASE (RepeatedLabelStepsLettersAndNumbersCleanly) | |
| BOOST_CHECK_EQUAL_COLLECTIONS (mixed.begin(), mixed.end(), expMixed.begin(), expMixed.end()) | |
| BOOST_CHECK_EQUAL_COLLECTIONS (fullWidth.begin(), fullWidth.end(), expFullWidth.begin(), expFullWidth.end()) | |
Variables | |
| const std::vector< wxString > | expMixed |
| const std::vector< wxString > | fullWidth = repeatTexts( wxString( L"1" ), 3, 1 ) |
| const std::vector< wxString > | expFullWidth |
| #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 151 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 130 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 101 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 274 of file test_drawing_sheet_reactive.cpp.
References BOOST_CHECK_EQUAL_COLLECTIONS(), and repeatTexts().
| BOOST_AUTO_TEST_CASE | ( | RepeatedTextAnchoredInPageMarginKeepsItsRepeats | ) |
Definition at line 233 of file test_drawing_sheet_reactive.cpp.
References BOOST_CHECK_EQUAL(), and repeatCountAtY().
| BOOST_AUTO_TEST_CASE | ( | RepeatedTextKeepsAllInstancesWithNegativeStep | ) |
Definition at line 170 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.
| BOOST_CHECK_EQUAL_COLLECTIONS | ( | fullWidth. | begin(), |
| fullWidth. | end(), | ||
| expFullWidth. | begin(), | ||
| expFullWidth. | end() ) |
References expFullWidth, and fullWidth.
| BOOST_CHECK_EQUAL_COLLECTIONS | ( | mixed. | begin(), |
| mixed. | end(), | ||
| expMixed. | begin(), | ||
| expMixed. | end() ) |
References expMixed.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_DATA_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CheckArrayNumbering(), and CheckPadNumberProvider().
|
static |
Definition at line 203 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().
|
static |
Definition at line 244 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().
| const std::vector<wxString> expFullWidth |
Definition at line 299 of file test_drawing_sheet_reactive.cpp.
Referenced by BOOST_CHECK_EQUAL_COLLECTIONS().
| const std::vector<wxString> expMixed |
Definition at line 293 of file test_drawing_sheet_reactive.cpp.
Referenced by BOOST_CHECK_EQUAL_COLLECTIONS().
| const std::vector<wxString> fullWidth = repeatTexts( wxString( L"1" ), 3, 1 ) |
Definition at line 298 of file test_drawing_sheet_reactive.cpp.
Referenced by BOOST_CHECK_EQUAL_COLLECTIONS().