|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <memory>#include <board.h>#include <footprint.h>#include <pad.h>#include <pcb_shape.h>#include <pcb_table.h>#include <pcb_tablecell.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (SwapItemDataReindexesFootprintChildren) | |
| BOOST_AUTO_TEST_CASE (AttachedItemUuidRewriteDropsOldAlias) | |
| BOOST_AUTO_TEST_CASE (ResolvingNewUuidPurgesStaleOldAlias) | |
| BOOST_AUTO_TEST_CASE (RebindItemUuidUpdatesCacheAtomically) | |
| BOOST_AUTO_TEST_CASE (AttachedChildSetUuidRebindsCache) | |
| BOOST_AUTO_TEST_CASE (CacheItemByIdCanonicalizesRewrittenUuid) | |
| BOOST_AUTO_TEST_CASE (RepairDuplicateItemUuidsKeepsEarlierTraversalWinner) | |
| BOOST_AUTO_TEST_CASE (RemovingResolvedChildEvictsCacheOnFootprintHolder) | |
| BOOST_AUTO_TEST_CASE (TableCellResolvesToTheCellNotItsTable) | |
| BOOST_AUTO_TEST_CASE (FootprintTableCellResolvesByItsOwnId) | |
| BOOST_AUTO_TEST_CASE | ( | AttachedChildSetUuidRebindsCache | ) |
Definition at line 127 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_CHECK_EQUAL(), BOARD::GetItemByIdCache(), EDA_ITEM::m_Uuid, PAD, pad, BOARD::ResolveItem(), and BOARD_ITEM::SetUuid().
| BOOST_AUTO_TEST_CASE | ( | AttachedItemUuidRewriteDropsOldAlias | ) |
Definition at line 66 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_CHECK_EQUAL(), EDA_ITEM::m_Uuid, and BOARD::ResolveItem().
| BOOST_AUTO_TEST_CASE | ( | CacheItemByIdCanonicalizesRewrittenUuid | ) |
Definition at line 151 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_CHECK_EQUAL(), BOARD::CacheItemById(), BOARD::GetItemByIdCache(), EDA_ITEM::m_Uuid, and BOARD::ResolveItem().
| BOOST_AUTO_TEST_CASE | ( | FootprintTableCellResolvesByItsOwnId | ) |
Definition at line 264 of file test_board_item_index.cpp.
References BOARD::Add(), APPEND, BOOST_CHECK_EQUAL(), BOARD::ClearItemByIdCache(), FOOTPRINT, BOARD::ResolveItem(), and table.
| BOOST_AUTO_TEST_CASE | ( | RebindItemUuidUpdatesCacheAtomically | ) |
Definition at line 106 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_CHECK_EQUAL(), BOARD::GetItemByIdCache(), EDA_ITEM::m_Uuid, BOARD::RebindItemUuid(), and BOARD::ResolveItem().
| BOOST_AUTO_TEST_CASE | ( | RemovingResolvedChildEvictsCacheOnFootprintHolder | ) |
Definition at line 202 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, FPHOLDER, BOARD::GetItemByIdCache(), PAD, pad, FOOTPRINT::Remove(), BOARD::ResolveItem(), and BOARD::SetBoardUse().
| BOOST_AUTO_TEST_CASE | ( | RepairDuplicateItemUuidsKeepsEarlierTraversalWinner | ) |
Definition at line 173 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_CHECK_EQUAL(), EDA_ITEM::m_Uuid, BOARD::RepairDuplicateItemUuids(), and BOARD::ResolveItem().
| BOOST_AUTO_TEST_CASE | ( | ResolvingNewUuidPurgesStaleOldAlias | ) |
Definition at line 86 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_CHECK_EQUAL(), BOARD::GetItemByIdCache(), EDA_ITEM::m_Uuid, and BOARD::ResolveItem().
| BOOST_AUTO_TEST_CASE | ( | SwapItemDataReindexesFootprintChildren | ) |
Definition at line 35 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FOOTPRINT::Clone(), image, EDA_ITEM::m_Uuid, PAD, pad, PCB_PAD_T, BOARD::ResolveItem(), BOARD_ITEM::SwapItemData(), and EDA_ITEM::Type().
| BOOST_AUTO_TEST_CASE | ( | TableCellResolvesToTheCellNotItsTable | ) |
Definition at line 238 of file test_board_item_index.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOARD::ClearItemByIdCache(), BOARD::GetItemByIdCache(), BOARD::ResolveItem(), and table.