KiCad PCB EDA Suite
|
#include <iostream>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <algorithm>
#include <optional>
#include <pegtl/contrib/analyze.hpp>
#include <pegtl/contrib/trace.hpp>
#include <common/io/cadstar/cadstar_parts_lib_grammar.h>
#include <common/io/cadstar/cadstar_parts_lib_parser.h>
Go to the source code of this file.
Classes | |
struct | CHECK_HEADER_CASE |
Functions | |
BOOST_AUTO_TEST_SUITE (CadstarPartParser) | |
static std::string | getCadstarTestFile (const std::string &aFile) |
BOOST_AUTO_TEST_CASE (AnalyzeGrammar) | |
BOOST_AUTO_TEST_CASE (CheckHeader) | |
BOOST_AUTO_TEST_CASE (ReadFile) | |
BOOST_AUTO_TEST_CASE (ReadContent) | |
Variables | |
static const std::vector< CHECK_HEADER_CASE > | check_header_cases |
BOOST_AUTO_TEST_CASE | ( | AnalyzeGrammar | ) |
Definition at line 43 of file test_cadstar_parts_parser.cpp.
BOOST_AUTO_TEST_CASE | ( | CheckHeader | ) |
Definition at line 89 of file test_cadstar_parts_parser.cpp.
References check_header_cases, and CADSTAR_PARTS_LIB_PARSER::CheckContentHeader().
BOOST_AUTO_TEST_CASE | ( | ReadContent | ) |
Definition at line 198 of file test_cadstar_parts_parser.cpp.
References BOTTOM_LEFT, BOTTOM_RIGHT, GROUND, INPUT, KI_CHECK_OPT_EQUAL, CADSTAR_PARTS_LIB_MODEL::m_FormatNumber, CADSTAR_PARTS_LIB_MODEL::m_HierarchyNodes, CADSTAR_PARTS_LIB_MODEL::m_PartEntries, OUTPUT_NOT_NORM_OR, POWER, CADSTAR_PARTS_LIB_PARSER::ReadContent(), TOP_LEFT, TOP_RIGHT, TRISTATE_BIDIR, TRISTATE_DRIVER, TRISTATE_INPUT, and UNCOMMITTED.
BOOST_AUTO_TEST_CASE | ( | ReadFile | ) |
Definition at line 101 of file test_cadstar_parts_parser.cpp.
References getCadstarTestFile(), KI_CHECK_OPT_EQUAL, CADSTAR_PART_ENTRY::m_AcceptancePartName, CADSTAR_PART_ENTRY::m_AcceptanceText, CADSTAR_PART_ENTRY::m_ComponentStem, CADSTAR_PART_ENTRY::m_Description, CADSTAR_PART_ENTRY::m_GateSwappingAllowed, CADSTAR_PART_ENTRY::m_HiddenPins, CADSTAR_PART_ENTRY::m_MaxPinCount, CADSTAR_PART_ENTRY::m_Name, CADSTAR_PART_ENTRY::m_Number, CADSTAR_PART_ENTRY::m_PartAttributes, CADSTAR_PART_ENTRY::m_Pcb_alternate, CADSTAR_PART_ENTRY::m_Pcb_component, CADSTAR_PART_ENTRY::m_PcbAttributes, CADSTAR_PART_ENTRY::m_PinsVisible, CADSTAR_PART_ENTRY::m_SchAndPcbAttributes, CADSTAR_PART_ENTRY::m_SchAttributes, CADSTAR_PART_ENTRY::m_SpiceModel, CADSTAR_PART_ENTRY::m_SpicePartName, CADSTAR_PART_ENTRY::m_Symbols, CADSTAR_PART_ENTRY::m_UserAttributes, CADSTAR_PART_ENTRY::m_Value, CADSTAR_PART_ENTRY::m_Version, and CADSTAR_PARTS_LIB_PARSER::ReadFile().
BOOST_AUTO_TEST_SUITE | ( | CadstarPartParser | ) |
|
static |
Definition at line 37 of file test_cadstar_parts_parser.cpp.
References KI_TEST::GetEeschemaTestDataDir().
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 63 of file test_cadstar_parts_parser.cpp.
Referenced by BOOST_AUTO_TEST_CASE().