|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <google/protobuf/any.pb.h>#include <api/board/board_types.pb.h>#include <constraints/pcb_constraint.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (RoundTrip) | |
| BOOST_AUTO_TEST_CASE (RoundTripNoValue) | |
| BOOST_AUTO_TEST_CASE (RoundTripEveryType) | |
| BOOST_AUTO_TEST_CASE (RoundTripVertexIndex) | |
| BOOST_AUTO_TEST_CASE (DeserializeIgnoresIndexOnNonVertexAnchor) | |
| BOOST_AUTO_TEST_CASE (DeserializeVertexWithoutIndexGetsSentinel) | |
| BOOST_AUTO_TEST_CASE | ( | DeserializeIgnoresIndexOnNonVertexAnchor | ) |
Definition at line 146 of file test_constraint_protobuf.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), PCB_CONSTRAINT::Deserialize(), PCB_CONSTRAINT::GetMembers(), and START.
| BOOST_AUTO_TEST_CASE | ( | DeserializeVertexWithoutIndexGetsSentinel | ) |
Definition at line 174 of file test_constraint_protobuf.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), PCB_CONSTRAINT::Deserialize(), PCB_CONSTRAINT::GetMembers(), and VERTEX.
| BOOST_AUTO_TEST_CASE | ( | RoundTrip | ) |
Definition at line 33 of file test_constraint_protobuf.cpp.
References PCB_CONSTRAINT::AddMember(), BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), PCB_CONSTRAINT::Deserialize(), END, FIXED_LENGTH, PCB_CONSTRAINT::GetConstraintType(), PCB_CONSTRAINT::GetMembers(), PCB_CONSTRAINT::GetValue(), PCB_CONSTRAINT::HasValue(), PCB_CONSTRAINT::IsDriving(), EDA_ITEM::m_Uuid, PCB_CONSTRAINT::Serialize(), PCB_CONSTRAINT::SetDriving(), PCB_CONSTRAINT::SetValue(), and START.
| BOOST_AUTO_TEST_CASE | ( | RoundTripEveryType | ) |
Definition at line 87 of file test_constraint_protobuf.cpp.
References PCB_CONSTRAINT::AddMember(), ARC_ANGLE, BOOST_CHECK_MESSAGE(), COINCIDENT, PCB_CONSTRAINT::Deserialize(), PCB_CONSTRAINT::GetConstraintType(), PCB_CONSTRAINT::Serialize(), and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | RoundTripNoValue | ) |
Definition at line 65 of file test_constraint_protobuf.cpp.
References PCB_CONSTRAINT::AddMember(), BOOST_REQUIRE(), PCB_CONSTRAINT::Deserialize(), PCB_CONSTRAINT::GetConstraintType(), PCB_CONSTRAINT::HasValue(), PCB_CONSTRAINT::IsDriving(), PARALLEL, PCB_CONSTRAINT::Serialize(), and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | RoundTripVertexIndex | ) |
Definition at line 113 of file test_constraint_protobuf.cpp.
References PCB_CONSTRAINT::AddMember(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), COINCIDENT, PCB_CONSTRAINT::Deserialize(), PCB_CONSTRAINT::GetMembers(), PCB_CONSTRAINT::Serialize(), START, and VERTEX.