|
KiCad PCB EDA Suite
|
Test for issue #18299: Bus member falls off bus when also individually renamed at a sheet pin. 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_label.h>#include <settings/settings_manager.h>#include <locale_io.h>Go to the source code of this file.
Classes | |
| struct | ISSUE18299_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (Issue18299BusMemberRename, ISSUE18299_FIXTURE) | |
| Test that bus member connections are maintained through hierarchy even when the member is also individually renamed at a sheet pin. | |
Test for issue #18299: Bus member falls off bus when also individually renamed at a sheet pin.
The test schematic has:
Expected: Net "b" inside test1 should be connected to net "b" inside test2 through the bus, even though test1's "b" is also individually renamed at a sheet pin.
The bug: When a bus member net is also individually renamed at a sheet pin, the bus member connection through the bus is lost.
Definition in file test_issue18299_bus_member_rename.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | Issue18299BusMemberRename | , |
| ISSUE18299_FIXTURE | ) |
Test that bus member connections are maintained through hierarchy even when the member is also individually renamed at a sheet pin.
Expected connectivity:
Definition at line 72 of file test_issue18299_bus_member_rename.cpp.
References dummy, SCH_SHEET::GetName(), CONNECTION_GRAPH::GetNetMap(), SCH_SHEET_PATH::GetSheet(), EDA_TEXT::GetText(), SCH_SHEET_PATH::Last(), KI_TEST::LoadSchematic(), SCH_LABEL_T, and SCH_SHEET_PATH::size().