KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TEST_NETLIST_EXPORTER_SPICE_FIXTURE Class Reference

#include <test_netlist_exporter_spice.h>

Inheritance diagram for TEST_NETLIST_EXPORTER_SPICE_FIXTURE:
TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE > KI_TEST::SCHEMATIC_TEST_FIXTURE TEST_SIM_REGRESSIONS_FIXTURE

Classes

class  SPICE_TEST_REPORTER
 

Public Member Functions

 TEST_NETLIST_EXPORTER_SPICE_FIXTURE ()
 
 ~TEST_NETLIST_EXPORTER_SPICE_FIXTURE ()
 
wxFileName GetSchematicPath (const wxString &aBaseName) override
 
wxString GetNetlistPath (bool aTest=false) override
 
void CompareNetlists () override
 
void TestOpPoint (double aRefValue, const std::string &aVectorName, double aMaxRelError=MAX_DEFAULT_REL_ERROR)
 
void TestPoint (const std::string &aXVectorName, double aXValue, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR)
 
void TestTranPoint (double aTime, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR)
 
void TestACPoint (double aFrequency, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR)
 
wxString GetResultsPath (bool aTest=false)
 
unsigned GetNetlistOptions () override
 
 TEST_NETLIST_EXPORTER_SPICE_FIXTURE ()
 
 ~TEST_NETLIST_EXPORTER_SPICE_FIXTURE ()
 
wxFileName GetSchematicPath (const wxString &aBaseName) override
 
wxString GetNetlistPath (bool aTest=false) override
 
void CompareNetlists () override
 
void TestOpPoint (double aRefValue, const std::string &aVectorName, double aMaxRelError=MAX_DEFAULT_REL_ERROR)
 
void TestPoint (const std::string &aXVectorName, double aXValue, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR)
 
void TestTranPoint (double aTime, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR)
 
void TestACPoint (double aFrequency, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR)
 
wxString GetResultsPath (bool aTest=false)
 
unsigned GetNetlistOptions () override
 
void WriteNetlist ()
 
void Cleanup ()
 
void TestNetlist (const wxString &aBaseName)
 

Public Attributes

std::shared_ptr< SPICE_SIMULATORm_simulator
 
std::shared_ptr< wxString > m_log
 
std::unique_ptr< SPICE_TEST_REPORTERm_reporter
 
bool m_abort
 

Protected Member Functions

virtual void LoadSchematic (const wxString &aRelativePath)
 

Protected Attributes

SCHEMATIC m_schematic
 
IO_RELEASER< SCH_IOm_pi
 
SETTINGS_MANAGER m_manager
 

Detailed Description

Definition at line 39 of file eeschema/test_netlist_exporter_spice.h.

Constructor & Destructor Documentation

◆ TEST_NETLIST_EXPORTER_SPICE_FIXTURE() [1/2]

TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TEST_NETLIST_EXPORTER_SPICE_FIXTURE ( )
inline

Definition at line 66 of file eeschema/test_netlist_exporter_spice.h.

◆ ~TEST_NETLIST_EXPORTER_SPICE_FIXTURE() [1/2]

TEST_NETLIST_EXPORTER_SPICE_FIXTURE::~TEST_NETLIST_EXPORTER_SPICE_FIXTURE ( )
inline

Definition at line 75 of file eeschema/test_netlist_exporter_spice.h.

References m_log.

◆ TEST_NETLIST_EXPORTER_SPICE_FIXTURE() [2/2]

TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TEST_NETLIST_EXPORTER_SPICE_FIXTURE ( )
inline

Definition at line 65 of file spice/test_netlist_exporter_spice.h.

◆ ~TEST_NETLIST_EXPORTER_SPICE_FIXTURE() [2/2]

TEST_NETLIST_EXPORTER_SPICE_FIXTURE::~TEST_NETLIST_EXPORTER_SPICE_FIXTURE ( )
inline

Definition at line 74 of file spice/test_netlist_exporter_spice.h.

References m_log.

Member Function Documentation

◆ Cleanup()

Definition at line 80 of file eeschema_test_utils.cpp.

◆ CompareNetlists() [1/2]

void TEST_NETLIST_EXPORTER_SPICE_FIXTURE::CompareNetlists ( )
inlineoverridevirtual

◆ CompareNetlists() [2/2]

◆ GetNetlistOptions() [1/2]

◆ GetNetlistOptions() [2/2]

◆ GetNetlistPath() [1/2]

wxString TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetNetlistPath ( bool  aTest = false)
inlineoverridevirtual

◆ GetNetlistPath() [2/2]

wxString TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetNetlistPath ( bool  aTest = false)
inlineoverridevirtual

◆ GetResultsPath() [1/2]

wxString TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetResultsPath ( bool  aTest = false)
inline

Definition at line 263 of file eeschema/test_netlist_exporter_spice.h.

References GetNetlistPath().

◆ GetResultsPath() [2/2]

