|
KiCad PCB EDA Suite
|
#include <filesystem>#include <fstream>#include <memory>#include <regex>#include <sstream>#include <qa_utils/wx_utils/unit_test_utils.h>#include <richio.h>#include <board.h>#include <pcb_shape.h>#include <constraints/pcb_constraint.h>#include <pcb_io/kicad_sexpr/pcb_io_kicad_sexpr_parser.h>#include <pcbnew_utils/board_file_utils.h>#include "constraint_test_utils.h"Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (RoundTrip) | |
| BOOST_AUTO_TEST_CASE (VertexIndexRoundTrip) | |
| BOOST_AUTO_TEST_CASE (VertexIndexValidation) | |
| BOOST_AUTO_TEST_CASE (MissingShapeMemberPreservedAsError) | |
| BOOST_AUTO_TEST_CASE (AppendRemapsConstraintMembers) | |
| BOOST_AUTO_TEST_CASE | ( | AppendRemapsConstraintMembers | ) |
Definition at line 267 of file test_constraint_serialization.cpp.
References KI_TEST::addSegment(), COINCIDENT, KI_TEST::DumpBoardToFile(), END, PCB_CONSTRAINT::GetMembers(), EDA_ITEM::m_Uuid, KI_TEST::MM, PCB_IO_KICAD_SEXPR_PARSER::Parse(), path, and START.
| BOOST_AUTO_TEST_CASE | ( | MissingShapeMemberPreservedAsError | ) |
Definition at line 227 of file test_constraint_serialization.cpp.
References PCB_CONSTRAINT::AddMember(), KI_TEST::addSegment(), COINCIDENT, KI_TEST::DumpBoardToFile(), END, PCB_CONSTRAINT::GetMembers(), EDA_ITEM::m_Uuid, KI_TEST::MM, path, KI_TEST::ReadBoardFromFileOrStream(), and START.
| BOOST_AUTO_TEST_CASE | ( | RoundTrip | ) |
Definition at line 61 of file test_constraint_serialization.cpp.
References PCB_CONSTRAINT::AddMember(), KI_TEST::addSegment(), BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), KI_TEST::DumpBoardToFile(), END, FIXED_LENGTH, PCB_CONSTRAINT::GetMembers(), PCB_CONSTRAINT::GetValue(), PCB_CONSTRAINT::HasValue(), PCB_CONSTRAINT::IsDriving(), EDA_ITEM::m_Uuid, KI_TEST::MM, PARALLEL, path, KI_TEST::ReadBoardFromFileOrStream(), PCB_CONSTRAINT::SetDriving(), PCB_CONSTRAINT::SetValue(), START, and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | VertexIndexRoundTrip | ) |
Definition at line 114 of file test_constraint_serialization.cpp.
References PCB_CONSTRAINT::AddMember(), KI_TEST::addSegment(), KIID::AsString(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), COINCIDENT, KI_TEST::DumpBoardToFile(), PCB_CONSTRAINT::GetMembers(), HORIZONTAL, EDA_ITEM::m_Uuid, KI_TEST::MM, path, KI_TEST::ReadBoardFromFileOrStream(), START, text, and VERTEX.
| BOOST_AUTO_TEST_CASE | ( | VertexIndexValidation | ) |
Definition at line 174 of file test_constraint_serialization.cpp.
References KI_TEST::addSegment(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::DumpBoardToFile(), HORIZONTAL, EDA_ITEM::m_Uuid, KI_TEST::MM, PCB_IO_KICAD_SEXPR_PARSER::Parse(), path, text, and VERTEX.