KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_sim_model_multiunit.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <sim/sim_model_multiunit.h>
#include <sim/sim_model_subckt.h>
#include <sim/spice_generator.h>
#include <ki_exception.h>
#include <memory>
#include <set>
#include <wx/tokenzr.h>

Go to the source code of this file.

Functions

static std::unique_ptr< SIM_MODEL_SUBCKTmakeBaseOpamp ()
 
static std::vector< UNIT_PIN_MAPdualOpampMaps ()
 
static std::vector< wxString > splitTokens (const wxString &aLine)
 
 BOOST_AUTO_TEST_CASE (ParsePinsPreservesOrder)
 
 BOOST_AUTO_TEST_CASE (ParsePinsAllowsSharedModelPinAcrossSymbolPins)
 
 BOOST_AUTO_TEST_CASE (ParsePinsDuplicateIdenticalIsDeduped)
 
 BOOST_AUTO_TEST_CASE (ParsePinsMalformedMissingValue)
 
 BOOST_AUTO_TEST_CASE (ParsePinsMalformedMissingNumber)
 
 BOOST_AUTO_TEST_CASE (ParsePinsMalformedNoEquals)
 
 BOOST_AUTO_TEST_CASE (ParsePinsConflictThrows)
 
 BOOST_AUTO_TEST_CASE (WrapperSyntheticPinList)
 
 BOOST_AUTO_TEST_CASE (WrapperModelLine)
 
 BOOST_AUTO_TEST_CASE (WrapperDedupSignatureStable)
 
 BOOST_AUTO_TEST_CASE (WrapperCurrentNames)
 
 BOOST_AUTO_TEST_CASE (WrapperUnknownSharedPinThrows)
 
 BOOST_AUTO_TEST_CASE (WrapperUnassignedBasePinThrows)
 
 BOOST_AUTO_TEST_CASE (WrapperSharedPinMissingNetThrows)
 
 BOOST_AUTO_TEST_CASE (WrapperSharedPinMultipleNetsThrows)
 
 BOOST_AUTO_TEST_CASE (WrapperFourInstancesSharedRails)
 
 BOOST_AUTO_TEST_CASE (WrapperPrivatePerInstancePinIsNotConnected)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/17]

BOOST_AUTO_TEST_CASE ( ParsePinsAllowsSharedModelPinAcrossSymbolPins )

Definition at line 83 of file test_sim_model_multiunit.cpp.

References ParseSimPinsTokens().

◆ BOOST_AUTO_TEST_CASE() [2/17]

BOOST_AUTO_TEST_CASE ( ParsePinsConflictThrows )

Definition at line 119 of file test_sim_model_multiunit.cpp.

References ParseSimPinsTokens().

◆ BOOST_AUTO_TEST_CASE() [3/17]

BOOST_AUTO_TEST_CASE ( ParsePinsDuplicateIdenticalIsDeduped )

Definition at line 90 of file test_sim_model_multiunit.cpp.

References BOOST_CHECK_EQUAL(), and ParseSimPinsTokens().

◆ BOOST_AUTO_TEST_CASE() [4/17]

BOOST_AUTO_TEST_CASE ( ParsePinsMalformedMissingNumber )

Definition at line 107 of file test_sim_model_multiunit.cpp.

References ParseSimPinsTokens().

◆ BOOST_AUTO_TEST_CASE() [5/17]

BOOST_AUTO_TEST_CASE ( ParsePinsMalformedMissingValue )

Definition at line 101 of file test_sim_model_multiunit.cpp.

References ParseSimPinsTokens().

◆ BOOST_AUTO_TEST_CASE() [6/17]

BOOST_AUTO_TEST_CASE ( ParsePinsMalformedNoEquals )

Definition at line 113 of file test_sim_model_multiunit.cpp.

References ParseSimPinsTokens().

◆ BOOST_AUTO_TEST_CASE() [7/17]

BOOST_AUTO_TEST_CASE ( ParsePinsPreservesOrder )

◆ BOOST_AUTO_TEST_CASE() [8/17]

BOOST_AUTO_TEST_CASE ( WrapperCurrentNames )

◆ BOOST_AUTO_TEST_CASE() [9/17]

BOOST_AUTO_TEST_CASE ( WrapperDedupSignatureStable )

◆ BOOST_AUTO_TEST_CASE() [10/17]

BOOST_AUTO_TEST_CASE ( WrapperFourInstancesSharedRails )

◆ BOOST_AUTO_TEST_CASE() [11/17]

BOOST_AUTO_TEST_CASE ( WrapperModelLine )

◆ BOOST_AUTO_TEST_CASE() [12/17]

BOOST_AUTO_TEST_CASE ( WrapperPrivatePerInstancePinIsNotConnected )

◆ BOOST_AUTO_TEST_CASE() [13/17]

BOOST_AUTO_TEST_CASE ( WrapperSharedPinMissingNetThrows )

Definition at line 253 of file test_sim_model_multiunit.cpp.

References makeBaseOpamp().

◆ BOOST_AUTO_TEST_CASE() [14/17]

BOOST_AUTO_TEST_CASE ( WrapperSharedPinMultipleNetsThrows )

Definition at line 270 of file test_sim_model_multiunit.cpp.

References makeBaseOpamp().

◆ BOOST_AUTO_TEST_CASE() [15/17]

BOOST_AUTO_TEST_CASE ( WrapperSyntheticPinList )

◆ BOOST_AUTO_TEST_CASE() [16/17]

BOOST_AUTO_TEST_CASE ( WrapperUnassignedBasePinThrows )

Definition at line 236 of file test_sim_model_multiunit.cpp.

References makeBaseOpamp().

◆ BOOST_AUTO_TEST_CASE() [17/17]

BOOST_AUTO_TEST_CASE ( WrapperUnknownSharedPinThrows )

Definition at line 226 of file test_sim_model_multiunit.cpp.

References dualOpampMaps(), and makeBaseOpamp().

◆ dualOpampMaps()

static std::vector< UNIT_PIN_MAP > dualOpampMaps ( )
static

◆ makeBaseOpamp()

◆ splitTokens()

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

Definition at line 56 of file test_sim_model_multiunit.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().