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

Test suite for #ALTIUM_PARSER. More...

#include <qa_utils/wx_utils/unit_test_utils.h>
#include <boost/test/data/test_case.hpp>
#include <common/io/altium/altium_parser_utils.h>

Go to the source code of this file.

Classes

struct  ALTIUM_PARSER_UTILS_FIXTURE
 
struct  SPECIAL_STRINGS_TO_KICAD
 Declares the struct as the Boost test fixture. More...
 

Functions

std::ostream & operator<< (std::ostream &strm, SPECIAL_STRINGS_TO_KICAD const &data)
 
 BOOST_DATA_TEST_CASE (AltiumSchSpecialStringsToKiCadVariablesProperties, boost::unit_test::data::make(sch_special_string_to_kicad_property), data)
 Test conversation from Altium Schematic Special String to a KiCad String with variables.
 
 BOOST_DATA_TEST_CASE (AltiumPcbSpecialStringsToKiCadStringsProperties, boost::unit_test::data::make(pcb_special_string_to_kicad_property), data)
 Test conversation from Altium Board Special String to a KiCad String with variables.
 

Variables

static const std::vector< SPECIAL_STRINGS_TO_KICADsch_special_string_to_kicad_property
 A list of valid test strings and the expected results.
 
static const std::vector< SPECIAL_STRINGS_TO_KICADpcb_special_string_to_kicad_property
 A list of valid test strings and the expected results.
 

Detailed Description

Test suite for #ALTIUM_PARSER.

Definition in file test_altium_parser_utils.cpp.

Function Documentation

◆ BOOST_DATA_TEST_CASE() [1/2]

BOOST_DATA_TEST_CASE ( AltiumPcbSpecialStringsToKiCadStringsProperties  ,
boost::unit_test::data::make(pcb_special_string_to_kicad_property ,
data   
)

Test conversation from Altium Board Special String to a KiCad String with variables.

Definition at line 207 of file test_altium_parser_utils.cpp.

References AltiumPcbSpecialStringsToKiCadStrings().

◆ BOOST_DATA_TEST_CASE() [2/2]

BOOST_DATA_TEST_CASE ( AltiumSchSpecialStringsToKiCadVariablesProperties  ,
boost::unit_test::data::make(sch_special_string_to_kicad_property ,
data   
)

Test conversation from Altium Schematic Special String to a KiCad String with variables.

Definition at line 142 of file test_altium_parser_utils.cpp.

References AltiumSchSpecialStringsToKiCadVariables().

◆ operator<<()

std::ostream & operator<< ( std::ostream &  strm,
SPECIAL_STRINGS_TO_KICAD const &  data 
)

Variable Documentation

◆ pcb_special_string_to_kicad_property

const std::vector<SPECIAL_STRINGS_TO_KICAD> pcb_special_string_to_kicad_property
static

A list of valid test strings and the expected results.

Definition at line 156 of file test_altium_parser_utils.cpp.

◆ sch_special_string_to_kicad_property

const std::vector<SPECIAL_STRINGS_TO_KICAD> sch_special_string_to_kicad_property
static

A list of valid test strings and the expected results.

Definition at line 60 of file test_altium_parser_utils.cpp.