|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <connectivity/conn_facade.h>#include <schematic_utils/schematic_file_util.h>#include <schematic.h>#include <sch_screen.h>#include <sch_commit.h>#include <sch_sheet.h>#include <sch_symbol.h>#include <bus_alias.h>#include <sch_label.h>#include <sch_line.h>#include <sch_bus_entry.h>#include <sch_pin.h>#include <sch_netchain.h>#include <connectivity/conn_netchain_manager.h>#include <gal/color4d.h>#include <sch_rule_area.h>#include <project/project_file.h>#include <project/net_settings.h>#include <settings/settings_manager.h>#include <algorithm>#include <advanced_config.h>#include <connection_graph.h>#include <tool/tool_manager.h>#include <scoped_set_reset.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (NativeSheetRenameEscapesPublishedNetPrefixes) | |
| BOOST_AUTO_TEST_CASE (NativeTopLevelRootsRetainLocalAndGlobalScope) | |
| BOOST_AUTO_TEST_CASE (AutomaticUpdateRefreshesUntrackedProjectVariables) | |
| BOOST_AUTO_TEST_CASE (FailedUpdateClearsRetainedViews) | |
| BOOST_AUTO_TEST_CASE (SharedScreensAndCrossInstanceDrivers) | |
| BOOST_AUTO_TEST_CASE (RecalculationSkipsScreenlessSheets) | |
| BOOST_AUTO_TEST_CASE (RecalculationRestoresNativeDirectiveAttachments) | |
| BOOST_AUTO_TEST_CASE (RecalculationRestoresNativeEndpointFlags) | |
| BOOST_AUTO_TEST_CASE (RecalculationUsesCurrentInstanceForSharedPinFlags) | |
| BOOST_AUTO_TEST_CASE (NativePassthroughCommitRebuildsNetChains) | |
| BOOST_AUTO_TEST_CASE | ( | AutomaticUpdateRefreshesUntrackedProjectVariables | ) |
Definition at line 242 of file test_connectivity_facade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SCREEN::Items(), KI_TEST::LoadSchematic(), EE_RTREE::OfType(), SCH_LABEL_T, and EDA_TEXT::SetText().
| BOOST_AUTO_TEST_CASE | ( | FailedUpdateClearsRetainedViews | ) |
Definition at line 265 of file test_connectivity_facade.cpp.
References BOOST_REQUIRE(), KI_TEST::LoadSchematic(), and path.
| BOOST_AUTO_TEST_CASE | ( | NativePassthroughCommitRebuildsNetChains | ) |
Definition at line 512 of file test_connectivity_facade.cpp.
References SCH_SYMBOL::BLOCK, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), chain, SCH_SYMBOL::DEFAULT, ADVANCED_CFG::GetCfg(), KI_TEST::LoadSchematic(), COMMIT::Modify(), path, SCH_COMMIT::Push(), SCH_SYMBOL_T, TOOL_MANAGER::SetEnvironment(), SCH_SYMBOL::SetPassthroughMode(), and SKIP_UNDO.
| BOOST_AUTO_TEST_CASE | ( | NativeSheetRenameEscapesPublishedNetPrefixes | ) |
Definition at line 50 of file test_connectivity_facade.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), copy, expected, KI_TEST::LoadSchematic(), EDA_ITEM::m_Uuid, name, path, SCH_SHEET_PATH::PathHumanReadable(), SCH_SHEET_PATH::push_back(), and SCH_LABEL_T.
| BOOST_AUTO_TEST_CASE | ( | NativeTopLevelRootsRetainLocalAndGlobalScope | ) |
Definition at line 131 of file test_connectivity_facade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), SCH_SHEET::Clone(), copy, SCH_SYMBOL::GetField(), SCH_SHEET::GetScreen(), EDA_TEXT::GetText(), SCH_FIELD::GetText(), SCH_SCREEN::Items(), KI_TEST::LoadSchematic(), EDA_ITEM::m_Uuid, name, path, SCH_GLOBAL_LABEL_T, SCH_LABEL_T, SCH_SYMBOL_T, SCH_SHEET::SetName(), text, EDA_ITEM::Type(), SCH_SCREEN::Update(), and VALUE.
| BOOST_AUTO_TEST_CASE | ( | RecalculationRestoresNativeDirectiveAttachments | ) |
Definition at line 361 of file test_connectivity_facade.cpp.
References BOOST_REQUIRE(), expected, SCH_DIRECTIVE_LABEL::GetConnectedRuleAreas(), KI_TEST::LoadSchematic(), path, and SCH_DIRECTIVE_LABEL_T.
| BOOST_AUTO_TEST_CASE | ( | RecalculationRestoresNativeEndpointFlags | ) |
Definition at line 394 of file test_connectivity_facade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), end, SCH_LINE::IsConnectable(), SCH_SCREEN::Items(), KI_TEST::LoadSchematic(), and path.
| BOOST_AUTO_TEST_CASE | ( | RecalculationSkipsScreenlessSheets | ) |
Definition at line 342 of file test_connectivity_facade.cpp.
References KI_TEST::LoadSchematic().
| BOOST_AUTO_TEST_CASE | ( | RecalculationUsesCurrentInstanceForSharedPinFlags | ) |
Definition at line 444 of file test_connectivity_facade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SYMBOL::GetPins(), SCH_SYMBOL::GetUnitSelection(), KI_TEST::LoadSchematic(), path, pin, PT_NC, PT_NIC, SCH_SYMBOL_T, and SCH_SYMBOL::SetUnitSelection().
| BOOST_AUTO_TEST_CASE | ( | SharedScreensAndCrossInstanceDrivers | ) |
Definition at line 287 of file test_connectivity_facade.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SCH_SCREEN::BumpConnectivityRevision(), expected, SCH_CONNECTIVITY::INVALID_ID, KI_TEST::LoadSchematic(), and path.