KiCad PCB EDA Suite
|
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_CASE > | altium_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_CASE > | read_kicad_unit_property |
A list of valid test strings and the expected results. | |
static const std::vector< READ_PROPERTIES_CASE > | read_properties |
A list of valid test strings and the expected result map. | |
Test suite for ALTIUM_BINARY_PARSER.
Definition in file test_altium_parser.cpp.
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 | ( | 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 | ( | ReadProperties | ) |
Test conversation from binary to properties.
Definition at line 277 of file test_altium_parser.cpp.
References BOOST_TEST_CONTEXT, ALTIUM_BINARY_PARSER::GetRemainingBytes(), ALTIUM_BINARY_PARSER::HasParsingError(), kv, read_properties, and ALTIUM_BINARY_PARSER::ReadProperties().
|
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().
|
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().
|
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().