|
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_netchain.h>#include <sch_sheet.h>#include <netclass.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_CLASS_COLOR_FIXTURE |
Functions | |
| void | boost_test_inject_committed_net_chain (CONNECTION_GRAPH &aGraph, std::unique_ptr< SCH_NETCHAIN > aChain) |
| BOOST_FIXTURE_TEST_CASE (NetChain_ApplyClassAndColorOverrides, SIGNALS_CLASS_COLOR_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (NetChain_NoOverrideStaysDefault, SIGNALS_CLASS_COLOR_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (NetChain_NetclassResolvesForMemberNets, SIGNALS_CLASS_COLOR_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (NetChain_SyntheticMemberNetSkipped, SIGNALS_CLASS_COLOR_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (NetChain_UnknownNetclassNotApplied, SIGNALS_CLASS_COLOR_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (NetChain_NetclassSurvivesRecalculate, SIGNALS_CLASS_COLOR_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (NetChain_DeletedNetclassClearsStaleAssignment, SIGNALS_CLASS_COLOR_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE | ( | NetChain_ApplyClassAndColorOverrides | , |
| SIGNALS_CLASS_COLOR_FIXTURE | ) |
Definition at line 55 of file test_net_chains_class_color.cpp.
References KIGFX::COLOR4D::a, KIGFX::COLOR4D::b, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CONNECTION_GRAPH::CreateNetChainFromPotential(), dummy, KIGFX::COLOR4D::g, SCH_NETCHAIN::GetColor(), SCH_NETCHAIN::GetName(), SCH_NETCHAIN::GetNetClass(), CONNECTION_GRAPH::GetPotentialNetChains(), KI_TEST::LoadSchematic(), KIGFX::COLOR4D::r, CONNECTION_GRAPH::Recalculate(), CONNECTION_GRAPH::SetNetChainColorOverrides(), CONNECTION_GRAPH::SetNetChainNetClassOverrides(), and KIGFX::COLOR4D::UNSPECIFIED.
| BOOST_FIXTURE_TEST_CASE | ( | NetChain_DeletedNetclassClearsStaleAssignment | , |
| SIGNALS_CLASS_COLOR_FIXTURE | ) |
Definition at line 279 of file test_net_chains_class_color.cpp.
References CONNECTION_GRAPH::ApplyNetChainNetclasses(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), boost_test_inject_committed_net_chain(), chain, NETCLASS::Default, dummy, and KI_TEST::LoadSchematic().
| BOOST_FIXTURE_TEST_CASE | ( | NetChain_NetclassResolvesForMemberNets | , |
| SIGNALS_CLASS_COLOR_FIXTURE | ) |
Definition at line 135 of file test_net_chains_class_color.cpp.
References CONNECTION_GRAPH::ApplyNetChainNetclasses(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), boost_test_inject_committed_net_chain(), chain, NETCLASS::Default, dummy, and KI_TEST::LoadSchematic().
| BOOST_FIXTURE_TEST_CASE | ( | NetChain_NetclassSurvivesRecalculate | , |
| SIGNALS_CLASS_COLOR_FIXTURE | ) |
Definition at line 226 of file test_net_chains_class_color.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CONNECTION_GRAPH::CreateNetChainFromPotential(), dummy, SCH_NETCHAIN::GetNetClass(), SCH_NETCHAIN::GetNets(), CONNECTION_GRAPH::GetPotentialNetChains(), KI_TEST::LoadSchematic(), CONNECTION_GRAPH::Recalculate(), CONNECTION_GRAPH::SetNetChainNetClassOverrides(), and SCH_NETCHAIN::SYNTHETIC_NET_PREFIX.
| BOOST_FIXTURE_TEST_CASE | ( | NetChain_NoOverrideStaysDefault | , |
| SIGNALS_CLASS_COLOR_FIXTURE | ) |
Definition at line 101 of file test_net_chains_class_color.cpp.
References BOOST_REQUIRE(), CONNECTION_GRAPH::CreateNetChainFromPotential(), dummy, SCH_NETCHAIN::GetColor(), SCH_NETCHAIN::GetNetClass(), CONNECTION_GRAPH::GetPotentialNetChains(), KI_TEST::LoadSchematic(), CONNECTION_GRAPH::Recalculate(), CONNECTION_GRAPH::SetNetChainColorOverrides(), CONNECTION_GRAPH::SetNetChainNetClassOverrides(), and KIGFX::COLOR4D::UNSPECIFIED.
| BOOST_FIXTURE_TEST_CASE | ( | NetChain_SyntheticMemberNetSkipped | , |
| SIGNALS_CLASS_COLOR_FIXTURE | ) |
Definition at line 168 of file test_net_chains_class_color.cpp.
References CONNECTION_GRAPH::ApplyNetChainNetclasses(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), boost_test_inject_committed_net_chain(), chain, NETCLASS::Default, dummy, KI_TEST::LoadSchematic(), and SCH_NETCHAIN::SYNTHETIC_NET_PREFIX.
| BOOST_FIXTURE_TEST_CASE | ( | NetChain_UnknownNetclassNotApplied | , |
| SIGNALS_CLASS_COLOR_FIXTURE | ) |
Definition at line 200 of file test_net_chains_class_color.cpp.
References CONNECTION_GRAPH::ApplyNetChainNetclasses(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), boost_test_inject_committed_net_chain(), chain, NETCLASS::Default, dummy, and KI_TEST::LoadSchematic().
| void boost_test_inject_committed_net_chain | ( | CONNECTION_GRAPH & | aGraph, |
| std::unique_ptr< SCH_NETCHAIN > | aChain ) |
Definition at line 394 of file test_net_chain_save_root_only.cpp.
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().