|
Blender V5.3
|
Classes | |
| class | IDPropertySerializeTest |
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_F (IDPropertySerializeTest, convert_idp_string_to_value) | |
| static void | test_int_to_value (const StringRefNull prop_name, int32_t prop_content) |
| TEST_F (IDPropertySerializeTest, convert_idp_int_to_value) | |
| static void | test_float_to_value (const StringRefNull prop_name, float prop_content) |
| TEST_F (IDPropertySerializeTest, convert_idp_float_to_value) | |
| static void | test_double_to_value (const StringRefNull prop_name, double prop_content) |
| TEST_F (IDPropertySerializeTest, 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_F (IDPropertySerializeTest, convert_idp_int_array_to_value) | |
| TEST_F (IDPropertySerializeTest, convert_idp_float_array_to_value) | |
| TEST_F (IDPropertySerializeTest, 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_F (IDPropertySerializeTest, convert_idp_string_from_value) | |
| TEST_F (IDPropertySerializeTest, convert_idp_int_from_value) | |
| TEST_F (IDPropertySerializeTest, convert_idp_float_from_value) | |
| TEST_F (IDPropertySerializeTest, convert_idp_double_from_value) | |
| TEST_F (IDPropertySerializeTest, convert_idp_array_int_from_value) | |
| TEST_F (IDPropertySerializeTest, convert_idp_array_float_from_value) | |
| TEST_F (IDPropertySerializeTest, convert_idp_array_double_from_value) | |
| TEST_F (IDPropertySerializeTest, convert_idp_multiple_from_value) | |
| TEST_F (IDPropertySerializeTest, convert_idp_multiple_roundtrip) | |
| TEST_F (IDPropertySerializeTest, convert_idp_group_from_value) | |
|
static |
Definition at line 22 of file idprop_serialize_test.cc.
References blender::io::serialize::Array, check_container_value(), blender::io::serialize::Dictionary, blender::io::serialize::ArrayValue::elements(), blender::EXPECT_EQ(), EXPECT_FALSE, blender::Span< T >::is_empty(), blender::Span< T >::size(), and blender::io::serialize::Value::type().
Referenced by check_container_value(), 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 64 of file idprop_serialize_test.cc.
References check_object_attribute(), blender::io::serialize::Double, blender::element, blender::EXPECT_EQ(), and EXPECT_TRUE.
|
static |
Definition at line 54 of file idprop_serialize_test.cc.
References check_object_attribute(), blender::io::serialize::Double, blender::element, blender::EXPECT_EQ(), and EXPECT_TRUE.
|
static |
Definition at line 44 of file idprop_serialize_test.cc.
References check_object_attribute(), blender::element, blender::EXPECT_EQ(), EXPECT_TRUE, and blender::io::serialize::Int.
|
static |
Definition at line 34 of file idprop_serialize_test.cc.
References check_object_attribute(), blender::element, blender::EXPECT_EQ(), EXPECT_TRUE, and blender::io::serialize::String.
Referenced by check_object_attribute(), check_object_attribute(), check_object_attribute(), check_object_attribute(), test_array_to_value(), test_double_to_value(), test_float_to_value(), test_int_to_value(), and test_string_to_value().
Definition at line 202 of file idprop_serialize_test.cc.
References parse_json().
Referenced by parse_json(), test_convert_idprop_from_value(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 159 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(), blender::element, blender::io::serialize::ArrayValue::elements(), blender::EXPECT_EQ(), blender::Span< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and test_array_to_value().
Referenced by test_array_to_value(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 304 of file idprop_serialize_test.cc.
References blender::bke::idprop::convert_from_serialize_value(), blender::IDP_FreeProperty(), parse_json(), test_convert_idprop_from_value(), and test_idprop().
Referenced by test_convert_idprop_from_value(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 137 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(), blender::EXPECT_EQ(), and test_double_to_value().
Referenced by test_double_to_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_array_double_from_value | ) |
Definition at line 356 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_array_float_from_value | ) |
Definition at line 348 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_array_int_from_value | ) |
Definition at line 340 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_double_array_to_value | ) |
Definition at line 196 of file idprop_serialize_test.cc.
References test_array_to_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_double_from_value | ) |
Definition at line 334 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_double_to_value | ) |
Definition at line 153 of file idprop_serialize_test.cc.
References test_double_to_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_float_array_to_value | ) |
Definition at line 190 of file idprop_serialize_test.cc.
References test_array_to_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_float_from_value | ) |
Definition at line 328 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_float_to_value | ) |
Definition at line 132 of file idprop_serialize_test.cc.
References TEST_F(), and test_float_to_value().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_group_from_value | ) |
Definition at line 423 of file idprop_serialize_test.cc.
References blender::bke::idprop::convert_from_serialize_value(), blender::IDProperty::data, blender::EXPECT_EQ(), blender::IDPropertyData::group, blender::IDP_FreeProperty(), blender::IDP_GROUP, parse_json(), TEST_F(), test_idprop(), and blender::IDProperty::type.
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_int_array_to_value | ) |
Definition at line 184 of file idprop_serialize_test.cc.
References test_array_to_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_int_from_value | ) |
Definition at line 322 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_int_to_value | ) |
Definition at line 111 of file idprop_serialize_test.cc.
References TEST_F(), and test_int_to_value().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_multiple_from_value | ) |
Definition at line 364 of file idprop_serialize_test.cc.
References blender::bke::idprop::convert_from_serialize_value(), blender::EXPECT_EQ(), blender::IDP_FreeProperty(), blender::IDProperty::next, parse_json(), blender::IDProperty::prev, TEST_F(), and test_idprop().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_multiple_roundtrip | ) |
Definition at line 397 of file idprop_serialize_test.cc.
References blender::bke::idprop::convert_from_serialize_value(), blender::bke::idprop::convert_to_serialize_values(), blender::EXPECT_EQ(), blender::IDP_FreeProperty(), blender::IDProperty::next, parse_json(), TEST_F(), and to_json().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_string_from_value | ) |
Definition at line 314 of file idprop_serialize_test.cc.
References test_convert_idprop_from_value(), and TEST_F().
| blender::bke::idprop::tests::TEST_F | ( | IDPropertySerializeTest | , |
| convert_idp_string_to_value | ) |
|
static |
Definition at line 116 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(), blender::EXPECT_EQ(), and test_float_to_value().
Referenced by TEST_F(), and test_float_to_value().
|
static |
Definition at line 288 of file idprop_serialize_test.cc.
References blender::EXPECT_EQ(), blender::IDP_ARRAY, IDP_array_double_get, blender::IDP_DOUBLE, blender::IDProperty::len, blender::IDProperty::name, blender::Span< T >::size(), blender::IDProperty::subtype, test_idprop(), and blender::IDProperty::type.
|
static |
Definition at line 273 of file idprop_serialize_test.cc.
References blender::EXPECT_EQ(), blender::IDP_ARRAY, IDP_array_float_get, blender::IDP_FLOAT, blender::IDProperty::len, blender::IDProperty::name, blender::Span< T >::size(), blender::IDProperty::subtype, test_idprop(), and blender::IDProperty::type.
|
static |
Definition at line 258 of file idprop_serialize_test.cc.
References blender::EXPECT_EQ(), blender::IDP_ARRAY, IDP_array_int_get, blender::IDP_INT, blender::IDProperty::len, blender::IDProperty::name, blender::Span< T >::size(), blender::IDProperty::subtype, test_idprop(), and blender::IDProperty::type.
|
static |
Definition at line 248 of file idprop_serialize_test.cc.
References blender::EXPECT_EQ(), blender::IDP_DOUBLE, IDP_double_get, blender::IDProperty::name, test_idprop(), and blender::IDProperty::type.
|
static |
Definition at line 238 of file idprop_serialize_test.cc.
References blender::EXPECT_EQ(), blender::IDP_FLOAT, IDP_float_get, blender::IDProperty::name, test_idprop(), and blender::IDProperty::type.
|
static |
Definition at line 228 of file idprop_serialize_test.cc.
References blender::EXPECT_EQ(), blender::IDP_INT, IDP_int_get, blender::IDProperty::name, test_idprop(), and blender::IDProperty::type.
|
static |
Definition at line 218 of file idprop_serialize_test.cc.
References blender::EXPECT_EQ(), blender::IDP_STRING, IDP_string_get, blender::IDProperty::name, test_idprop(), and blender::IDProperty::type.
Referenced by test_convert_idprop_from_value(), TEST_F(), TEST_F(), test_idprop(), test_idprop(), test_idprop(), test_idprop(), test_idprop(), test_idprop(), and test_idprop().
|
static |
Definition at line 95 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(), blender::EXPECT_EQ(), and test_int_to_value().
Referenced by TEST_F(), and test_int_to_value().
|
static |
Definition at line 74 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(), blender::EXPECT_EQ(), and test_string_to_value().
Referenced by TEST_F(), and test_string_to_value().
|
static |
Definition at line 210 of file idprop_serialize_test.cc.
References blender::gpu::shader::metadata::out, and to_json().