71 for(
int iteration = 0; iteration < 3; ++iteration )
75 SCH_SHEET_LIST sheets = m_schematic->BuildSheetListSortedByPageNumbers();
78 wxString foundNetName;
79 bool foundResistor =
false;
99 foundNetName = conn->
Name();
112 BOOST_CHECK_MESSAGE( foundResistor,
"R201 should be found in the schematic" );
118 BOOST_CHECK_MESSAGE( foundNetName ==
"/A0",
119 "Net name should be '/A0' (alphabetically first bus member), "
120 "but got '" << foundNetName.ToStdString() <<
"' on iteration "
EE_TYPE OfType(KICAD_T aType) const
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
Each graphical item can have a SCH_CONNECTION describing its logical connection (to a bus or net).
wxString Name(bool aIgnoreSheet=false) const
Base class for any item which can be embedded within the SCHEMATIC container class,...
EE_RTREE & Items()
Get the full RTree, usually for iterating.
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
std::vector< SCH_PIN * > GetPins(const SCH_SHEET_PATH *aSheet) const
Retrieve a list of the SCH_PINs for the given sheet path.
const wxString GetRef(const SCH_SHEET_PATH *aSheet, bool aIncludeUnit=false) const override
void LoadSchematic(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< SCHEMATIC > &aSchematic)
std::vector< FAB_LAYER_COLOR > dummy
SETTINGS_MANAGER m_settingsManager
std::unique_ptr< SCHEMATIC > m_schematic
BUS_NET_NAME_DETERMINISM_FIXTURE()
BOOST_FIXTURE_TEST_CASE(ShortedBusNetsHaveDeterministicName, BUS_NET_NAME_DETERMINISM_FIXTURE)
Test that when bus member nets (A0, A1, A2, A3) are shorted together, the resulting net name is deter...