|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <chrono>#include <memory>#include <board.h>#include <footprint.h>#include <pad.h>#include <pcb_shape.h>#include <pcb_table.h>#include <pcb_tablecell.h>#include <pcb_track.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (ResolveItemIdentityCachePurgedOnDestruction) | |
| BOOST_AUTO_TEST_CASE (UncachedItemSurvivesBoardDestruction) | |
| BOOST_AUTO_TEST_CASE (IndexedItemSurvivesBoardDestruction) | |
| 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 (UnbindingForeignSubtreesDoesNotScanTheIndex) | |
| BOOST_AUTO_TEST_CASE (UnbindingThroughAnotherBoardKeepsTheOwner) | |
| BOOST_AUTO_TEST_CASE | ( | AttachedChildSetUuidRebindsCache | ) |
Definition at line 200 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_CHECK_EQUAL(), BOARD::IsItemIndexedById(), EDA_ITEM::m_Uuid, PAD, pad, BOARD::ResolveItem(), and BOARD_ITEM::SetUuid().
| BOOST_AUTO_TEST_CASE | ( | AttachedItemUuidRewriteDropsOldAlias | ) |
Definition at line 139 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 224 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_CHECK_EQUAL(), BOARD::CacheItemById(), BOARD::IsItemIndexedById(), EDA_ITEM::m_Uuid, and BOARD::ResolveItem().
| BOOST_AUTO_TEST_CASE | ( | FootprintTableCellResolvesByItsOwnId | ) |
Definition at line 337 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 | ( | IndexedItemSurvivesBoardDestruction | ) |
Definition at line 83 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_REQUIRE(), BOARD::CacheItemById(), FOOTPRINT, PAD, pad, and FOOTPRINT::Pads().
| BOOST_AUTO_TEST_CASE | ( | RebindItemUuidUpdatesCacheAtomically | ) |
Definition at line 179 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_CHECK_EQUAL(), BOARD::IsItemIndexedById(), EDA_ITEM::m_Uuid, BOARD::RebindItemUuid(), and BOARD::ResolveItem().
| BOOST_AUTO_TEST_CASE | ( | RemovingResolvedChildEvictsCacheOnFootprintHolder | ) |
Definition at line 275 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, FPHOLDER, BOARD::IsItemIndexedById(), PAD, pad, FOOTPRINT::Remove(), BOARD::ResolveItem(), and BOARD::SetBoardUse().
| BOOST_AUTO_TEST_CASE | ( | RepairDuplicateItemUuidsKeepsEarlierTraversalWinner | ) |
Definition at line 246 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 | ( | ResolveItemIdentityCachePurgedOnDestruction | ) |
Definition at line 37 of file test_board_item_index.cpp.
References BOARD::Add(), BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), BOARD::CacheItemById(), FOOTPRINT, BOARD::IsItemIndexedById(), PAD, pad, FOOTPRINT::Pads(), and BOARD::ResolveItem().
| BOOST_AUTO_TEST_CASE | ( | ResolvingNewUuidPurgesStaleOldAlias | ) |
Definition at line 159 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, BOOST_CHECK_EQUAL(), BOARD::IsItemIndexedById(), EDA_ITEM::m_Uuid, and BOARD::ResolveItem().
| BOOST_AUTO_TEST_CASE | ( | SwapItemDataReindexesFootprintChildren | ) |
Definition at line 108 of file test_board_item_index.cpp.
References BOARD::Add(), BOARD, 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 311 of file test_board_item_index.cpp.
References BOARD::Add(), BOOST_CHECK_EQUAL(), BOARD::ClearItemByIdCache(), BOARD::IsItemIndexedById(), BOARD::ResolveItem(), and table.
| BOOST_AUTO_TEST_CASE | ( | UnbindingForeignSubtreesDoesNotScanTheIndex | ) |
Definition at line 357 of file test_board_item_index.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, FOOTPRINT, and BOARD::UncacheItemSubtreeById().
| BOOST_AUTO_TEST_CASE | ( | UnbindingThroughAnotherBoardKeepsTheOwner | ) |
Definition at line 389 of file test_board_item_index.cpp.
References BOARD::CacheItemById(), BOARD::IsItemIndexedById(), PAD, pad, and BOARD::UncacheItemSubtreeById().
| BOOST_AUTO_TEST_CASE | ( | UncachedItemSurvivesBoardDestruction | ) |
Definition at line 67 of file test_board_item_index.cpp.
References BOARD, BOOST_REQUIRE(), and dummy.