|
KiCad PCB EDA Suite
|
Test for issue 18606: net name of shorted nets should be deterministic when part of a higher-level bus definition. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <schematic_utils/schematic_file_util.h>#include <connection_graph.h>#include <schematic.h>#include <sch_sheet.h>#include <sch_screen.h>#include <sch_symbol.h>#include <sch_pin.h>#include <settings/settings_manager.h>#include <locale_io.h>#include <sch_io/orcad/sch_io_orcad.h>#include <sch_io/kicad_sexpr/sch_io_kicad_sexpr.h>#include <richio.h>#include <wx/filename.h>#include <filesystem>#include <cstdlib>Go to the source code of this file.
Classes | |
| struct | BUS_NET_NAME_DETERMINISM_FIXTURE |
Functions | |
| 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 deterministic (should be "A0" - alphabetically first). | |
| BOOST_FIXTURE_TEST_CASE (WeakPinNetNameSuffixesSurviveReload, BUS_NET_NAME_DETERMINISM_FIXTURE) | |
Test for issue 18606: net name of shorted nets should be deterministic when part of a higher-level bus definition.
When multiple nets from a bus (e.g., A0, A1, A2, A3 from bus A[0..3]) are shorted together, the resulting combined net name should be deterministically chosen (alphabetically first: A0).
Definition in file test_bus_net_name_determinism.cpp.
| 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 deterministic (should be "A0" - alphabetically first).
The test schematic has:
Definition at line 68 of file test_bus_net_name_determinism.cpp.
References dummy, SCH_SYMBOL::GetPins(), SCH_SYMBOL::GetRef(), SCH_SCREEN::Items(), KI_TEST::LoadSchematic(), SCH_CONNECTION::Name(), EE_RTREE::OfType(), path, pin, and SCH_SYMBOL_T.
| BOOST_FIXTURE_TEST_CASE | ( | WeakPinNetNameSuffixesSurviveReload | , |
| BUS_NET_NAME_DETERMINISM_FIXTURE | ) |
Definition at line 128 of file test_bus_net_name_determinism.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), SCH_SYMBOL::GetPins(), SCH_SYMBOL::GetRef(), SCH_IO_KICAD_SEXPR::LoadSchematicFile(), SCH_IO_ORCAD::LoadSchematicFile(), EDA_ITEM::m_Uuid, SCH_CONNECTION::Name(), name, pin, result, SCH_IO_KICAD_SEXPR::SaveSchematicFile(), SCH_SYMBOL_T, and SCH_SHEET::SetName().