KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_board_item.cpp File Reference
#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_drill_chart.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_grid_item.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)
 
static PCB_TABLEmakeTable (BOARD &aBoard, const int aColWidths[2], const int aRowHeights[2], double aDegrees)
 
 BOOST_AUTO_TEST_CASE (TableFlipSwapsTheChosenAxis)
 
 BOOST_AUTO_TEST_CASE (TableBoundingBoxCoversEveryCell)
 
 BOOST_AUTO_TEST_CASE (TextBoxBoundingBoxFollowsItsRotation)
 
 BOOST_AUTO_TEST_CASE (TableFlipTiltsTheWayEverythingElseDoes)
 
 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 (UncachedItemSurvivesBoardDestruction)
 
 BOOST_AUTO_TEST_CASE (IndexedItemSurvivesBoardDestruction)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/15]

BOOST_AUTO_TEST_CASE ( FlipLeftRight )

◆ BOOST_AUTO_TEST_CASE() [2/15]

BOOST_AUTO_TEST_CASE ( FlipUpDown )

◆ BOOST_AUTO_TEST_CASE() [3/15]

BOOST_AUTO_TEST_CASE ( IndexedItemSurvivesBoardDestruction )

◆ BOOST_AUTO_TEST_CASE() [4/15]

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 631 of file test_board_item.cpp.

References PADSTACK::ALL_LAYERS, CIRCLE, PADSTACK::CUSTOM, F_Cu, PADSTACK::NORMAL, pad, BASE_SET::set(), SMD, and TOP_BOTTOM.

◆ BOOST_AUTO_TEST_CASE() [5/15]

BOOST_AUTO_TEST_CASE ( Issue24696_SwapItemDataKeepsGroupMembership )

◆ BOOST_AUTO_TEST_CASE() [6/15]

BOOST_AUTO_TEST_CASE ( Move )

◆ BOOST_AUTO_TEST_CASE() [7/15]

BOOST_AUTO_TEST_CASE ( RecordDRCExclusionsSkipsMarkerWithoutRCItem )

◆ BOOST_AUTO_TEST_CASE() [8/15]

BOOST_AUTO_TEST_CASE ( ResolveItemIdentityCachePurgedOnDestruction )

◆ BOOST_AUTO_TEST_CASE() [9/15]

BOOST_AUTO_TEST_CASE ( Rotate )

◆ BOOST_AUTO_TEST_CASE() [10/15]

BOOST_AUTO_TEST_CASE ( TableBoundingBoxCoversEveryCell )

◆ BOOST_AUTO_TEST_CASE() [11/15]

◆ BOOST_AUTO_TEST_CASE() [12/15]

BOOST_AUTO_TEST_CASE ( TableFlipTiltsTheWayEverythingElseDoes )

◆ BOOST_AUTO_TEST_CASE() [13/15]

◆ BOOST_AUTO_TEST_CASE() [14/15]

BOOST_AUTO_TEST_CASE ( Type )

◆ BOOST_AUTO_TEST_CASE() [15/15]

BOOST_AUTO_TEST_CASE ( UncachedItemSurvivesBoardDestruction )

Definition at line 739 of file test_board_item.cpp.

References BOARD, BOOST_REQUIRE(), and dummy.

◆ makeTable()

static PCB_TABLE * makeTable ( BOARD & aBoard,
const int aColWidths[2],
const int aRowHeights[2],
double aDegrees )
static