KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_ngspice_helpers.cpp File Reference

Test suite for SPICE_CIRCUIT_MODEL. More...

#include <string.h>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <vector>
#include <wx/string.h>
#include <project.h>
#include <schematic.h>
#include <settings/settings_manager.h>
#include <sim/spice_circuit_model.h>

Go to the source code of this file.

Classes

class  TEST_NGSPICE_HELPERS
 

Functions

 BOOST_AUTO_TEST_CASE (CommandToSimType)
 Declare the test suite.
 
 BOOST_AUTO_TEST_CASE (VectorToSignal)
 Check conversion from internal spice vector name to eeschema format.
 

Detailed Description

Test suite for SPICE_CIRCUIT_MODEL.

Definition in file test_ngspice_helpers.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( CommandToSimType  )

Declare the test suite.

Check if simulation command is recognised properly

Definition at line 75 of file test_ngspice_helpers.cpp.

References SPICE_CIRCUIT_MODEL::CommandToSimType(), ST_AC, ST_DC, ST_DISTO, ST_NOISE, ST_OP, ST_PZ, ST_SENS, ST_TF, ST_TRAN, and ST_UNKNOWN.

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( VectorToSignal  )

Check conversion from internal spice vector name to eeschema format.

Definition at line 130 of file test_ngspice_helpers.cpp.

References SPT_CURRENT, SPT_UNKNOWN, and SPT_VOLTAGE.