KiCad PCB EDA Suite
Loading...
Searching...
No Matches
board_test_utils.cpp File Reference
#include <pcbnew_utils/board_test_utils.h>
#include <filesystem>
#include <wx/filename.h>
#include <board.h>
#include <board_design_settings.h>
#include <footprint.h>
#include <pcb_shape.h>
#include <zone.h>
#include <pad.h>
#include <settings/settings_manager.h>
#include <pcbnew_utils/board_file_utils.h>
#include <tool/tool_manager.h>
#include <zone_filler.h>
#include <boost/test/unit_test.hpp>
#include <board_commit.h>

Go to the source code of this file.

Classes

struct  KI_TEST::kitest_cmp_drawings
 

Namespaces

namespace  KI_TEST
 

Macros

#define CHECK_ENUM_CLASS_EQUAL(L, R)    BOOST_CHECK_EQUAL( static_cast<int>( L ), static_cast<int>( R ) )
 
#define TEST(a, b)
 
#define TEST_PT(a, b)
 

Functions

void KI_TEST::LoadBoard (SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
 
void KI_TEST::FillZones (BOARD *m_board)
 
void KI_TEST::CheckFootprint (const FOOTPRINT *expected, const FOOTPRINT *fp)
 Helper method to check if two footprints are semantically the same. More...
 
void KI_TEST::CheckFpPad (const PAD *expected, const PAD *pad)
 
void KI_TEST::CheckFpText (const PCB_TEXT *expected, const PCB_TEXT *text)
 
void KI_TEST::CheckFpShape (const PCB_SHAPE *expected, const PCB_SHAPE *shape)
 
void KI_TEST::CheckFpZone (const ZONE *expected, const ZONE *zone)
 
void KI_TEST::CheckShapePolySet (const SHAPE_POLY_SET *expected, const SHAPE_POLY_SET *polyset)
 

Macro Definition Documentation

◆ CHECK_ENUM_CLASS_EQUAL

#define CHECK_ENUM_CLASS_EQUAL (   L,
 
)     BOOST_CHECK_EQUAL( static_cast<int>( L ), static_cast<int>( R ) )

Definition at line 43 of file board_test_utils.cpp.

◆ TEST

#define TEST (   a,
 
)
Value:
{ \
if( a != b ) \
return a < b; \
}

Definition at line 129 of file board_test_utils.cpp.

◆ TEST_PT

#define TEST_PT (   a,
 
)
Value:
{ \
if( a.x != b.x ) \
return a.x < b.x; \
if( a.y != b.y ) \
return a.y < b.y; \
}

Definition at line 134 of file board_test_utils.cpp.