|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <board.h>#include <footprint.h>#include <pad.h>#include <pcb_track.h>#include <pcbnew_utils/board_test_utils.h>#include <settings/settings_manager.h>#include <router/pns_itemset.h>#include <router/pns_kicad_iface.h>#include <router/pns_line.h>#include <router/pns_node.h>#include <router/pns_placement_algo.h>#include <router/pns_router.h>#include <router/pns_routing_settings.h>#include <router/pns_sizes_settings.h>#include <router/pns_via.h>#include <memory>Go to the source code of this file.
Classes | |
| struct | VIA_LAYER_SPAN_FIXTURE |
| Regression coverage for https://gitlab.com/kicad/code/kicad/-/issues/24772. More... | |
Functions | |
| BOOST_FIXTURE_TEST_CASE (DiffPairThroughViaSpansWholeBoard, VIA_LAYER_SPAN_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SyncedViaHoleLayersMatchCopperLayers, VIA_LAYER_SPAN_FIXTURE) | |
| A via holds its copper span in the primary drill layers, so the router must not write the hole layers back over the layer pair. | |
| BOOST_FIXTURE_TEST_CASE | ( | DiffPairThroughViaSpansWholeBoard | , |
| VIA_LAYER_SPAN_FIXTURE | ) |
Definition at line 56 of file test_pns_via_layer_span.cpp.
References PNS::SIZES_SETTINGS::AddLayerPair(), B_Cu, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), PNS::ITEM_SET::CItems(), PNS::SIZES_SETTINGS::ClearLayerPairs(), PNS::ROUTER::ClearWorld(), PNS_LAYER_RANGE::End(), PNS::LINE::EndsWithVia(), F_Cu, PNS::NODE::FindItemByParent(), FOOTPRINT::FindPadByNumber(), PNS_KICAD_IFACE_BASE::GetPNSLayerFromBoardLayer(), PAD::GetPosition(), PNS::ROUTER::GetWorld(), PNS::VIA::HoleLayers(), PNS_KICAD_IFACE_BASE::ImportSizes(), In1_Cu, In4_Cu, PNS::ROUTER::IsPlacingVia(), PNS::ITEM::Layers(), PNS::ITEM::LINE_T, KI_TEST::LoadBoard(), PNS::ROUTER::LoadSettings(), PNS::ROUTER::Move(), pcbIUScale, PNS::ROUTER::Placer(), PNS::PNS_MODE_ROUTE_DIFF_PAIR, PNS::ROUTING_SETTINGS::SetAllowDRCViolations(), PNS_KICAD_IFACE_BASE::SetBoard(), PNS::ROUTER::SetInterface(), PNS::ROUTER::SetMode(), PNS_KICAD_IFACE_BASE::SetStartLayerFromPCBNew(), PNS::ROUTER::Settings(), PNS::SIZES_SETTINGS::SetViaType(), PNS::ROUTER::Sizes(), PNS_LAYER_RANGE::Start(), PNS::ROUTER::StartRouting(), PNS::ROUTER::StopRouting(), PNS::ROUTER::SyncWorld(), THROUGH, PNS::ROUTER::ToggleViaPlacement(), PNS::PLACEMENT_ALGO::Traces(), PNS::ROUTER::UpdateSizes(), PNS::LINE::Via(), and PNS::VIA::ViaType().
| BOOST_FIXTURE_TEST_CASE | ( | SyncedViaHoleLayersMatchCopperLayers | , |
| VIA_LAYER_SPAN_FIXTURE | ) |
A via holds its copper span in the primary drill layers, so the router must not write the hole layers back over the layer pair.
This pins the premise for dropping that write back, that the two ranges are the same range for every via the router knows about.
Definition at line 149 of file test_pns_via_layer_span.cpp.
References BOOST_REQUIRE(), PNS::ROUTER::ClearWorld(), PNS::NODE::FindItemByParent(), PNS::ROUTER::GetWorld(), PNS::ITEM::Kind(), KI_TEST::LoadBoard(), PCB_VIA_T, PNS_KICAD_IFACE_BASE::SetBoard(), PNS::ROUTER::SetInterface(), PNS::ROUTER::SyncWorld(), via, and PNS::ITEM::VIA_T.