|
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>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). | |
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 66 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.