|
KiCad PCB EDA Suite
|
Length tuning must follow a single net all the way between its terminal pads, even when the trace routes through an in-line pad (e.g. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <board.h>#include <footprint.h>#include <pad.h>#include <pcb_track.h>#include <settings/settings_manager.h>#include <router/pns_router.h>#include <router/pns_kicad_iface.h>#include <router/pns_topology.h>#include <router/pns_item.h>#include <router/pns_itemset.h>#include <router/pns_line.h>#include <router/pns_solid.h>#include <set>Go to the source code of this file.
Classes | |
| struct | TUNING_PATH_FIXTURE |
Functions | |
| static wxString | refOfSolid (PNS::SOLID *aSolid) |
| BOOST_FIXTURE_TEST_CASE (TuningPathWalksThroughInlinePad, TUNING_PATH_FIXTURE) | |
Length tuning must follow a single net all the way between its terminal pads, even when the trace routes through an in-line pad (e.g.
a series / strapping resistor) mid-net. The fixture is one net (Net-(R1-Pad2)) routed TP1 – TP2.pad – R1.pad2, where TP2's pad sits on the path. AssembleTuningPath used to treat any pad as a hard terminal, so it stopped at TP2 and reported only part of the net.
Definition in file test_pns_tuning_path_through_pad.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | TuningPathWalksThroughInlinePad | , |
| TUNING_PATH_FIXTURE | ) |
Definition at line 65 of file test_pns_tuning_path_through_pad.cpp.
References PNS::TOPOLOGY::AssembleTuningPath(), BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), PNS::ROUTER::ClearWorld(), PNS::NODE::FindItemByParent(), NETINFO_ITEM::GetNetCode(), PAD::GetPosition(), PNS::ROUTER::GetWorld(), PNS::ITEM::LINE_T, KI_TEST::LoadBoard(), path, refOfSolid(), PNS_KICAD_IFACE_BASE::SetBoard(), PNS::ROUTER::SetInterface(), and PNS::ROUTER::SyncWorld().
|
static |
Definition at line 56 of file test_pns_tuning_path_through_pad.cpp.
References BOARD_ITEM::GetParentFootprint(), FOOTPRINT::GetReference(), PNS::ITEM::Parent(), PCB_PAD_T, and EDA_ITEM::Type().
Referenced by BOOST_FIXTURE_TEST_CASE().