|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <diff_merge/property_value_converter.h>#include <geometry/eda_angle.h>#include <gal/color4d.h>#include <kiid.h>#include <layer_ids.h>#include <math/box2.h>#include <math/vector2d.h>#include <wx/any.h>#include <wx/string.h>#include <optional>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_Bool) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_Int) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_OptionalIntPresent) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_OptionalIntEmpty) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_OptionalDouble) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_Double) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_Float) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_WxString) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_StdString) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_Kiid) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_EdaAngle) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_Vector2I) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_Box2I) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_Color) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_PcbLayerId) | |
| BOOST_AUTO_TEST_CASE (WxAnyToDiffValue_UnsupportedReturnsNone) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_None) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_Bool) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_Int) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_Int64) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_Double) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_String) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_Kiid) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_Vector2I) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_Box2I) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_Color) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_Layer) | |
| BOOST_AUTO_TEST_CASE (DiffValueToWxAny_Enum) | |
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_Bool | ) |
Definition at line 215 of file test_property_value_converter.cpp.
References BOOST_CHECK_EQUAL(), KICAD_DIFF::DiffValueToWxAny(), and KICAD_DIFF::DIFF_VALUE::FromBool().
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_Box2I | ) |
Definition at line 273 of file test_property_value_converter.cpp.
References KICAD_DIFF::DiffValueToWxAny(), and KICAD_DIFF::DIFF_VALUE::FromBox2I().
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_Color | ) |
Definition at line 282 of file test_property_value_converter.cpp.
References KICAD_DIFF::DiffValueToWxAny(), and KICAD_DIFF::DIFF_VALUE::FromColor().
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_Double | ) |
Definition at line 239 of file test_property_value_converter.cpp.
References KICAD_DIFF::DiffValueToWxAny(), and KICAD_DIFF::DIFF_VALUE::FromDouble().
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_Enum | ) |
Definition at line 299 of file test_property_value_converter.cpp.
References BOOST_CHECK_EQUAL(), KICAD_DIFF::DiffValueToWxAny(), and KICAD_DIFF::DIFF_VALUE::FromEnum().
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_Int | ) |
Definition at line 223 of file test_property_value_converter.cpp.
References BOOST_CHECK_EQUAL(), KICAD_DIFF::DiffValueToWxAny(), and KICAD_DIFF::DIFF_VALUE::FromInt().
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_Int64 | ) |
Definition at line 231 of file test_property_value_converter.cpp.
References KICAD_DIFF::DiffValueToWxAny(), and KICAD_DIFF::DIFF_VALUE::FromInt64().
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_Kiid | ) |
Definition at line 255 of file test_property_value_converter.cpp.
References KICAD_DIFF::DiffValueToWxAny(), and KICAD_DIFF::DIFF_VALUE::FromKiid().
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_Layer | ) |
Definition at line 291 of file test_property_value_converter.cpp.
References B_Cu, KICAD_DIFF::DiffValueToWxAny(), and KICAD_DIFF::DIFF_VALUE::FromLayer().
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_None | ) |
Definition at line 205 of file test_property_value_converter.cpp.
References KICAD_DIFF::DiffValueToWxAny().
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_String | ) |
Definition at line 247 of file test_property_value_converter.cpp.
References KICAD_DIFF::DiffValueToWxAny(), and KICAD_DIFF::DIFF_VALUE::FromString().
| BOOST_AUTO_TEST_CASE | ( | DiffValueToWxAny_Vector2I | ) |
Definition at line 264 of file test_property_value_converter.cpp.
References KICAD_DIFF::DiffValueToWxAny(), and KICAD_DIFF::DIFF_VALUE::FromVector2I().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_Bool | ) |
Definition at line 47 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsBool(), KICAD_DIFF::DIFF_VALUE::BOOL, BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), KICAD_DIFF::DIFF_VALUE::GetType(), and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_Box2I | ) |
Definition at line 161 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsBox2I(), KICAD_DIFF::DIFF_VALUE::BOX2I, KICAD_DIFF::DIFF_VALUE::GetType(), and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_Color | ) |
Definition at line 172 of file test_property_value_converter.cpp.
References KIGFX::COLOR4D::a, KICAD_DIFF::DIFF_VALUE::AsColor(), KIGFX::COLOR4D::b, KICAD_DIFF::DIFF_VALUE::COLOR, KIGFX::COLOR4D::g, KICAD_DIFF::DIFF_VALUE::GetType(), KIGFX::COLOR4D::r, and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_Double | ) |
Definition at line 100 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsDouble(), KICAD_DIFF::DIFF_VALUE::DOUBLE, KICAD_DIFF::DIFF_VALUE::GetType(), and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_EdaAngle | ) |
Definition at line 143 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsDouble(), DEGREES_T, KICAD_DIFF::DIFF_VALUE::DOUBLE, KICAD_DIFF::DIFF_VALUE::GetType(), and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_Float | ) |
Definition at line 108 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsDouble(), KICAD_DIFF::DIFF_VALUE::DOUBLE, KICAD_DIFF::DIFF_VALUE::GetType(), and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_Int | ) |
Definition at line 58 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsInt(), BOOST_CHECK_EQUAL(), KICAD_DIFF::DIFF_VALUE::GetType(), KICAD_DIFF::DIFF_VALUE::INT, and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_Kiid | ) |
Definition at line 134 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsKiid(), KICAD_DIFF::DIFF_VALUE::GetType(), KICAD_DIFF::DIFF_VALUE::KIID, and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_OptionalDouble | ) |
Definition at line 87 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsDouble(), KICAD_DIFF::DIFF_VALUE::DOUBLE, empty(), KICAD_DIFF::DIFF_VALUE::GetType(), KICAD_DIFF::DIFF_VALUE::NONE, and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_OptionalIntEmpty | ) |
Definition at line 78 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::GetType(), KICAD_DIFF::DIFF_VALUE::NONE, and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_OptionalIntPresent | ) |
Definition at line 69 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsInt(), BOOST_CHECK_EQUAL(), KICAD_DIFF::DIFF_VALUE::GetType(), KICAD_DIFF::DIFF_VALUE::INT, and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_PcbLayerId | ) |
Definition at line 185 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsLayer(), F_Cu, KICAD_DIFF::DIFF_VALUE::GetType(), KICAD_DIFF::DIFF_VALUE::LAYER, and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_StdString | ) |
Definition at line 125 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsString(), KICAD_DIFF::DIFF_VALUE::GetType(), KICAD_DIFF::DIFF_VALUE::STRING, and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_UnsupportedReturnsNone | ) |
Definition at line 194 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::GetType(), KICAD_DIFF::DIFF_VALUE::NONE, and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_Vector2I | ) |
Definition at line 152 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsVector2I(), KICAD_DIFF::DIFF_VALUE::GetType(), KICAD_DIFF::DIFF_VALUE::VECTOR2I, and KICAD_DIFF::WxAnyToDiffValue().
| BOOST_AUTO_TEST_CASE | ( | WxAnyToDiffValue_WxString | ) |
Definition at line 117 of file test_property_value_converter.cpp.
References KICAD_DIFF::DIFF_VALUE::AsString(), KICAD_DIFF::DIFF_VALUE::GetType(), KICAD_DIFF::DIFF_VALUE::STRING, and KICAD_DIFF::WxAnyToDiffValue().