|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <boost/test/results_collector.hpp>#include <test_netlist_exporter_spice.h>#include <sim/simulator_reporter.h>#include <mock_pgm_base.h>#include <locale_io.h>#include <schematic.h>#include <sch_symbol.h>#include <sch_screen.h>#include <sch_sheet_path.h>#include <wx/tokenzr.h>#include <wx/filename.h>#include <wx/utils.h>Go to the source code of this file.
Classes | |
| class | NETLIST_EXPORTER_SPICE_PROBE |
Functions | |
| static wxString | normalizeSpiceNetlist (const wxString &aNetlist) |
| static std::vector< wxString > | splitNetlistLine (const wxString &aLine) |
| static SCH_SYMBOL * | findPrimaryUnit (SCHEMATIC *aSchematic, const wxString &aRef, SCH_SHEET_PATH &aSheetOut) |
| BOOST_AUTO_TEST_CASE (Rectifier) | |
| BOOST_AUTO_TEST_CASE (Opamp) | |
| BOOST_AUTO_TEST_CASE (NpnCeAmp) | |
| BOOST_AUTO_TEST_CASE (Rlc) | |
| BOOST_AUTO_TEST_CASE (Potentiometers) | |
| BOOST_AUTO_TEST_CASE (Tlines) | |
| BOOST_AUTO_TEST_CASE (CmosNot) | |
| BOOST_AUTO_TEST_CASE (FliegeFilter) | |
| BOOST_AUTO_TEST_CASE (Switches) | |
| BOOST_AUTO_TEST_CASE (LegacyPotentiometer) | |
| BOOST_AUTO_TEST_CASE (LegacyPspice) | |
| BOOST_AUTO_TEST_CASE (LegacyRectifier) | |
| BOOST_AUTO_TEST_CASE (LegacySallenKey) | |
| BOOST_AUTO_TEST_CASE (LegacyOpamp) | |
| BOOST_AUTO_TEST_CASE (MultiUnitSplitPinMap) | |
| BOOST_AUTO_TEST_CASE (MultiUnitRepeatOpamp) | |
| BOOST_AUTO_TEST_CASE (MultiUnitRepeatOpampSimulates) | |
| BOOST_AUTO_TEST_CASE (CollectUnitPinMaps) | |
| BOOST_AUTO_TEST_CASE (DecompositionReadsRepeat) | |
| BOOST_AUTO_TEST_CASE (WholeDeviceGoldenNetlist) | |
| BOOST_AUTO_TEST_CASE (RepeatedExportIsDeterministic) | |
| BOOST_AUTO_TEST_CASE | ( | CmosNot | ) |
Definition at line 226 of file test_netlist_exporter_spice.cpp.
References dummy.
| BOOST_AUTO_TEST_CASE | ( | CollectUnitPinMaps | ) |
Definition at line 573 of file test_netlist_exporter_spice.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), NETLIST_EXPORTER_SPICE_PROBE::CollectUnitPinMaps(), dummy, findPrimaryUnit(), and LoadSchematic().
| BOOST_AUTO_TEST_CASE | ( | DecompositionReadsRepeat | ) |
Definition at line 609 of file test_netlist_exporter_spice.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), dummy, findPrimaryUnit(), NETLIST_EXPORTER_SPICE_PROBE::GetDecomposition(), LoadSchematic(), SIM_DECOMPOSITION::mode, SIM_DECOMPOSITION::REPEAT_PER_UNIT, and SIM_DECOMPOSITION::sharedModelPins.
| BOOST_AUTO_TEST_CASE | ( | FliegeFilter | ) |
Definition at line 245 of file test_netlist_exporter_spice.cpp.
References dummy.
| BOOST_AUTO_TEST_CASE | ( | LegacyOpamp | ) |
Definition at line 362 of file test_netlist_exporter_spice.cpp.
References dummy.
| BOOST_AUTO_TEST_CASE | ( | LegacyPotentiometer | ) |
Definition at line 306 of file test_netlist_exporter_spice.cpp.
| BOOST_AUTO_TEST_CASE | ( | LegacyPspice | ) |
Definition at line 314 of file test_netlist_exporter_spice.cpp.
References dummy.
| BOOST_AUTO_TEST_CASE | ( | LegacyRectifier | ) |
Definition at line 323 of file test_netlist_exporter_spice.cpp.
References dummy.
| BOOST_AUTO_TEST_CASE | ( | LegacySallenKey | ) |
Definition at line 334 of file test_netlist_exporter_spice.cpp.
References dummy.
| BOOST_AUTO_TEST_CASE | ( | MultiUnitRepeatOpamp | ) |
Definition at line 457 of file test_netlist_exporter_spice.cpp.
References BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), BOOST_TEST_INFO(), dummy, LoadSchematic(), netlist, and splitNetlistLine().
| BOOST_AUTO_TEST_CASE | ( | MultiUnitRepeatOpampSimulates | ) |
Definition at line 556 of file test_netlist_exporter_spice.cpp.
References dummy, and LoadSchematic().
| BOOST_AUTO_TEST_CASE | ( | MultiUnitSplitPinMap | ) |
Definition at line 380 of file test_netlist_exporter_spice.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), BOOST_TEST_INFO(), dummy, LoadSchematic(), and netlist.
| BOOST_AUTO_TEST_CASE | ( | NpnCeAmp | ) |
Definition at line 163 of file test_netlist_exporter_spice.cpp.
References dummy.
| BOOST_AUTO_TEST_CASE | ( | Opamp | ) |
Definition at line 145 of file test_netlist_exporter_spice.cpp.
References dummy.
| BOOST_AUTO_TEST_CASE | ( | Potentiometers | ) |
Definition at line 186 of file test_netlist_exporter_spice.cpp.
| BOOST_AUTO_TEST_CASE | ( | Rectifier | ) |
Definition at line 123 of file test_netlist_exporter_spice.cpp.
References BOOST_AUTO_TEST_CASE(), and dummy.
| BOOST_AUTO_TEST_CASE | ( | RepeatedExportIsDeterministic | ) |
Definition at line 696 of file test_netlist_exporter_spice.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), BOOST_TEST_INFO(), dummy, LoadSchematic(), netlist, path, reporter, and NETLIST_EXPORTER_SPICE::WriteNetlist().
| BOOST_AUTO_TEST_CASE | ( | Rlc | ) |
Definition at line 177 of file test_netlist_exporter_spice.cpp.
References dummy.
| BOOST_AUTO_TEST_CASE | ( | Switches | ) |
Definition at line 258 of file test_netlist_exporter_spice.cpp.
References dummy.
| BOOST_AUTO_TEST_CASE | ( | Tlines | ) |
Definition at line 195 of file test_netlist_exporter_spice.cpp.
References dummy.
| BOOST_AUTO_TEST_CASE | ( | WholeDeviceGoldenNetlist | ) |
Definition at line 635 of file test_netlist_exporter_spice.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), BOOST_TEST_INFO(), BOOST_TEST_MESSAGE(), dummy, LoadSchematic(), netlist, and normalizeSpiceNetlist().
|
static |
Definition at line 99 of file test_netlist_exporter_spice.cpp.
References SCH_SYMBOL::GetRef(), SCHEMATIC::Hierarchy(), and SCH_SYMBOL_T.
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 62 of file test_netlist_exporter_spice.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 85 of file test_netlist_exporter_spice.cpp.
Referenced by BOOST_AUTO_TEST_CASE().