|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <qa_utils/wx_utils/unit_test_utils.h>#include <schematic_utils/schematic_file_util.h>#include <connection_graph.h>#include <schematic.h>#include <sch_sheet.h>#include <sch_screen.h>#include <netclass.h>#include <sch_label.h>#include <sch_line.h>#include <connectivity/conn_navigation.h>#include <project.h>#include <project/project_file.h>#include <project/net_settings.h>#include <settings/settings_manager.h>#include <locale_io.h>Go to the source code of this file.
Classes | |
| struct | SIGNALS_TEST_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (RebuildSignals_GroupsFourNetsIntoOneSignal, SIGNALS_TEST_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (RebuildSignals_RespectsSignalLabelAndKeepsGrouping, SIGNALS_TEST_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (RebuildSignals_WithPullupBranch_ExcludesPowerBranch, SIGNALS_TEST_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (RebuildSignals_WithBypassCap_ExcludesPowerBranch, SIGNALS_TEST_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (NetChain_AppendAdoptionKeepsCommittedChains, SIGNALS_TEST_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (NetChain_TemporaryGraphPreservesProjectAssignments, SIGNALS_TEST_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (RebuildSignals_SelectsLabelNameIndependentlyOfItemOrder, SIGNALS_TEST_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (RebuildSignals_DistinguishesSharedScreenInstances, SIGNALS_TEST_FIXTURE) | |
| BOOST_AUTO_TEST_CASE (WholeNetQueryIncludesSeparatedNativeLabelIsland) | |
| BOOST_AUTO_TEST_CASE | ( | WholeNetQueryIncludesSeparatedNativeLabelIsland | ) |
Definition at line 383 of file test_net_chains.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_LABEL::Clone(), SCH_LINE::Clone(), empty(), expected, left, KI_TEST::LoadSchematic(), path, right, SCH_LABEL_T, SCH_LINE_T, SCH_SYMBOL_T, and SCH_CONNECTIVITY::NAVIGATION_QUERY::WholeNetItems().
| BOOST_FIXTURE_TEST_CASE | ( | NetChain_AppendAdoptionKeepsCommittedChains | , |
| SIGNALS_TEST_FIXTURE | ) |
Definition at line 202 of file test_net_chains.cpp.
References BOOST_REQUIRE(), SCHEMATIC_CONTENT::connectionGraph, CONNECTION_GRAPH::CreateNetChainFromPotential(), SCHEMATIC_CONTENT::currentSheet, dummy, CONNECTION_GRAPH::GetNetChainByName(), SCH_NETCHAIN::GetNets(), CONNECTION_GRAPH::GetPotentialNetChains(), SCH_NETCHAIN::GetSymbols(), SCHEMATIC_CONTENT::hierarchy, EE_RTREE::insert(), KI_TEST::LoadSchematic(), path, SCHEMATIC_CONTENT::preserveNetChains, CONNECTION_GRAPH::Recalculate(), SCHEMATIC_CONTENT::screenItems, and SCHEMATIC_CONTENT::targetSheet.
| BOOST_FIXTURE_TEST_CASE | ( | NetChain_TemporaryGraphPreservesProjectAssignments | , |
| SIGNALS_TEST_FIXTURE | ) |
Definition at line 240 of file test_net_chains.cpp.
References CONNECTION_GRAPH::ApplyNetChainNetclasses(), BOOST_REQUIRE(), CONNECTION_GRAPH::CreateNetChainFromPotential(), dummy, CONNECTION_GRAPH::GetPotentialNetChains(), KI_TEST::LoadSchematic(), CONNECTION_GRAPH::Recalculate(), SCHEMATIC, and SCH_NETCHAIN::SetNetClass().
| BOOST_FIXTURE_TEST_CASE | ( | RebuildSignals_DistinguishesSharedScreenInstances | , |
| SIGNALS_TEST_FIXTURE | ) |
Definition at line 297 of file test_net_chains.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), chain, SCH_SHEET::Clone(), copy, empty(), expected, SCH_SHEET::GetScreen(), and KI_TEST::LoadSchematic().
| BOOST_FIXTURE_TEST_CASE | ( | RebuildSignals_GroupsFourNetsIntoOneSignal | , |
| SIGNALS_TEST_FIXTURE | ) |
Definition at line 47 of file test_net_chains.cpp.
References dummy, CONNECTION_GRAPH::GetPotentialNetChains(), KI_TEST::LoadSchematic(), and CONNECTION_GRAPH::Recalculate().
| BOOST_FIXTURE_TEST_CASE | ( | RebuildSignals_RespectsSignalLabelAndKeepsGrouping | , |
| SIGNALS_TEST_FIXTURE | ) |
Definition at line 70 of file test_net_chains.cpp.
References dummy, CONNECTION_GRAPH::GetPotentialNetChains(), KI_TEST::LoadSchematic(), name, and CONNECTION_GRAPH::Recalculate().
| BOOST_FIXTURE_TEST_CASE | ( | RebuildSignals_SelectsLabelNameIndependentlyOfItemOrder | , |
| SIGNALS_TEST_FIXTURE | ) |
Definition at line 266 of file test_net_chains.cpp.
References SCH_SCREEN::Append(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_LABEL::Clone(), copy, SCH_SCREEN::Items(), KI_TEST::LoadSchematic(), EE_RTREE::OfType(), SCH_LABEL_T, and EDA_TEXT::SetText().
| BOOST_FIXTURE_TEST_CASE | ( | RebuildSignals_WithBypassCap_ExcludesPowerBranch | , |
| SIGNALS_TEST_FIXTURE | ) |
Definition at line 151 of file test_net_chains.cpp.
References dummy, CONNECTION_GRAPH::GetPotentialNetChains(), KI_TEST::LoadSchematic(), and CONNECTION_GRAPH::Recalculate().
| BOOST_FIXTURE_TEST_CASE | ( | RebuildSignals_WithPullupBranch_ExcludesPowerBranch | , |
| SIGNALS_TEST_FIXTURE | ) |
Definition at line 100 of file test_net_chains.cpp.
References dummy, CONNECTION_GRAPH::GetPotentialNetChains(), KI_TEST::LoadSchematic(), and CONNECTION_GRAPH::Recalculate().