KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_netlist_exporter_spice.cpp File Reference
#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_SYMBOLfindPrimaryUnit (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)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/21]

BOOST_AUTO_TEST_CASE ( CmosNot )

Definition at line 226 of file test_netlist_exporter_spice.cpp.

References dummy.

◆ BOOST_AUTO_TEST_CASE() [2/21]

◆ BOOST_AUTO_TEST_CASE() [3/21]

◆ BOOST_AUTO_TEST_CASE() [4/21]

BOOST_AUTO_TEST_CASE ( FliegeFilter )

Definition at line 245 of file test_netlist_exporter_spice.cpp.

References dummy.

◆ BOOST_AUTO_TEST_CASE() [5/21]

BOOST_AUTO_TEST_CASE ( LegacyOpamp )

Definition at line 362 of file test_netlist_exporter_spice.cpp.

References dummy.

◆ BOOST_AUTO_TEST_CASE() [6/21]

BOOST_AUTO_TEST_CASE ( LegacyPotentiometer )

Definition at line 306 of file test_netlist_exporter_spice.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/21]

BOOST_AUTO_TEST_CASE ( LegacyPspice )

Definition at line 314 of file test_netlist_exporter_spice.cpp.

References dummy.

◆ BOOST_AUTO_TEST_CASE() [8/21]

BOOST_AUTO_TEST_CASE ( LegacyRectifier )

Definition at line 323 of file test_netlist_exporter_spice.cpp.

References dummy.

◆ BOOST_AUTO_TEST_CASE() [9/21]

BOOST_AUTO_TEST_CASE ( LegacySallenKey )

Definition at line 334 of file test_netlist_exporter_spice.cpp.

References dummy.

◆ BOOST_AUTO_TEST_CASE() [10/21]

BOOST_AUTO_TEST_CASE ( MultiUnitRepeatOpamp )

◆ BOOST_AUTO_TEST_CASE() [11/21]

BOOST_AUTO_TEST_CASE ( MultiUnitRepeatOpampSimulates )

Definition at line 556 of file test_netlist_exporter_spice.cpp.

References dummy, and LoadSchematic().

◆ BOOST_AUTO_TEST_CASE() [12/21]

BOOST_AUTO_TEST_CASE ( MultiUnitSplitPinMap )

◆ BOOST_AUTO_TEST_CASE() [13/21]

BOOST_AUTO_TEST_CASE ( NpnCeAmp )

Definition at line 163 of file test_netlist_exporter_spice.cpp.

References dummy.

◆ BOOST_AUTO_TEST_CASE() [14/21]

BOOST_AUTO_TEST_CASE ( Opamp )

Definition at line 145 of file test_netlist_exporter_spice.cpp.

References dummy.

◆ BOOST_AUTO_TEST_CASE() [15/21]

BOOST_AUTO_TEST_CASE ( Potentiometers )

Definition at line 186 of file test_netlist_exporter_spice.cpp.

◆ BOOST_AUTO_TEST_CASE() [16/21]

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() [17/21]

◆ BOOST_AUTO_TEST_CASE() [18/21]

BOOST_AUTO_TEST_CASE ( Rlc )

Definition at line 177 of file test_netlist_exporter_spice.cpp.

References dummy.

◆ BOOST_AUTO_TEST_CASE() [19/21]

BOOST_AUTO_TEST_CASE ( Switches )

Definition at line 258 of file test_netlist_exporter_spice.cpp.

References dummy.

◆ BOOST_AUTO_TEST_CASE() [20/21]

BOOST_AUTO_TEST_CASE ( Tlines )

Definition at line 195 of file test_netlist_exporter_spice.cpp.

References dummy.

◆ BOOST_AUTO_TEST_CASE() [21/21]

◆ findPrimaryUnit()

static SCH_SYMBOL * findPrimaryUnit ( SCHEMATIC * aSchematic,
const wxString & aRef,
SCH_SHEET_PATH & aSheetOut )
static

◆ normalizeSpiceNetlist()

static wxString normalizeSpiceNetlist ( const wxString & aNetlist)
static

Definition at line 62 of file test_netlist_exporter_spice.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ splitNetlistLine()

static std::vector< wxString > splitNetlistLine ( const wxString & aLine)
static

Definition at line 85 of file test_netlist_exporter_spice.cpp.

Referenced by BOOST_AUTO_TEST_CASE().