60 m_libSym = std::make_unique<LIB_SYMBOL>(
"DUT",
nullptr );
62 for(
const wxString& number : { wxString(
"1" ), wxString(
"2" ) } )
65 pin->SetNumber( number );
70 m_libSym->PinMaps().AddOrReplace( std::move( aMap ) );
72 if( !aJumperGroup.empty() )
73 m_libSym->JumperPinGroups().push_back( aJumperGroup );
95 map.
SetEntry( wxS(
"1" ), wxS(
"1" ) );
96 map.
SetEntry( wxS(
"9" ), wxS(
"9" ) );
98 placeSymbol( std::move( map ) );
107 map.
SetEntry( wxS(
"1" ), wxS(
"5" ) );
108 map.
SetEntry( wxS(
"2" ), wxS(
"5" ) );
110 placeSymbol( std::move( map ) );
119 map.
SetEntry( wxS(
"1" ), wxS(
"1" ) );
120 map.
SetEntry( wxS(
"2" ), wxS(
"2" ) );
122 placeSymbol( std::move( map ) );
132 map.
SetEntry( wxS(
"1" ), wxS(
"5" ) );
133 map.
SetEntry( wxS(
"2" ), wxS(
"5" ) );
135 placeSymbol( std::move( map ), { wxS(
"1" ), wxS(
"2" ) } );
145 map.
SetEntry( wxS(
"1" ), wxS(
"[4,9]" ) );
146 map.
SetEntry( wxS(
"2" ), wxS(
"2" ) );
148 placeSymbol( std::move( map ) );
int TestPinMap(KIFACE *aCvPcb, PROJECT *aProject)
Check pin-to-pad maps (issue #2282): stale pin references, duplicate pad targets, bad pads and unmapp...
void SetEntry(const wxString &aPinNumber, const wxString &aPadNumber)
Set the pad number for a symbol pin.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
void SetScreen(SCH_SCREEN *aScreen)
Set the SCH_SCREEN associated with this sheet to aScreen.
void UpdatePins()
Updates the cache of SCH_PIN objects for each pin.
@ PT_PASSIVE
pin for passive symbols: must be connected, and can be connected to any pin.
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
std::unique_ptr< SCHEMATIC > m_schematic
SETTINGS_MANAGER m_settingsManager
std::unique_ptr< LIB_SYMBOL > m_libSym
void placeSymbol(PIN_MAP aMap, const std::set< wxString > &aJumperGroup={})
Build a two-pin symbol carrying aMap (+ optional symbol jumper group) and place it.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(StalePinReferenceFires)
BOOST_CHECK_EQUAL(result, "25.4")
VECTOR2< int32_t > VECTOR2I