KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_cross_probe_selection.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <pcbnew_utils/board_test_utils.h>
#include <algorithm>
#include <memory>
#include <api/api_pcb_utils.h>
#include <api/api_utils.h>
#include <board.h>
#include <footprint.h>
#include <kiid.h>
#include <pad.h>
#include <settings/settings_manager.h>

Go to the source code of this file.

Classes

struct  CROSS_PROBE_SELECTION_FIXTURE
 

Functions

 BOOST_AUTO_TEST_CASE (SheetSelectionFindsItsFootprints)
 
 BOOST_AUTO_TEST_CASE (SiblingSheetsDoNotOverlap)
 
 BOOST_AUTO_TEST_CASE (RootSheetUuidIsIgnored)
 
 BOOST_AUTO_TEST_CASE (RootSheetSelectsTheWholeBoard)
 
 BOOST_AUTO_TEST_CASE (PinSpecResolvesToItsPad)
 
 BOOST_AUTO_TEST_CASE (SheetSpecResolvesThroughTheApi)
 
 BOOST_AUTO_TEST_CASE (SpecsResolveInRequestOrder)
 

Variables

static const wxString c_verticalSheet = wxS( "00000000-0000-0000-0000-00004b3a1333" )
 
static const wxString c_horizontalSheet = wxS( "00000000-0000-0000-0000-00004b3a13a4" )
 
static const std::size_t c_footprintsPerSheet = 29
 
static const std::size_t c_footprintsOnBoard = 72
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/7]

BOOST_AUTO_TEST_CASE ( PinSpecResolvesToItsPad )

Definition at line 142 of file test_cross_probe_selection.cpp.

References BOOST_CHECK_EQUAL(), pad, and PCB_PAD_T.

◆ BOOST_AUTO_TEST_CASE() [2/7]

BOOST_AUTO_TEST_CASE ( RootSheetSelectsTheWholeBoard )

Definition at line 132 of file test_cross_probe_selection.cpp.

References BOOST_CHECK_EQUAL(), and c_footprintsOnBoard.

◆ BOOST_AUTO_TEST_CASE() [3/7]

BOOST_AUTO_TEST_CASE ( RootSheetUuidIsIgnored )

◆ BOOST_AUTO_TEST_CASE() [4/7]

BOOST_AUTO_TEST_CASE ( SheetSelectionFindsItsFootprints )

◆ BOOST_AUTO_TEST_CASE() [5/7]

BOOST_AUTO_TEST_CASE ( SheetSpecResolvesThroughTheApi )

◆ BOOST_AUTO_TEST_CASE() [6/7]

BOOST_AUTO_TEST_CASE ( SiblingSheetsDoNotOverlap )

◆ BOOST_AUTO_TEST_CASE() [7/7]

BOOST_AUTO_TEST_CASE ( SpecsResolveInRequestOrder )

Definition at line 171 of file test_cross_probe_selection.cpp.

References BOOST_CHECK_EQUAL().

Variable Documentation

◆ c_footprintsOnBoard

const std::size_t c_footprintsOnBoard = 72
static

Definition at line 44 of file test_cross_probe_selection.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().

◆ c_footprintsPerSheet

const std::size_t c_footprintsPerSheet = 29
static

◆ c_horizontalSheet

const wxString c_horizontalSheet = wxS( "00000000-0000-0000-0000-00004b3a13a4" )
static

Definition at line 41 of file test_cross_probe_selection.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().

◆ c_verticalSheet

const wxString c_verticalSheet = wxS( "00000000-0000-0000-0000-00004b3a1333" )
static