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

std::unique_ptr< SCHEMATICm_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

◆ ~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()

void TEST_NETLIST_EXPORTER_FIXTURE< NETLIST_EXPORTER_SPICE >::Cleanup ( )
inherited

Definition at line 80 of file eeschema_test_utils.cpp.

◆ CompareNetlists()

void TEST_NETLIST_EXPORTER_SPICE_FIXTURE::CompareNetlists ( )
inlineoverridevirtualinherited

◆ GetNetlistOptions()

◆ GetNetlistPath()

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

◆ GetResultsPath()

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

Definition at line 284 of file test_netlist_exporter_spice.h.

References GetNetlistPath().

◆ GetSchematicPath()

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

◆ LoadSchematic()

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

Definition at line 57 of file eeschema_test_utils.cpp.

◆ TestACPoint()

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

Definition at line 277 of file test_netlist_exporter_spice.h.

References MAX_DEFAULT_REL_ERROR, and 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()

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

◆ TestPoint()

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()

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

Definition at line 270 of file test_netlist_exporter_spice.h.

References MAX_DEFAULT_REL_ERROR, and 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
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

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
inherited

◆ m_SaveCurrents

bool TEST_SIM_REGRESSIONS_FIXTURE::m_SaveCurrents = true

Definition at line 86 of file test_sim_regressions.cpp.

Referenced by GetNetlistOptions().

◆ m_SavesDissipations

bool TEST_SIM_REGRESSIONS_FIXTURE::m_SavesDissipations = false

Definition at line 84 of file test_sim_regressions.cpp.

Referenced by GetNetlistOptions().

◆ m_SaveVoltages

bool TEST_SIM_REGRESSIONS_FIXTURE::m_SaveVoltages = true

Definition at line 85 of file test_sim_regressions.cpp.

Referenced by GetNetlistOptions().

◆ m_schematic

std::unique_ptr<SCHEMATIC> KI_TEST::SCHEMATIC_TEST_FIXTURE::m_schematic
protectedinherited

◆ m_simulator

std::shared_ptr<SPICE_SIMULATOR> TEST_NETLIST_EXPORTER_SPICE_FIXTURE::m_simulator
inherited

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