KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_footprint_editor_tabs.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <memory>
#include <board.h>
#include <footprint.h>
#include <lib_id.h>
#include <footprint_editor_settings.h>
#include <footprint_editor_tab_context.h>

Go to the source code of this file.

Functions

static std::unique_ptr< BOARDmakeFpHolder (const wxString &aLib, const wxString &aName)
 Build an fp-holder BOARD carrying a single footprint with the given identity.
 
 BOOST_AUTO_TEST_CASE (ContextIdentityAndDirty)
 
 BOOST_AUTO_TEST_CASE (ContextEmptyBoardIsNeverDirty)
 
 BOOST_AUTO_TEST_CASE (InstanceTabContextIsTransientAndKeyedByUuid)
 An instance (board) tab owns its fp-holder board, reports IsTransient(), keys off the source board footprint UUID in a namespace disjoint from library keys, and carries the board-uuid remap.
 
 BOOST_AUTO_TEST_CASE (SettingsOpenTabsRoundTrip)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( ContextEmptyBoardIsNeverDirty )

◆ BOOST_AUTO_TEST_CASE() [2/4]

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( InstanceTabContextIsTransientAndKeyedByUuid )

◆ BOOST_AUTO_TEST_CASE() [4/4]

◆ makeFpHolder()

static std::unique_ptr< BOARD > makeFpHolder ( const wxString & aLib,
const wxString & aName )
static

Build an fp-holder BOARD carrying a single footprint with the given identity.

Definition at line 33 of file test_footprint_editor_tabs.cpp.

References FOOTPRINT, FPHOLDER, and FOOTPRINT::SetFPID().

Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().