|
Blender V4.3
|
Functions | |
| static void | check_container_value (ArrayValue *value) |
| static void | check_object_attribute (const DictionaryValue::Lookup &lookup, const std::string expected_key, const std::string expected_value) |
| static void | check_object_attribute (const DictionaryValue::Lookup &lookup, const std::string expected_key, const int32_t expected_value) |
| static void | check_object_attribute (const DictionaryValue::Lookup &lookup, const std::string expected_key, const float expected_value) |
| static void | check_object_attribute (const DictionaryValue::Lookup &lookup, const std::string expected_key, const double expected_value) |
| static void | test_string_to_value (const StringRefNull prop_name, const StringRefNull prop_content) |
| TEST (idprop, convert_idp_string_to_value) | |
| static void | test_int_to_value (const StringRefNull prop_name, int32_t prop_content) |
| TEST (idprop, convert_idp_int_to_value) | |
| static void | test_float_to_value (const StringRefNull prop_name, float prop_content) |
| TEST (idprop, convert_idp_float_to_value) | |
| static void | test_double_to_value (const StringRefNull prop_name, double prop_content) |
| TEST (idprop, convert_idp_double_to_value) | |
| template<typename PrimitiveType , typename ValueType > | |
| static void | test_array_to_value (const StringRefNull prop_name, Vector< PrimitiveType > prop_content) |
| TEST (idprop, convert_idp_int_array_to_value) | |
| TEST (idprop, convert_idp_float_array_to_value) | |
| TEST (idprop, convert_idp_double_array_to_value) | |
| static std::unique_ptr< Value > | parse_json (StringRef input) |
| static std::string | to_json (const Value &value) |
| static void | test_idprop (const IDProperty *id_property, StringRef expected_name, StringRef expected_value) |
| static void | test_idprop (const IDProperty *id_property, StringRef expected_name, int32_t expected_value) |
| static void | test_idprop (const IDProperty *id_property, StringRef expected_name, float expected_value) |
| static void | test_idprop (const IDProperty *id_property, StringRef expected_name, double expected_value) |
| static void | test_idprop (const IDProperty *id_property, StringRef expected_name, const Span< int32_t > values) |
| static void | test_idprop (const IDProperty *id_property, StringRef expected_name, const Span< float > values) |
| static void | test_idprop (const IDProperty *id_property, StringRef expected_name, const Span< double > values) |
| template<typename Type > | |
| static void | test_convert_idprop_from_value (StringRef input, StringRef expected_name, Type expected_value) |
| TEST (idprop, convert_idp_string_from_value) | |
| TEST (idprop, convert_idp_int_from_value) | |
| TEST (idprop, convert_idp_float_from_value) | |
| TEST (idprop, convert_idp_double_from_value) | |
| TEST (idprop, convert_idp_array_int_from_value) | |
| TEST (idprop, convert_idp_array_float_from_value) | |
| TEST (idprop, convert_idp_array_double_from_value) | |
| TEST (idprop, convert_idp_multiple_from_value) | |
| TEST (idprop, convert_idp_multiple_roundtrip) | |
| TEST (idprop, convert_idp_group_from_value) | |
|
static |
Definition at line 18 of file idprop_serialize_test.cc.
References EXPECT_EQ().
Referenced by test_array_to_value(), test_double_to_value(), test_float_to_value(), test_int_to_value(), and test_string_to_value().
|
static |
Definition at line 60 of file idprop_serialize_test.cc.
References EXPECT_EQ().
|
static |
Definition at line 50 of file idprop_serialize_test.cc.
References EXPECT_EQ().
|
static |
Definition at line 40 of file idprop_serialize_test.cc.
References EXPECT_EQ().
|
static |
Definition at line 30 of file idprop_serialize_test.cc.
References EXPECT_EQ().
Referenced by test_array_to_value(), test_double_to_value(), test_float_to_value(), test_int_to_value(), and test_string_to_value().
Definition at line 198 of file idprop_serialize_test.cc.
References blender::io::serialize::JsonFormatter::deserialize().
Referenced by TEST(), TEST(), TEST(), and test_convert_idprop_from_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_array_double_from_value | ) |
Definition at line 352 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_array_float_from_value | ) |
Definition at line 344 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_array_int_from_value | ) |
Definition at line 336 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_double_array_to_value | ) |
Definition at line 192 of file idprop_serialize_test.cc.
References test_array_to_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_double_from_value | ) |
Definition at line 330 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_double_to_value | ) |
Definition at line 149 of file idprop_serialize_test.cc.
References test_double_to_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_float_array_to_value | ) |
Definition at line 186 of file idprop_serialize_test.cc.
References test_array_to_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_float_from_value | ) |
Definition at line 324 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_float_to_value | ) |
Definition at line 128 of file idprop_serialize_test.cc.
References test_float_to_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_group_from_value | ) |
Definition at line 419 of file idprop_serialize_test.cc.
References BLI_listbase_count(), blender::bke::idprop::convert_from_serialize_value(), IDProperty::data, EXPECT_EQ(), ListBase::first, IDPropertyData::group, IDP_FreeProperty(), IDP_GROUP, parse_json(), test_idprop(), and IDProperty::type.
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_int_array_to_value | ) |
Definition at line 180 of file idprop_serialize_test.cc.
References test_array_to_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_int_from_value | ) |
Definition at line 318 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_int_to_value | ) |
Definition at line 107 of file idprop_serialize_test.cc.
References test_int_to_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_multiple_from_value | ) |
Definition at line 360 of file idprop_serialize_test.cc.
References blender::bke::idprop::convert_from_serialize_value(), EXPECT_EQ(), IDP_FreeProperty(), IDProperty::next, parse_json(), IDProperty::prev, and test_idprop().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_multiple_roundtrip | ) |
Definition at line 393 of file idprop_serialize_test.cc.
References blender::bke::idprop::convert_from_serialize_value(), blender::bke::idprop::convert_to_serialize_values(), EXPECT_EQ(), IDP_FreeProperty(), IDProperty::next, parse_json(), and to_json().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_string_from_value | ) |
Definition at line 310 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value().
| blender::bke::idprop::tests::TEST | ( | idprop | , |
| convert_idp_string_to_value | ) |
Definition at line 86 of file idprop_serialize_test.cc.
References test_string_to_value().
|
static |
Definition at line 155 of file idprop_serialize_test.cc.
References blender::io::serialize::Value::as_array_value(), blender::io::serialize::Value::as_dictionary_value(), check_container_value(), check_object_attribute(), blender::bke::idprop::convert_to_serialize_values(), blender::bke::idprop::create(), blender::io::serialize::ArrayValue::elements(), EXPECT_EQ(), blender::Span< T >::size(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
|
static |
Definition at line 300 of file idprop_serialize_test.cc.
References blender::bke::idprop::convert_from_serialize_value(), IDP_FreeProperty(), parse_json(), and test_idprop().
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
static |
Definition at line 133 of file idprop_serialize_test.cc.
References blender::io::serialize::Value::as_dictionary_value(), check_container_value(), check_object_attribute(), blender::bke::idprop::convert_to_serialize_values(), blender::bke::idprop::create(), and EXPECT_EQ().
Referenced by TEST().
|
static |
Definition at line 112 of file idprop_serialize_test.cc.
References blender::io::serialize::Value::as_dictionary_value(), check_container_value(), check_object_attribute(), blender::bke::idprop::convert_to_serialize_values(), blender::bke::idprop::create(), and EXPECT_EQ().
Referenced by TEST().
|
static |
Definition at line 284 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_ARRAY, IDP_Array, IDP_DOUBLE, IDProperty::len, IDProperty::name, IDProperty::subtype, and IDProperty::type.
|
static |
Definition at line 269 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_ARRAY, IDP_Array, IDP_FLOAT, IDProperty::len, IDProperty::name, IDProperty::subtype, and IDProperty::type.
|
static |
Definition at line 254 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_ARRAY, IDP_Array, IDP_INT, IDProperty::len, IDProperty::name, IDProperty::subtype, and IDProperty::type.
|
static |
Definition at line 244 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_DOUBLE, IDP_Double, IDProperty::name, and IDProperty::type.
|
static |
Definition at line 234 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_FLOAT, IDP_Float, IDProperty::name, and IDProperty::type.
|
static |
Definition at line 224 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_INT, IDP_Int, IDProperty::name, and IDProperty::type.
|
static |
Definition at line 214 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_STRING, IDP_String, IDProperty::name, and IDProperty::type.
Referenced by TEST(), TEST(), and test_convert_idprop_from_value().
|
static |
Definition at line 91 of file idprop_serialize_test.cc.
References blender::io::serialize::Value::as_dictionary_value(), check_container_value(), check_object_attribute(), blender::bke::idprop::convert_to_serialize_values(), blender::bke::idprop::create(), and EXPECT_EQ().
Referenced by TEST().
|
static |
Definition at line 70 of file idprop_serialize_test.cc.
References blender::io::serialize::Value::as_dictionary_value(), check_container_value(), check_object_attribute(), blender::bke::idprop::convert_to_serialize_values(), blender::bke::idprop::create(), and EXPECT_EQ().
Referenced by TEST().
|
static |
Definition at line 206 of file idprop_serialize_test.cc.
References blender::io::serialize::JsonFormatter::serialize().
Referenced by TEST().