|
KiCad PCB EDA Suite
|
#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 | ISSUE_22694_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (Issue22694, ISSUE_22694_FIXTURE) | |
| Test for issue #22694: Global labels and hierarchical labels not connected. | |
| BOOST_FIXTURE_TEST_CASE | ( | Issue22694 | , |
| ISSUE_22694_FIXTURE | ) |
Test for issue #22694: Global labels and hierarchical labels not connected.
When a hierarchical label in a sub-sheet is connected to a global label on the same sub-sheet, items connected through that hierarchical pin on the parent sheet should also be part of the global net.
Schematic structure: Root sheet:
Expected: J2-Pin2..Pin6 (in S1) should be on the same net as J3-Pin1 (in untitled sheet), because HL2 is connected to "Global Label" in S1, and "Global Label" connects globally to J3-Pin1 in the untitled sheet.
Definition at line 72 of file test_issue22694_global_hier_label.cpp.
References BOOST_CHECK_MESSAGE(), dummy, CONNECTION_GRAPH::GetNetMap(), SCH_SYMBOL::GetRef(), KI_TEST::LoadSchematic(), pin, and SCH_PIN_T.