KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TEST_SIM_REGRESSIONS_FIXTURE Class Reference
Inheritance diagram for TEST_SIM_REGRESSIONS_FIXTURE:
TEST_NETLIST_EXPORTER_SPICE_FIXTURE TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE > KI_TEST::SCHEMATIC_TEST_FIXTURE

Public Member Functions

 TEST_SIM_REGRESSIONS_FIXTURE ()
 
 ~TEST_SIM_REGRESSIONS_FIXTURE ()
 
wxFileName GetSchematicPath (const wxString &aBaseName) override
 
wxString GetNetlistPath (bool aTest=false) override
 
unsigned GetNetlistOptions () override
 
void CompareNetlists () override
 
void CompareNetlists () override
 
void TestOpPoint (double aRefValue, const std::string &aVectorName, double aMaxRelError=MAX_DEFAULT_REL_ERROR)
 
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 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 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)
 
void TestACPoint (double aFrequency, const std::map< const std::string, double > aTestVectorsAndValues, double aMaxRelError=MAX_DEFAULT_REL_ERROR)
 
wxString GetResultsPath (bool aTest=false)
 
wxString GetResultsPath (bool aTest=false)
 
void WriteNetlist ()
 
void Cleanup ()
 
void TestNetlist (const wxString &aBaseName)
 

Public Attributes

bool m_SavesDissipations = false
 
bool m_SaveVoltages = true
 
bool m_SaveCurrents = true
 
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 33 of file test_sim_regressions.cpp.

Constructor & Destructor Documentation

◆ TEST_SIM_REGRESSIONS_FIXTURE()

TEST_SIM_REGRESSIONS_FIXTURE::TEST_SIM_REGRESSIONS_FIXTURE ( )
inline

Definition at line 36 of file test_sim_regressions.cpp.

◆ ~TEST_SIM_REGRESSIONS_FIXTURE()

TEST_SIM_REGRESSIONS_FIXTURE::~TEST_SIM_REGRESSIONS_FIXTURE ( )
inline

Definition at line 41 of file test_sim_regressions.cpp.

Member Function Documentation

◆ Cleanup()

Definition at line 88 of file eeschema_test_utils.cpp.

◆ CompareNetlists() [1/2]

◆ CompareNetlists() [2/2]

◆ GetNetlistOptions()

◆ GetNetlistPath()

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

◆ GetResultsPath() [1/2]

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

◆ GetResultsPath() [2/2]

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

◆ GetSchematicPath()

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

◆ LoadSchematic()

◆ 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 
)
inlineinherited

◆ 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 
)
inlineinherited

◆ TestNetlist()

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

Definition at line 90 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 
)
inlineinherited

◆ TestOpPoint() [2/2]

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

◆ 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 
)
inlineinherited

◆ 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 
)
inlineinherited

◆ 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 
)
inlineinherited

◆ 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 
)
inlineinherited

◆ WriteNetlist()

void TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE >::WriteNetlist
inherited

Definition at line 84 of file eeschema_test_utils.cpp.

Member Data Documentation

◆ m_abort

bool TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_abort
inherited

◆ m_log

std::shared_ptr< wxString > TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_log
inherited

◆ m_manager

SETTINGS_MANAGER KI_TEST::SCHEMATIC_TEST_FIXTURE::m_manager
protectedinherited

◆ m_pi

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

◆ m_reporter

std::unique_ptr< SPICE_TEST_REPORTER > TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_reporter
inherited

◆ m_SaveCurrents

bool TEST_SIM_REGRESSIONS_FIXTURE::m_SaveCurrents = true

Definition at line 85 of file test_sim_regressions.cpp.

Referenced by GetNetlistOptions().

◆ m_SavesDissipations

bool TEST_SIM_REGRESSIONS_FIXTURE::m_SavesDissipations = false

Definition at line 83 of file test_sim_regressions.cpp.

Referenced by GetNetlistOptions().

◆ m_SaveVoltages

bool TEST_SIM_REGRESSIONS_FIXTURE::m_SaveVoltages = true

Definition at line 84 of file test_sim_regressions.cpp.

Referenced by GetNetlistOptions().

◆ m_schematic

◆ m_simulator


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