KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_netlist_exporter_xml_stacked.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <schematic_utils/schematic_file_util.h>
#include <set>
#include <vector>
#include <schematic.h>
#include <settings/settings_manager.h>
#include <netlist_exporter_xml.h>
#include <wx/filename.h>
#include <wx/xml/xml.h>

Go to the source code of this file.

Classes

struct  XML_STACKED_PIN_FIXTURE
 

Functions

static std::set< wxString > as_set (const std::initializer_list< const char * > &init)
 
static wxXmlNode * find_child (wxXmlNode *parent, const wxString &name)
 
static std::vector< wxXmlNode * > find_children (wxXmlNode *parent, const wxString &name)
 
static wxXmlNode * find_component (wxXmlNode *components, const wxString &ref)
 
static wxXmlNode * find_unit (wxXmlNode *units, const wxString &name)
 
static std::vector< wxString > get_pin_numbers (wxXmlNode *unit)
 
 BOOST_FIXTURE_TEST_CASE (NetlistExporterXML_StackedPinNomenclature, XML_STACKED_PIN_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (NetlistExporterXML_UsesPerUnitResolvedLibraryMetadata, XML_STACKED_PIN_FIXTURE)
 

Function Documentation

◆ as_set()

static std::set< wxString > as_set ( const std::initializer_list< const char * > & init)
static

Definition at line 42 of file test_netlist_exporter_xml_stacked.cpp.

Referenced by BOOST_FIXTURE_TEST_CASE().

◆ BOOST_FIXTURE_TEST_CASE() [1/2]

BOOST_FIXTURE_TEST_CASE ( NetlistExporterXML_StackedPinNomenclature ,
XML_STACKED_PIN_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [2/2]

BOOST_FIXTURE_TEST_CASE ( NetlistExporterXML_UsesPerUnitResolvedLibraryMetadata ,
XML_STACKED_PIN_FIXTURE  )

◆ find_child()

static wxXmlNode * find_child ( wxXmlNode * parent,
const wxString & name )
static

◆ find_children()

static std::vector< wxXmlNode * > find_children ( wxXmlNode * parent,
const wxString & name )
static

◆ find_component()

static wxXmlNode * find_component ( wxXmlNode * components,
const wxString & ref )
static

Definition at line 74 of file test_netlist_exporter_xml_stacked.cpp.

References comp, and find_children().

Referenced by BOOST_FIXTURE_TEST_CASE().

◆ find_unit()

static wxXmlNode * find_unit ( wxXmlNode * units,
const wxString & name )
static

Definition at line 85 of file test_netlist_exporter_xml_stacked.cpp.

References find_children(), and name.

Referenced by BOOST_FIXTURE_TEST_CASE().

◆ get_pin_numbers()

static std::vector< wxString > get_pin_numbers ( wxXmlNode * unit)
static