|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <board.h>#include <footprint.h>#include <net_chain_bridging.h>#include <netinfo.h>#include <pad.h>#include <padstack.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (LinearChainSplitsCleanly) | |
| BOOST_AUTO_TEST_CASE (TerminalQueryNetLeavesOneSideEmpty) | |
| BOOST_AUTO_TEST_CASE (MultiBridgePadSeedsAllNeighbors) | |
| BOOST_AUTO_TEST_CASE (CycleNotThroughQueryIsAmbiguous) | |
| BOOST_AUTO_TEST_CASE (StartPadOnDifferentNetReportsError) | |
| BOOST_AUTO_TEST_CASE (EqualStartEndPadsAreInvalid) | |
| BOOST_AUTO_TEST_CASE (QueryNetWithoutChainReportsMissing) | |
| BOOST_AUTO_TEST_CASE (ChainWithNoBridgesReportsNoBridges) | |
| BOOST_AUTO_TEST_CASE (QueryNetWithoutOwnBridgeReportsNoBridges) | |
| BOOST_AUTO_TEST_CASE (CrossBoardPadIsInvalidInput) | |
| BOOST_AUTO_TEST_CASE (PrePopulatedCallerStateIsIgnored) | |
| BOOST_AUTO_TEST_CASE | ( | ChainWithNoBridgesReportsNoBridges | ) |
Definition at line 257 of file test_net_chain_partition.cpp.
References NETINFO_ITEM::GetNetCode(), NO_CHAIN_BRIDGES, PartitionNetChainAroundNet(), and NET_CHAIN_PARTITION::status.
| BOOST_AUTO_TEST_CASE | ( | CrossBoardPadIsInvalidInput | ) |
Definition at line 305 of file test_net_chain_partition.cpp.
References NETINFO_ITEM::GetNetCode(), INVALID_INPUT, PartitionNetChainAroundNet(), and NET_CHAIN_PARTITION::status.
| BOOST_AUTO_TEST_CASE | ( | CycleNotThroughQueryIsAmbiguous | ) |
Definition at line 161 of file test_net_chain_partition.cpp.
References NET_CHAIN_PARTITION::afterEnd, AMBIGUOUS_OVERLAP, NET_CHAIN_PARTITION::beforeStart, BOOST_REQUIRE(), NETINFO_ITEM::GetNetCode(), PartitionNetChainAroundNet(), and NET_CHAIN_PARTITION::status.
| BOOST_AUTO_TEST_CASE | ( | EqualStartEndPadsAreInvalid | ) |
Definition at line 217 of file test_net_chain_partition.cpp.
References NETINFO_ITEM::GetNetCode(), INVALID_INPUT, PartitionNetChainAroundNet(), and NET_CHAIN_PARTITION::status.
| BOOST_AUTO_TEST_CASE | ( | LinearChainSplitsCleanly | ) |
Definition at line 72 of file test_net_chain_partition.cpp.
References NET_CHAIN_PARTITION::afterEnd, NET_CHAIN_PARTITION::beforeStart, BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), NETINFO_ITEM::GetNetCode(), OK, PartitionNetChainAroundNet(), and NET_CHAIN_PARTITION::status.
| BOOST_AUTO_TEST_CASE | ( | MultiBridgePadSeedsAllNeighbors | ) |
Definition at line 127 of file test_net_chain_partition.cpp.
References NET_CHAIN_PARTITION::afterEnd, NET_CHAIN_PARTITION::beforeStart, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), NETINFO_ITEM::GetNetCode(), OK, PartitionNetChainAroundNet(), and NET_CHAIN_PARTITION::status.
| BOOST_AUTO_TEST_CASE | ( | PrePopulatedCallerStateIsIgnored | ) |
Definition at line 330 of file test_net_chain_partition.cpp.
References NET_CHAIN_PARTITION::afterEnd, NET_CHAIN_PARTITION::beforeStart, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), NETINFO_ITEM::GetNetCode(), OK, PartitionNetChainAroundNet(), and NET_CHAIN_PARTITION::status.
| BOOST_AUTO_TEST_CASE | ( | QueryNetWithoutChainReportsMissing | ) |
Definition at line 236 of file test_net_chain_partition.cpp.
References NETINFO_ITEM::GetNetCode(), PartitionNetChainAroundNet(), QUERY_NET_NOT_IN_CHAIN, and NET_CHAIN_PARTITION::status.
| BOOST_AUTO_TEST_CASE | ( | QueryNetWithoutOwnBridgeReportsNoBridges | ) |
Definition at line 275 of file test_net_chain_partition.cpp.
References NET_CHAIN_PARTITION::afterEnd, NET_CHAIN_PARTITION::beforeStart, NETINFO_ITEM::GetNetCode(), NO_CHAIN_BRIDGES, PartitionNetChainAroundNet(), and NET_CHAIN_PARTITION::status.
| BOOST_AUTO_TEST_CASE | ( | StartPadOnDifferentNetReportsError | ) |
Definition at line 196 of file test_net_chain_partition.cpp.
References NET_CHAIN_PARTITION::afterEnd, NET_CHAIN_PARTITION::beforeStart, NETINFO_ITEM::GetNetCode(), PartitionNetChainAroundNet(), START_PAD_NOT_ON_QUERY, and NET_CHAIN_PARTITION::status.
| BOOST_AUTO_TEST_CASE | ( | TerminalQueryNetLeavesOneSideEmpty | ) |
Definition at line 100 of file test_net_chain_partition.cpp.
References NET_CHAIN_PARTITION::afterEnd, NET_CHAIN_PARTITION::beforeStart, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), NETINFO_ITEM::GetNetCode(), OK, PartitionNetChainAroundNet(), and NET_CHAIN_PARTITION::status.