81 SCH_SHEET_LIST sheets = m_schematic->BuildSheetListSortedByPageNumbers();
87 std::map<wxString, int> tpNetCodes;
89 for(
const auto& [key, subgraphs] : graph->
GetNetMap() )
93 for(
SCH_ITEM* item : subgraph->GetItems() )
102 wxString ref = symbol->
GetRef( &subgraph->GetSheet() );
104 if( ref ==
"TP101" || ref ==
"TP102" ||
105 ref ==
"TP401" || ref ==
"TP402" )
107 tpNetCodes[ref] = key.Netcode;
116 BOOST_REQUIRE_MESSAGE( tpNetCodes.count(
"TP101" ),
117 "TP101 should be found in netlist" );
118 BOOST_REQUIRE_MESSAGE( tpNetCodes.count(
"TP102" ),
119 "TP102 should be found in netlist" );
120 BOOST_REQUIRE_MESSAGE( tpNetCodes.count(
"TP401" ),
121 "TP401 should be found in netlist" );
122 BOOST_REQUIRE_MESSAGE( tpNetCodes.count(
"TP402" ),
123 "TP402 should be found in netlist" );
126 BOOST_CHECK_MESSAGE( tpNetCodes[
"TP101"] == tpNetCodes[
"TP401"],
127 "TP101 and TP401 should be on the same net (m.X.Y.Z1)" );
131 BOOST_CHECK_MESSAGE( tpNetCodes[
"TP102"] == tpNetCodes[
"TP402"],
132 "TP102 and TP402 should be on the same net (m.X.Y.Z2)" );