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

Test suite for ALTIUM_BINARY_PARSER. More...

Go to the source code of this file.

Classes

struct  ALTIUM_BINARY_PARSER_FIXTURE
 
struct  ALTIUM_TO_KICAD_UNIT_CASE
 Declares the struct as the Boost test fixture. More...
 
struct  READ_KICAD_UNIT_CASE
 
struct  READ_PROPERTIES_CASE
 

Functions

 BOOST_AUTO_TEST_CASE (ConvertToKicadUnit)
 Test conversation from Altium internal units into KiCad internal units.
 
 BOOST_AUTO_TEST_CASE (PropertiesReadKicadUnit)
 Test conversation from Unit property into KiCad internal units.
 
 BOOST_AUTO_TEST_CASE (ReadProperties)
 Test conversation from binary to properties.
 

Variables

static const std::vector< ALTIUM_TO_KICAD_UNIT_CASEaltium_to_kicad_unit
 A list of valid internal unit conversation factors Rem: altium to kicad importer rounds coordinates to the near 10 nm value when converting altium values in 0.01 mil to pcbnew units (1 nm)
 
static const std::vector< READ_KICAD_UNIT_CASEread_kicad_unit_property
 A list of valid test strings and the expected results.
 
static const std::vector< READ_PROPERTIES_CASEread_properties
 A list of valid test strings and the expected result map.
 

Detailed Description

Test suite for ALTIUM_BINARY_PARSER.

Definition in file test_altium_parser.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( ConvertToKicadUnit  )

Test conversation from Altium internal units into KiCad internal units.

Definition at line 129 of file test_altium_parser.cpp.

References altium_to_kicad_unit, BOOST_TEST_CONTEXT, and ALTIUM_PROPS_UTILS::ConvertToKicadUnit().

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( PropertiesReadKicadUnit  )

Test conversation from Unit property into KiCad internal units.

Definition at line 203 of file test_altium_parser.cpp.

References BOOST_TEST_CONTEXT, read_kicad_unit_property, and ALTIUM_PROPS_UTILS::ReadKicadUnit().

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( ReadProperties  )

Variable Documentation

◆ altium_to_kicad_unit

const std::vector<ALTIUM_TO_KICAD_UNIT_CASE> altium_to_kicad_unit
static

A list of valid internal unit conversation factors Rem: altium to kicad importer rounds coordinates to the near 10 nm value when converting altium values in 0.01 mil to pcbnew units (1 nm)

Definition at line 55 of file test_altium_parser.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ read_kicad_unit_property

const std::vector<READ_KICAD_UNIT_CASE> read_kicad_unit_property
static

A list of valid test strings and the expected results.

Definition at line 152 of file test_altium_parser.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ read_properties

const std::vector<READ_PROPERTIES_CASE> read_properties
static

A list of valid test strings and the expected result map.

Definition at line 228 of file test_altium_parser.cpp.

Referenced by BOOST_AUTO_TEST_CASE().