KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_issue23143_junction_midpoint.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <connection_graph.h>
#include <sch_junction.h>
#include <sch_line.h>
#include <sch_sheet.h>
#include <sch_sheet_path.h>
#include <sch_screen.h>
#include <schematic.h>
#include <settings/settings_manager.h>
#include <project.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (JunctionAtWireMidpointConnectsNet)
 Test for issue #23143: Pin appears connected but ERC reports it as unconnected.
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( JunctionAtWireMidpointConnectsNet )

Test for issue #23143: Pin appears connected but ERC reports it as unconnected.

When a junction exists at the midpoint of a wire (without the wire being split), a wire connecting to that junction should still be part of the same net. The connection graph must recognize that a junction on a wire midpoint connects all wires that meet at that point.

Definition at line 46 of file test_issue23143_junction_midpoint.cpp.

References SCHEMATIC::AddTopLevelSheet(), SCH_SCREEN::Append(), BOOST_REQUIRE(), SCHEMATIC::BuildSheetListSortedByPageNumbers(), CONNECTION_GRAPH::GetSubgraphForItem(), SCHEMATIC::GetTopLevelSheet(), LAYER_WIRE, SETTINGS_MANAGER::LoadProject(), SETTINGS_MANAGER::Prj(), SCH_SHEET_PATH::push_back(), CONNECTION_GRAPH::Recalculate(), SCHEMATIC::RemoveTopLevelSheet(), SCHEMATIC::Reset(), SCH_LINE::SetEndPoint(), CONNECTION_GRAPH::SetSchematic(), and SCH_SHEET::SetScreen().