|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <board.h>#include <board_design_settings.h>#include <eda_pattern_match.h>#include <project/net_settings.h>#include <board_connected_item.h>#include <footprint.h>#include <import_net_names.h>#include <import_net_reconciler.h>#include <netlist_reader/pcb_netlist.h>#include <netinfo.h>#include <pcb_field.h>#include <reporter.h>#include <settings/settings_manager.h>#include <set>#include <tuple>Go to the source code of this file.
Classes | |
| struct | IMPORT_NET_NAMES_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (RenamePreservesConnectedItemsAndBothNetIndexes) | |
| BOOST_AUTO_TEST_CASE (FootprintFieldsAreFilledNotOverwritten) | |
| BOOST_AUTO_TEST_CASE (ReferencesTakeTheSchematicSpelling) | |
| BOOST_AUTO_TEST_CASE (InvalidMappingsLeaveEveryNetUnchanged) | |
| BOOST_AUTO_TEST_CASE (SimultaneousNameSwapPreservesNetIdentity) | |
| BOOST_AUTO_TEST_CASE (ExactNetclassAssignmentsFollowRenamedNets) | |
| BOOST_AUTO_TEST_CASE (NetColorAssignmentsFollowRenamedNets) | |
| BOOST_AUTO_TEST_CASE | ( | ExactNetclassAssignmentsFollowRenamedNets | ) |
Definition at line 207 of file test_import_net_names.cpp.
References ApplyImportedNetNameMap(), BOOST_REQUIRE(), NETINFO_ITEM::GetNetClass(), name, and reporter.
| BOOST_AUTO_TEST_CASE | ( | FootprintFieldsAreFilledNotOverwritten | ) |
Definition at line 91 of file test_import_net_names.cpp.
References FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), COMPONENT, empty(), FillImportedFootprintFields(), FOOTPRINT::GetField(), FOOTPRINT::GetValue(), netlist, COMPONENT::SetFields(), PCB_FIELD::SetName(), EDA_TEXT::SetText(), FOOTPRINT::SetValue(), and USER.
| BOOST_AUTO_TEST_CASE | ( | InvalidMappingsLeaveEveryNetUnchanged | ) |
Definition at line 154 of file test_import_net_names.cpp.
References ApplyImportedNetNameMap(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), name, and reporter.
| BOOST_AUTO_TEST_CASE | ( | NetColorAssignmentsFollowRenamedNets | ) |
Definition at line 239 of file test_import_net_names.cpp.
References ApplyImportedNetNameMap(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and reporter.
| BOOST_AUTO_TEST_CASE | ( | ReferencesTakeTheSchematicSpelling | ) |
Definition at line 134 of file test_import_net_names.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FOOTPRINT::GetReference(), netlist, ReconcileImportedReferences(), and FOOTPRINT::SetReference().
| BOOST_AUTO_TEST_CASE | ( | RenamePreservesConnectedItemsAndBothNetIndexes | ) |
Definition at line 52 of file test_import_net_names.cpp.
References ApplyImportedNetNameMap(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), NETINFO_ITEM::GetNetCode(), PCB_PAD_T, PCB_TRACE_T, PCB_ZONE_T, and reporter.
| BOOST_AUTO_TEST_CASE | ( | SimultaneousNameSwapPreservesNetIdentity | ) |
Definition at line 190 of file test_import_net_names.cpp.
References ApplyImportedNetNameMap(), BOOST_REQUIRE(), NETINFO_ITEM::GetNetCode(), and reporter.