Blender
V3.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 Vector< int32_t > &values) |
static void | test_idprop (const IDProperty *id_property, StringRef expected_name, const Vector< float > &values) |
static void | test_idprop (const IDProperty *id_property, StringRef expected_name, const Vector< 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 14 of file idprop_serialize_test.cc.
References blender::io::serialize::Array, blender::io::serialize::ContainerValue< Container, V, ContainerItem >::elements(), EXPECT_EQ(), and blender::io::serialize::Value::type().
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 56 of file idprop_serialize_test.cc.
References element, EXPECT_EQ(), and blender::bke::attribute_accessor_functions::lookup().
|
static |
Definition at line 46 of file idprop_serialize_test.cc.
References element, EXPECT_EQ(), and blender::bke::attribute_accessor_functions::lookup().
|
static |
Definition at line 36 of file idprop_serialize_test.cc.
References element, EXPECT_EQ(), and blender::bke::attribute_accessor_functions::lookup().
|
static |
Definition at line 26 of file idprop_serialize_test.cc.
References element, EXPECT_EQ(), and blender::bke::attribute_accessor_functions::lookup().
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 194 of file idprop_serialize_test.cc.
References blender::io::serialize::JsonFormatter::deserialize(), and input.
Referenced by TEST(), and test_convert_idprop_from_value().
blender::bke::idprop::tests::TEST | ( | idprop | , |
convert_idp_array_double_from_value | |||
) |
Definition at line 348 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 340 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 332 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 188 of file idprop_serialize_test.cc.
blender::bke::idprop::tests::TEST | ( | idprop | , |
convert_idp_double_from_value | |||
) |
Definition at line 326 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 145 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 182 of file idprop_serialize_test.cc.
blender::bke::idprop::tests::TEST | ( | idprop | , |
convert_idp_float_from_value | |||
) |
Definition at line 320 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 124 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 415 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 176 of file idprop_serialize_test.cc.
blender::bke::idprop::tests::TEST | ( | idprop | , |
convert_idp_int_from_value | |||
) |
Definition at line 314 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 103 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 356 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 389 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 306 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 82 of file idprop_serialize_test.cc.
References test_string_to_value().
|
static |
Definition at line 151 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(), element, blender::io::serialize::ContainerValue< Container, V, ContainerItem >::elements(), EXPECT_EQ(), blender::bke::attribute_accessor_functions::lookup(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
|
static |
Definition at line 296 of file idprop_serialize_test.cc.
References blender::bke::idprop::convert_from_serialize_value(), IDP_FreeProperty(), input, parse_json(), and test_idprop().
Referenced by TEST().
|
static |
Definition at line 129 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(), EXPECT_EQ(), and blender::bke::attribute_accessor_functions::lookup().
Referenced by TEST().
|
static |
Definition at line 108 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(), EXPECT_EQ(), and blender::bke::attribute_accessor_functions::lookup().
Referenced by TEST().
|
static |
Definition at line 280 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_Array, IDP_ARRAY, IDP_DOUBLE, IDProperty::len, IDProperty::name, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), IDProperty::subtype, and IDProperty::type.
|
static |
Definition at line 265 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_Array, IDP_ARRAY, IDP_FLOAT, IDProperty::len, IDProperty::name, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), IDProperty::subtype, and IDProperty::type.
|
static |
Definition at line 250 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_Array, IDP_ARRAY, IDP_INT, IDProperty::len, IDProperty::name, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), IDProperty::subtype, and IDProperty::type.
|
static |
Definition at line 240 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_Double, IDP_DOUBLE, IDProperty::name, and IDProperty::type.
|
static |
Definition at line 230 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_Float, IDP_FLOAT, IDProperty::name, and IDProperty::type.
|
static |
Definition at line 220 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_Int, IDP_INT, IDProperty::name, and IDProperty::type.
|
static |
Definition at line 210 of file idprop_serialize_test.cc.
References EXPECT_EQ(), IDP_String, IDP_STRING, IDProperty::name, and IDProperty::type.
Referenced by TEST(), and test_convert_idprop_from_value().
|
static |
Definition at line 87 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(), EXPECT_EQ(), and blender::bke::attribute_accessor_functions::lookup().
Referenced by TEST().
|
static |
Definition at line 66 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(), EXPECT_EQ(), and blender::bke::attribute_accessor_functions::lookup().
Referenced by TEST().
|
static |
Definition at line 202 of file idprop_serialize_test.cc.
References usdtokens::out(), and blender::io::serialize::JsonFormatter::serialize().
Referenced by TEST().