43 for(
bool useEngine : {
false,
true } )
49 std::unique_ptr<SCHEMATIC> schematic;
51 schematic->RebuildConnectivity();
52 std::map<wxString, wxString> nets;
58 auto* symbol =
static_cast<SCH_SYMBOL*
>( item );
61 if( ref != wxS(
"R1" ) && ref != wxS(
"R3" ) )
66 nets[ref + wxS(
"." ) +
pin->GetNumber()] =
67 pin->GetConnectionName( &
path ).value_or( wxString() );
72 for(
const wxString& key : { wxS(
"R1.1" ), wxS(
"R1.2" ), wxS(
"R3.1" ), wxS(
"R3.2" ) } )
75 BOOST_CHECK_MESSAGE( !nets[key].IsEmpty(),
"Pin " << key <<
" has no net" );
80 BOOST_CHECK_NE( nets[wxS(
"R1.1" )], nets[wxS(
"R1.2" )] );
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
Base class for any item which can be embedded within the SCHEMATIC container class,...
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
const wxString GetRef(const SCH_SHEET_PATH *aSheet, bool aIncludeUnit=false) const override
RAII class that sets an value at construction and resets it to the original value at destruction.
void LoadSchematic(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< SCHEMATIC > &aSchematic)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_REQUIRE_MESSAGE(dc.CacheTableInfo(table, { "part_id", "val" }), dc.GetLastError())
BOOST_AUTO_TEST_CASE(Issue15792BusBreakoutsJoinAcrossHierarchy)
BOOST_TEST_CONTEXT("Test Clearance")