wxString TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetResultsPath ( bool  aTest = false)
inline

Definition at line 276 of file spice/test_netlist_exporter_spice.h.

References GetNetlistPath().

◆ GetSchematicPath() [1/2]

wxFileName TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetSchematicPath ( const wxString &  aBaseName)
inlineoverridevirtual

◆ GetSchematicPath() [2/2]

wxFileName TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetSchematicPath ( const wxString &  aBaseName)
inlineoverridevirtual

◆ LoadSchematic()

void KI_TEST::SCHEMATIC_TEST_FIXTURE::LoadSchematic ( const wxString &  aRelativePath)
protectedvirtualinherited

◆ TestACPoint() [1/2]

void TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestACPoint ( double  aFrequency,
const std::map< const std::string, double >  aTestVectorsAndValues,
double  aMaxRelError = MAX_DEFAULT_REL_ERROR 
)
inline

Definition at line 256 of file eeschema/test_netlist_exporter_spice.h.

References TestPoint().

◆ TestACPoint() [2/2]

void TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestACPoint ( double  aFrequency,
const std::map< const std::string, double >  aTestVectorsAndValues,
double  aMaxRelError = MAX_DEFAULT_REL_ERROR 
)
inline

Definition at line 269 of file spice/test_netlist_exporter_spice.h.

References TestPoint().

◆ TestNetlist()

void TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE >::TestNetlist ( const wxString &  aBaseName)
inherited

Definition at line 82 of file eeschema_test_utils.cpp.

◆ TestOpPoint() [1/2]

void TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestOpPoint ( double  aRefValue,
const std::string &  aVectorName,
double  aMaxRelError = MAX_DEFAULT_REL_ERROR 
)
inline

Definition at line 176 of file eeschema/test_netlist_exporter_spice.h.

References m_simulator.

◆ TestOpPoint() [2/2]

void TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestOpPoint ( double  aRefValue,
const std::string &  aVectorName,
double  aMaxRelError = MAX_DEFAULT_REL_ERROR 
)
inline

Definition at line 189 of file spice/test_netlist_exporter_spice.h.

References NGSPICE::GetRealVector(), and m_simulator.

◆ TestPoint() [1/2]

void TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestPoint ( const std::string &  aXVectorName,
double  aXValue,
const std::map< const std::string, double >  aTestVectorsAndValues,
double  aMaxRelError = MAX_DEFAULT_REL_ERROR 
)
inline

Definition at line 192 of file eeschema/test_netlist_exporter_spice.h.

References m_simulator.

Referenced by TestACPoint(), and TestTranPoint().

◆ TestPoint() [2/2]

void TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestPoint ( const std::string &  aXVectorName,
double  aXValue,
const std::map< const std::string, double >  aTestVectorsAndValues,
double  aMaxRelError = MAX_DEFAULT_REL_ERROR 
)
inline

◆ TestTranPoint() [1/2]

void TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestTranPoint ( double  aTime,
const std::map< const std::string, double >  aTestVectorsAndValues,
double  aMaxRelError = MAX_DEFAULT_REL_ERROR 
)
inline

Definition at line 249 of file eeschema/test_netlist_exporter_spice.h.

References TestPoint().

◆ TestTranPoint() [2/2]

void TEST_NETLIST_EXPORTER_SPICE_FIXTURE::TestTranPoint ( double  aTime,
const std::map< const std::string, double >  aTestVectorsAndValues,
double  aMaxRelError = MAX_DEFAULT_REL_ERROR 
)
inline

Definition at line 262 of file spice/test_netlist_exporter_spice.h.

References TestPoint().

◆ WriteNetlist()

void TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE >::WriteNetlist
inherited

Definition at line 76 of file eeschema_test_utils.cpp.

Member Data Documentation

◆ m_abort

bool TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_abort

Definition at line 284 of file eeschema/test_netlist_exporter_spice.h.

Referenced by CompareNetlists().

◆ m_log

std::shared_ptr< wxString > TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_log

◆ m_manager

SETTINGS_MANAGER KI_TEST::SCHEMATIC_TEST_FIXTURE::m_manager
protectedinherited

Definition at line 62 of file eeschema_test_utils.h.

◆ m_pi

IO_RELEASER<SCH_IO> KI_TEST::SCHEMATIC_TEST_FIXTURE::m_pi
protectedinherited

Definition at line 61 of file eeschema_test_utils.h.

◆ m_reporter

std::unique_ptr< SPICE_TEST_REPORTER > TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_reporter

Definition at line 283 of file eeschema/test_netlist_exporter_spice.h.

Referenced by CompareNetlists().

◆ m_schematic

◆ m_simulator

std::shared_ptr< SPICE_SIMULATOR > TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_simulator

Definition at line 281 of file eeschema/test_netlist_exporter_spice.h.

Referenced by CompareNetlists(), TestOpPoint(), and TestPoint().


The documentation for this class was generated from the following files: