|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <qa_utils/file_utils.h>#include <schematic_utils/schematic_file_util.h>#include <advanced_config.h>#include <connection_graph.h>#include <connectivity/conn_facade.h>#include <netlist_exporters/netlist_exporter_pads.h>#include <netlist_exporters/netlist_exporter_cadstar.h>#include <netlist_exporters/netlist_exporter_allegro.h>#include <netlist_exporters/netlist_exporter_kicad.h>#include <netlist_exporters/netlist_exporter_spice.h>#include <richio.h>#include <wx/dir.h>#include <boost/mpl/list.hpp>#include <type_traits>#include <algorithm>#include <reporter.h>#include <schematic.h>#include <sch_screen.h>#include <sch_label.h>#include <sch_symbol.h>#include <sch_rule_area.h>#include <sch_netchain.h>#include <locale_io.h>#include <wx/xml/xml.h>#include <settings/settings_manager.h>#include <wx/ffile.h>#include <scoped_set_reset.h>Go to the source code of this file.
Classes | |
| struct | GlobalConfig |
Typedefs | |
| using | PUBLISHED_EXPORTERS = boost::mpl::list<NETLIST_EXPORTER_PADS, NETLIST_EXPORTER_CADSTAR> |
Functions | |
| BOOST_GLOBAL_FIXTURE (GlobalConfig) | |
| BOOST_AUTO_TEST_CASE (CurrentSheetExportPreservesFullInstancePaths) | |
| BOOST_AUTO_TEST_CASE (SpiceGroundNamesIgnorePowerScope) | |
| BOOST_AUTO_TEST_CASE_TEMPLATE (UsesPublishedNetsWithoutLegacyGraph, EXPORTER, PUBLISHED_EXPORTERS) | |
| BOOST_AUTO_TEST_CASE (AllegroUsesPublishedNetsAndPreservesDeviceFiles) | |
| BOOST_AUTO_TEST_CASE (PcbFormattingAndFileExportRebuildUnnotifiedSourceChanges) | |
| BOOST_AUTO_TEST_CASE (ExportRefreshesSymbolRuleAreaMembership) | |
| BOOST_AUTO_TEST_CASE (FormattingFailureAllowsExporterReuse) | |
| BOOST_AUTO_TEST_CASE (ExportRefreshesCommittedChainAfterNetRename) | |
| using PUBLISHED_EXPORTERS = boost::mpl::list<NETLIST_EXPORTER_PADS, NETLIST_EXPORTER_CADSTAR> |
Definition at line 195 of file test_connectivity_export.cpp.
| BOOST_AUTO_TEST_CASE | ( | AllegroUsesPublishedNetsAndPreservesDeviceFiles | ) |
Definition at line 249 of file test_connectivity_export.cpp.
References actual, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), directory, end, expected, ADVANCED_CFG::GetCfg(), KI_TEST::LoadSchematic(), path, KI_TEST::SCOPED_TEMP_DIR::PathStr(), reporter, result, text, and NETLIST_EXPORTER_BASE::WriteNetlist().
| BOOST_AUTO_TEST_CASE | ( | CurrentSheetExportPreservesFullInstancePaths | ) |
Definition at line 62 of file test_connectivity_export.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), NETLIST_EXPORTER_SPICE::BuildSheetList(), ADVANCED_CFG::GetCfg(), KI_TEST::LoadSchematic(), ADVANCED_CFG::m_ConnectivityEngine, NETLIST_EXPORTER_SPICE::NETLIST_EXPORTER_SPICE(), path, and SCH_SHEET_PATH::pop_back().
| BOOST_AUTO_TEST_CASE | ( | ExportRefreshesCommittedChainAfterNetRename | ) |
Definition at line 486 of file test_connectivity_export.cpp.
References BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), chain, SCH_ITEM::Connection(), directory, ADVANCED_CFG::GetCfg(), GNL_OPT_KICAD, KI_TEST::LoadSchematic(), path, reporter, SCH_LABEL_T, EDA_TEXT::SetText(), and NETLIST_EXPORTER_BASE::WriteNetlist().
| BOOST_AUTO_TEST_CASE | ( | ExportRefreshesSymbolRuleAreaMembership | ) |
Definition at line 366 of file test_connectivity_export.cpp.
References SCH_SCREEN::Append(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), directory, ADVANCED_CFG::GetCfg(), SCH_SYMBOL::GetPosition(), SCH_SYMBOL::GetRef(), SCH_ITEM::GetRuleAreaCache(), SCH_SCREEN::Items(), KI_TEST::LoadSchematic(), EE_RTREE::OfType(), path, SCH_SCREEN::Remove(), reporter, SCH_ITEM::ResolveDNP(), SCH_RULE_AREA_T, SCH_SYMBOL_T, SCH_SYMBOL::SetDNP(), SCH_SYMBOL::SetPosition(), SCH_RULE_AREA::UpdateRuleAreasInScreens(), and NETLIST_EXPORTER_BASE::WriteNetlist().
| BOOST_AUTO_TEST_CASE | ( | FormattingFailureAllowsExporterReuse | ) |
Definition at line 452 of file test_connectivity_export.cpp.
References BOOST_TEST_CONTEXT(), NETLIST_EXPORTER_KICAD::Format(), ADVANCED_CFG::GetCfg(), STRING_FORMATTER::GetString(), GNL_ALL, GNL_OPT_KICAD, KI_TEST::LoadSchematic(), THROW_IO_ERROR, and STRING_FORMATTER::write().
| BOOST_AUTO_TEST_CASE | ( | PcbFormattingAndFileExportRebuildUnnotifiedSourceChanges | ) |
Definition at line 319 of file test_connectivity_export.cpp.
References SCH_SCREEN::Append(), BOOST_REQUIRE(), EDA_TEXT::cacheShownText(), SCH_LABEL_BASE::cacheShownText(), SCH_SCREEN::ConnectivityRevision(), directory, NETLIST_EXPORTER_KICAD::Format(), ADVANCED_CFG::GetCfg(), STRING_FORMATTER::GetString(), GNL_ALL, GNL_OPT_KICAD, SCH_SCREEN::Items(), KI_TEST::LoadSchematic(), EE_RTREE::OfType(), path, SCH_SCREEN::Remove(), reporter, SCH_LABEL::SCH_LABEL(), SCH_LABEL_T, source, text, and NETLIST_EXPORTER_BASE::WriteNetlist().
| BOOST_AUTO_TEST_CASE | ( | SpiceGroundNamesIgnorePowerScope | ) |
Definition at line 138 of file test_connectivity_export.cpp.
References BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), ADVANCED_CFG::GetCfg(), SCH_SYMBOL::GetField(), SCH_SYMBOL::GetLibSymbolRef(), NETLIST_EXPORTER_SPICE::GetNets(), KI_TEST::LoadSchematic(), name, path, NETLIST_EXPORTER_SPICE::ReadSchematicAndLibraries(), reporter, SCH_SYMBOL_T, LIB_SYMBOL::SetGlobalPower(), LIB_SYMBOL::SetLocalPower(), SCH_FIELD::SetText(), and VALUE.
| BOOST_AUTO_TEST_CASE_TEMPLATE | ( | UsesPublishedNetsWithoutLegacyGraph | , |
| EXPORTER | , | ||
| PUBLISHED_EXPORTERS | ) |
Definition at line 197 of file test_connectivity_export.cpp.
References actual, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), directory, end, expected, ADVANCED_CFG::GetCfg(), KI_TEST::LoadSchematic(), path, reporter, and text.
| BOOST_GLOBAL_FIXTURE | ( | GlobalConfig | ) |