|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <vector>#include <base_units.h>#include <board.h>#include <footprint.h>#include <footprint_utils.h>#include <layer_ids.h>#include <pad.h>#include <padstack.h>#include <pcb_shape.h>Go to the source code of this file.
Functions | |
| BOOST_FIXTURE_TEST_CASE (PadsInDifferentGroupsOnOuterLayerExpandingStackup, FP_LEVEL_NET_TIE_FIXTURE) | |
| Two pads in different groups, joined by copper on an outer layer. | |
| BOOST_FIXTURE_TEST_CASE (PadsInDifferentGroupsOnInnerLayerExpandingStackup, FP_LEVEL_NET_TIE_FIXTURE) | |
| The same short on an inner layer must be found too. | |
| BOOST_FIXTURE_TEST_CASE (PadsInDifferentGroupsOnInnerLayerCustomStackup, FP_LEVEL_NET_TIE_FIXTURE) | |
| The same short on an inner layer must be found too. | |
| BOOST_FIXTURE_TEST_CASE (PadsInSameGroupAreAllowed, FP_LEVEL_NET_TIE_FIXTURE) | |
| Pads in the same group are an allowed short, wherever the copper is. | |
| BOOST_FIXTURE_TEST_CASE (PadOnOtherLayerIsNotPartOfConnection, FP_LEVEL_NET_TIE_FIXTURE) | |
| A pad which is not on the layer carrying the copper must not be treated as part of that layer's copper connectivity group. | |
| BOOST_FIXTURE_TEST_CASE | ( | PadOnOtherLayerIsNotPartOfConnection | , |
| FP_LEVEL_NET_TIE_FIXTURE | ) |
A pad which is not on the layer carrying the copper must not be treated as part of that layer's copper connectivity group.
In this case one pad is on a different layer to the other pad and copper graphic.
Definition at line 261 of file test_footprint_net_tie.cpp.
References BOOST_CHECK_EQUAL(), In1_Cu, In2_Cu, and pcbIUScale.
| BOOST_FIXTURE_TEST_CASE | ( | PadsInDifferentGroupsOnInnerLayerCustomStackup | , |
| FP_LEVEL_NET_TIE_FIXTURE | ) |
The same short on an inner layer must be found too.
Inner copper is used by buried graphics and by non-component pads, and a check that only walks the outer layers misses it.
Definition at line 218 of file test_footprint_net_tie.cpp.
References BOOST_CHECK(), BOOST_REQUIRE_EQUAL(), BOX2< Vec >::Contains(), FOOTPRINT::GetBoundingBox(), and In2_Cu.
| BOOST_FIXTURE_TEST_CASE | ( | PadsInDifferentGroupsOnInnerLayerExpandingStackup | , |
| FP_LEVEL_NET_TIE_FIXTURE | ) |
The same short on an inner layer must be found too.
Inner copper is used by buried graphics and by non-component pads, and a check that only walks the outer layers misses it.
Definition at line 194 of file test_footprint_net_tie.cpp.
References BOOST_CHECK(), BOOST_REQUIRE_EQUAL(), BOX2< Vec >::Contains(), FOOTPRINT::GetBoundingBox(), and In1_Cu.
| BOOST_FIXTURE_TEST_CASE | ( | PadsInDifferentGroupsOnOuterLayerExpandingStackup | , |
| FP_LEVEL_NET_TIE_FIXTURE | ) |
Two pads in different groups, joined by copper on an outer layer.
Definition at line 171 of file test_footprint_net_tie.cpp.
References BOOST_CHECK(), BOOST_REQUIRE_EQUAL(), BOX2< Vec >::Contains(), F_Cu, and FOOTPRINT::GetBoundingBox().
| BOOST_FIXTURE_TEST_CASE | ( | PadsInSameGroupAreAllowed | , |
| FP_LEVEL_NET_TIE_FIXTURE | ) |
Pads in the same group are an allowed short, wherever the copper is.
In this case, the two pads are connected by copper ion In2_Cu but belong to the same net-tie pad group, so the short is allowed.
Definition at line 244 of file test_footprint_net_tie.cpp.
References FOOTPRINT::AddNetTiePadGroup(), BOOST_CHECK_EQUAL(), and In2_Cu.