|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <eda_item_test_utils.h>#include <core/typeinfo.h>#include <drc/drc_item.h>#include <board.h>#include <board_design_settings.h>#include <board_item.h>#include <footprint.h>#include <pad.h>#include <pcb_shape.h>#include <pcb_barcode.h>#include <pcb_text.h>#include <pcb_textbox.h>#include <pcb_table.h>#include <pcb_tablecell.h>#include <pcb_reference_image.h>#include <zone.h>#include <pcb_track.h>#include <pcb_marker.h>#include <pcb_dimension.h>#include <pcb_point.h>#include <pcb_target.h>#include <pcb_group.h>#include <pcb_board_outline.h>#include <properties/property.h>#include <properties/property_mgr.h>Go to the source code of this file.
Classes | |
| class | TEST_BOARD_ITEM_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (Type) | |
| BOOST_AUTO_TEST_CASE (Move) | |
| BOOST_AUTO_TEST_CASE (Rotate) | |
| BOOST_AUTO_TEST_CASE (FlipLeftRight) | |
| BOOST_AUTO_TEST_CASE (FlipUpDown) | |
| BOOST_AUTO_TEST_CASE (Issue23234_CustomPadstackFlip) | |
| Regression test for issue #23234: Changing padstack mode to Custom on a flipped footprint's pad and pressing OK caused an "Unhandled exception" (std::out_of_range) because PADSTACK::CopperLayer( F_Cu ) fell through to m_copperProps.at( ALL_LAYERS ) after FlipLayers() had renamed the F_Cu key to B_Cu. | |
| BOOST_AUTO_TEST_CASE (Issue24696_SwapItemDataKeepsGroupMembership) | |
| BOOST_AUTO_TEST_CASE (RecordDRCExclusionsSkipsMarkerWithoutRCItem) | |
| BOOST_AUTO_TEST_CASE (ResolveItemIdentityCachePurgedOnDestruction) | |
| BOOST_AUTO_TEST_CASE (IndexMembershipFlagTracksCache) | |
| BOOST_AUTO_TEST_CASE (RejectedAddLeavesItemUnindexed) | |
| BOOST_AUTO_TEST_CASE (UncachedItemSurvivesBoardDestruction) | |
| BOOST_AUTO_TEST_CASE | ( | FlipLeftRight | ) |
Definition at line 277 of file test_board_item.cpp.
References BOOST_TEST_CONTEXT(), IterateOverPositionsAndReferences(), and MAX_STRUCT_TYPE_ID.
| BOOST_AUTO_TEST_CASE | ( | FlipUpDown | ) |
Definition at line 312 of file test_board_item.cpp.
References BOOST_TEST_CONTEXT(), IterateOverPositionsAndReferences(), and MAX_STRUCT_TYPE_ID.
| BOOST_AUTO_TEST_CASE | ( | IndexMembershipFlagTracksCache | ) |
Definition at line 459 of file test_board_item.cpp.
References BOARD::Add(), BOOST_REQUIRE(), BOARD::CacheAndReturnItemById(), BOARD::CacheItemById(), BOARD::ClearItemByIdCache(), copy, FOOTPRINT, BOARD::IsItemIndexedById(), PAD, pad, FOOTPRINT::Pads(), BOARD::UncacheItemById(), and BOARD::UncacheItemByPtr().
| BOOST_AUTO_TEST_CASE | ( | Issue23234_CustomPadstackFlip | ) |
Regression test for issue #23234: Changing padstack mode to Custom on a flipped footprint's pad and pressing OK caused an "Unhandled exception" (std::out_of_range) because PADSTACK::CopperLayer( F_Cu ) fell through to m_copperProps.at( ALL_LAYERS ) after FlipLayers() had renamed the F_Cu key to B_Cu.
Definition at line 353 of file test_board_item.cpp.
References PADSTACK::ALL_LAYERS, CIRCLE, PADSTACK::CUSTOM, F_Cu, pad, BASE_SET::set(), SMD, and TOP_BOTTOM.
| BOOST_AUTO_TEST_CASE | ( | Issue24696_SwapItemDataKeepsGroupMembership | ) |
Definition at line 391 of file test_board_item.cpp.
References EDA_ITEM::GetParentGroup(), group, image, EDA_ITEM::SetParentGroup(), and BOARD_ITEM::SwapItemData().
| BOOST_AUTO_TEST_CASE | ( | Move | ) |
Definition at line 198 of file test_board_item.cpp.
References BOOST_TEST_CONTEXT(), IterateOverPositionsAndReferences(), and MAX_STRUCT_TYPE_ID.
| BOOST_AUTO_TEST_CASE | ( | RecordDRCExclusionsSkipsMarkerWithoutRCItem | ) |
Definition at line 415 of file test_board_item.cpp.
References BOARD::Add(), BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::m_DrcExclusions, BOARD::RecordDRCExclusions(), and MARKER_BASE::SetExcluded().
| BOOST_AUTO_TEST_CASE | ( | RejectedAddLeavesItemUnindexed | ) |
Definition at line 500 of file test_board_item.cpp.
References BOARD::Add(), CHECK_WX_ASSERT, Edge_Cuts, BOARD_ITEM::IsIndexedInBoard(), BOARD::IsItemIndexedById(), and BOARD_CONNECTED_ITEM::SetLayer().
| BOOST_AUTO_TEST_CASE | ( | ResolveItemIdentityCachePurgedOnDestruction | ) |
Definition at line 430 of file test_board_item.cpp.
References BOARD::Add(), BOOST_REQUIRE(), BOARD::CacheItemById(), FOOTPRINT, BOARD::IsItemIndexedById(), PAD, pad, FOOTPRINT::Pads(), and BOARD::ResolveItem().
| BOOST_AUTO_TEST_CASE | ( | Rotate | ) |
Definition at line 236 of file test_board_item.cpp.
References BOOST_TEST_CONTEXT(), IterateOverPositionsAndReferences(), and MAX_STRUCT_TYPE_ID.
| BOOST_AUTO_TEST_CASE | ( | Type | ) |
Definition at line 179 of file test_board_item.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_TEST_CONTEXT(), ENUM_MAP< T >::Instance(), and MAX_STRUCT_TYPE_ID.
| BOOST_AUTO_TEST_CASE | ( | UncachedItemSurvivesBoardDestruction | ) |
Definition at line 518 of file test_board_item.cpp.
References BOARD, BOOST_REQUIRE(), and dummy.