OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CORE][TESTS] Replace 'std::tie' with structured bindings where possible (#31561)
Egor Duplenskii3564b5439644
diff --git a/src/common/low_precision_transformations/tests/align_concat_quantization_parameters_transformation.cpp b/src/common/low_precision_transformations/tests/align_concat_quantization_parameters_transformation.cppindex c4988d6f5ec..d0be527a57b 100644--- a/src/common/low_precision_transformations/tests/align_concat_quantization_parameters_transformation.cpp+++ b/src/common/low_precision_transformations/tests/align_concat_quantization_parameters_transformation.cpp@@ -56,12 +56,7 @@ class AlignConcatQuantizationParametersTransformationpublic testing::WithParamInterface<AlignConcatQuantizationParametersTransformationParams> {public:void SetUp() override {- ov::element::Type precision;- ov::Shape shape;- bool addFakeQuantize;- std::string additionalLayer;- AlignConcatQuantizationParametersTransformationTestValues testValues;- std::tie(precision, shape, addFakeQuantize, additionalLayer, testValues) = GetParam();+ const auto& [precision, shape, addFakeQuantize, additionalLayer, testValues] = GetParam();actualFunction = ov::builder::subgraph::AlignConcatQuantizationParametersFunction::getOriginal(precision,@@ -102,12 +97,7 @@ public:static std::string getTestCaseName(testing::TestParamInfo<AlignConcatQuantizationParametersTransformationParams> obj) {- ov::element::Type precision;- ov::Shape shape;- bool addFakeQuantize;- std::string additionalLayer;- AlignConcatQuantizationParametersTransformationTestValues testValues;- std::tie(precision, shape, addFakeQuantize, additionalLayer, testValues) = obj.param;+ const auto& [precision, shape, addFakeQuantize, additionalLayer, testValues] = obj.param;std::ostringstream result;result << precision << "_"diff --git a/src/common/low_precision_transformations/tests/avg_pool_transformation.cpp b/src/common/low_precision_transformations/tests/avg_pool_transformation.cppindex 36cd7848195..79f182f4366 100644--- a/src/common/low_precision_transformations/tests/avg_pool_transformation.cpp+++ b/src/common/low_precision_transformations/tests/avg_pool_transformation.cpp@@ -53,12 +53,7 @@ class AvgPoolTransformation : public LayerTransformation,public testing::WithParamInterface<AvgPoolTransformationParams> {public:void SetUp() override {- ov::element::Type precision;- ov::PartialShape shape;- bool addFakeQuantize;- std::string additionalLayer;- AvgPoolTransformationTestValues testValues;- std::tie(precision, shape, addFakeQuantize, additionalLayer, testValues) = GetParam();+ const auto& [precision, shape, addFakeQuantize, additionalLayer, testValues] = GetParam();actualFunction = ov::builder::subgraph::AvgPoolFunction::getOriginal(precision,testValues.actual.inputPrecision,shape,@@ -84,12 +79,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<AvgPoolTransformationParams> obj) {- ov::element::Type precision;- ov::PartialShape shape;- bool addFakeQuantize;- std::string additionalLayer;- AvgPoolTransformationTestValues testValues;- std::tie(precision, shape, addFakeQuantize, additionalLayer, testValues) = obj.param;+ const auto& [precision, shape, addFakeQuantize, additionalLayer, testValues] = obj.param;std::ostringstream result;result << precision << "_"diff --git a/src/common/low_precision_transformations/tests/avg_pool_with_child_transformation.cpp b/src/common/low_precision_transformations/tests/avg_pool_with_child_transformation.cppindex 85d8f2d9bf3..ec77606691a 100644--- a/src/common/low_precision_transformations/tests/avg_pool_with_child_transformation.cpp+++ b/src/common/low_precision_transformations/tests/avg_pool_with_child_transformation.cpp@@ -50,11 +50,9 @@ class AvgPoolWithChildTransformation : public LayerTransformation,public testing::WithParamInterface<AvgPoolWithChildTransformationParams> {public:void SetUp() override {- ov::element::Type precision;- ov::PartialShape shape;std::string additionalLayer;- AvgPoolWithChildTransformationTestValues testValues;- std::tie(precision, shape, testValues) = GetParam();++ const auto& [precision, shape, testValues] = GetParam();actualFunction = ov::builder::subgraph::AvgPoolFunction::getOriginal(precision,testValues.actual.inputPrecision,shape,@@ -81,11 +79,9 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<AvgPoolWithChildTransformationParams> obj) {- ov::element::Type precision;- ov::PartialShape shape;std::string additionalLayer;- AvgPoolWithChildTransformationTestValues testValues;- std::tie(precision, shape, testValues) = obj.param;++ const auto& [precision, shape, testValues] = obj.param;std::ostringstream result;result << precision << "_"diff --git a/src/common/low_precision_transformations/tests/fake_quantize_precision_selection_transformation.cpp b/src/common/low_precision_transformations/tests/fake_quantize_precision_selection_transformation.cppindex 3bd282d12ce..7820235ec94 100644--- a/src/common/low_precision_transformations/tests/fake_quantize_precision_selection_transformation.cpp+++ b/src/common/low_precision_transformations/tests/fake_quantize_precision_selection_transformation.cpp@@ -118,11 +118,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<FakeQuantizePrecisionSelectionTransformationParams> obj) {- ov::element::Type precision;- ov::Shape shape;- bool updatePrecision;- FakeQuantizePrecisionSelectionTransformationTestValues testValues;- std::tie(precision, shape, updatePrecision, testValues) = obj.param;+ const auto& [precision, shape, updatePrecision, testValues] = obj.param;TestTransformationParams params;params.setUpdatePrecisions(updatePrecision);diff --git a/src/common/low_precision_transformations/tests/fake_quantize_transformation.cpp b/src/common/low_precision_transformations/tests/fake_quantize_transformation.cppindex 9beac674848..ca696f3c648 100644--- a/src/common/low_precision_transformations/tests/fake_quantize_transformation.cpp+++ b/src/common/low_precision_transformations/tests/fake_quantize_transformation.cpp@@ -106,11 +106,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<FakeQuantizeTransformationParams> obj) {- ov::element::Type precision;- ov::PartialShape shape;- bool updatePrecision;- FakeQuantizeTransformationTestValues fakeQuantizeOnData;- std::tie(precision, shape, updatePrecision, fakeQuantizeOnData) = obj.param;+ const auto& [precision, shape, updatePrecision, fakeQuantizeOnData] = obj.param;std::ostringstream result;result << precision << "_" << shape << "_" << toString(fakeQuantizeOnData.params)diff --git a/src/common/low_precision_transformations/tests/fake_quantize_with_dq_not_optimal_transformation.cpp b/src/common/low_precision_transformations/tests/fake_quantize_with_dq_not_optimal_transformation.cppindex 0ba1ecc96e9..ff0bf55a6e6 100644--- a/src/common/low_precision_transformations/tests/fake_quantize_with_dq_not_optimal_transformation.cpp+++ b/src/common/low_precision_transformations/tests/fake_quantize_with_dq_not_optimal_transformation.cpp@@ -112,11 +112,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<FakeQuantizeWithNotOptimalTransformationParams> obj) {- ov::element::Type precision;- ov::Shape shape;- bool updatePrecision;- FakeQuantizeWithNotOptimalTransformationTestValues fakeQuantizeOnData;- std::tie(precision, shape, updatePrecision, fakeQuantizeOnData) = obj.param;+ const auto& [precision, shape, updatePrecision, fakeQuantizeOnData] = obj.param;std::ostringstream result;result << LayerTransformation::getTestCaseNameByParams(precision, shape, fakeQuantizeOnData.params) <<diff --git a/src/common/low_precision_transformations/tests/fake_quantize_with_dynamic_intervals_transformation.cpp b/src/common/low_precision_transformations/tests/fake_quantize_with_dynamic_intervals_transformation.cppindex b8e3cb71475..cc9e576b2b8 100644--- a/src/common/low_precision_transformations/tests/fake_quantize_with_dynamic_intervals_transformation.cpp+++ b/src/common/low_precision_transformations/tests/fake_quantize_with_dynamic_intervals_transformation.cpp@@ -70,10 +70,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<FakeQuantizeTransformationParams> obj) {- ov::element::Type precision;- ov::Shape shape;- FakeQuantizeWithDynamicIntervalsTransformationTestValues testValues;- std::tie(precision, shape, testValues) = obj.param;+ const auto& [precision, shape, testValues] = obj.param;std::ostringstream result;result << LayerTransformation::getTestCaseNameByParams(precision, shape, testValues.params) << testValues;diff --git a/src/common/low_precision_transformations/tests/get_dequantization_below_transformation.cpp b/src/common/low_precision_transformations/tests/get_dequantization_below_transformation.cppindex fb741a27784..3b024c83092 100644--- a/src/common/low_precision_transformations/tests/get_dequantization_below_transformation.cpp+++ b/src/common/low_precision_transformations/tests/get_dequantization_below_transformation.cpp@@ -79,10 +79,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<GetDequantizationBelowParams> obj) {- ov::element::Type precision;- ov::Shape shape;- GetDequantizationBelowTestValues testValues;- std::tie(precision, shape, testValues) = obj.param;+ const auto& [precision, shape, testValues] = obj.param;std::ostringstream result;result << precision << "_" << shape << "_" << testValues;diff --git a/src/common/low_precision_transformations/tests/get_dequantization_test.cpp b/src/common/low_precision_transformations/tests/get_dequantization_test.cppindex 7d5b5b16ab9..708cb5794fe 100644--- a/src/common/low_precision_transformations/tests/get_dequantization_test.cpp+++ b/src/common/low_precision_transformations/tests/get_dequantization_test.cpp@@ -30,11 +30,7 @@ class GetDequantizationTestTransformation : public LayerTransformation,public testing::WithParamInterface<GetDequantizationTestValues> {public:void SetUp() override {- bool isConvert;- bool isSubtract;- size_t subDataInput;- size_t mulDataInput;- std::tie(isConvert, isSubtract, subDataInput, mulDataInput) = this->GetParam();+ const auto& [isConvert, isSubtract, subDataInput, mulDataInput] = this->GetParam();actualFunction = ov::builder::subgraph::GetDequantizationFunction::getOriginal(isConvert,isSubtract,@@ -46,11 +42,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<GetDequantizationTestValues> obj) {- bool isConvert;- bool isSubtract;- size_t subDataInput;- size_t mulDataInput;- std::tie(isConvert, isSubtract, subDataInput, mulDataInput) = obj.param;+ const auto& [isConvert, isSubtract, subDataInput, mulDataInput] = obj.param;std::ostringstream result;result << (isConvert ? "convert_" : "without_convert_") << (isSubtract ? "_subtract_with_data_input=" : "")diff --git a/src/common/low_precision_transformations/tests/get_dequantization_transformation.cpp b/src/common/low_precision_transformations/tests/get_dequantization_transformation.cppindex 00ddb7024a8..38bc86332f7 100644--- a/src/common/low_precision_transformations/tests/get_dequantization_transformation.cpp+++ b/src/common/low_precision_transformations/tests/get_dequantization_transformation.cpp@@ -70,10 +70,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<GetDequantizationParams> obj) {- ov::element::Type precision;- ov::Shape shape;- GetDequantizationTestValues testValues;- std::tie(precision, shape, testValues) = obj.param;+ const auto& [precision, shape, testValues] = obj.param;std::ostringstream result;result << precision << "_" << shape << "_" << testValues;diff --git a/src/common/low_precision_transformations/tests/markup_avg_pool_precisions_transformation.cpp b/src/common/low_precision_transformations/tests/markup_avg_pool_precisions_transformation.cppindex cbb6be5dabe..915f831df46 100644--- a/src/common/low_precision_transformations/tests/markup_avg_pool_precisions_transformation.cpp+++ b/src/common/low_precision_transformations/tests/markup_avg_pool_precisions_transformation.cpp@@ -62,12 +62,7 @@ class MarkupAvgPoolPrecisionsTransformationpublic testing::WithParamInterface<MarkupAvgPoolPrecisionsTransformationParams> {public:void SetUp() override {- ov::element::Type precision;- ov::Shape shape;- bool addFakeQuantize;- std::string additionalLayer;- MarkupAvgPoolPrecisionsTransformationTestValues testValues;- std::tie(precision, shape, addFakeQuantize, additionalLayer, testValues) = GetParam();+ const auto& [precision, shape, addFakeQuantize, additionalLayer, testValues] = GetParam();actualFunction =ov::builder::subgraph::MarkupAvgPoolPrecisionsFunction::getOriginal(precision,@@ -109,12 +104,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<MarkupAvgPoolPrecisionsTransformationParams> obj) {- ov::element::Type precision;- ov::Shape shape;- bool addFakeQuantize;- std::string additionalLayer;- MarkupAvgPoolPrecisionsTransformationTestValues testValues;- std::tie(precision, shape, addFakeQuantize, additionalLayer, testValues) = obj.param;+ const auto& [precision, shape, addFakeQuantize, additionalLayer, testValues] = obj.param;std::ostringstream result;result << precision << "_"diff --git a/src/common/low_precision_transformations/tests/markup_bias_transformation.cpp b/src/common/low_precision_transformations/tests/markup_bias_transformation.cppindex 236cc468cbf..2032e02738c 100644--- a/src/common/low_precision_transformations/tests/markup_bias_transformation.cpp+++ b/src/common/low_precision_transformations/tests/markup_bias_transformation.cpp@@ -28,10 +28,7 @@ using MarkupBiasTestValues = std::tuple<ov::element::Type, MarkupBiasTestParams,class MarkupBiasTests : public testing::WithParamInterface<MarkupBiasTestValues>, public LayerTransformation {public:static std::string getTestCaseName(const testing::TestParamInfo<MarkupBiasTestValues>& obj) {- ov::element::Type precision;- MarkupBiasTestParams test_values;- std::string layer_type;- std::tie(precision, test_values, layer_type) = obj.param;+ const auto& [precision, test_values, layer_type] = obj.param;std::ostringstream result;result << precision << "IS=" << test_values.input_shape << "_bias_shape=" << test_values.bias_shape << "_"@@ -41,10 +38,7 @@ public:protected:void SetUp() override {- ov::element::Type precision;- MarkupBiasTestParams test_values;- std::string layer_type;- std::tie(precision, test_values, layer_type) = GetParam();+ const auto& [precision, test_values, layer_type] = GetParam();actualFunction = ov::builder::subgraph::MarkupBiasFunction::get(precision,test_values.input_shape,diff --git a/src/common/low_precision_transformations/tests/mat_mul_transformation.cpp b/src/common/low_precision_transformations/tests/mat_mul_transformation.cppindex c59bf39a221..b669467e2ea 100644--- a/src/common/low_precision_transformations/tests/mat_mul_transformation.cpp+++ b/src/common/low_precision_transformations/tests/mat_mul_transformation.cpp@@ -111,10 +111,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<MatMulTransformationParams> obj) {- ov::element::Type precision;- std::pair<ov::PartialShape, ov::PartialShape> shapes;- MatMullTransformationTestValues testValues;- std::tie(precision, shapes, testValues) = obj.param;+ const auto& [precision, shapes, testValues] = obj.param;std::stringstream ss;ss << precision << "_" << shapes.first << "_" << shapes.second << "_" << testValues;diff --git a/src/common/low_precision_transformations/tests/mat_mul_with_constant_transformation.cpp b/src/common/low_precision_transformations/tests/mat_mul_with_constant_transformation.cppindex f610045a136..822d26ff9ca 100644--- a/src/common/low_precision_transformations/tests/mat_mul_with_constant_transformation.cpp+++ b/src/common/low_precision_transformations/tests/mat_mul_with_constant_transformation.cpp@@ -111,10 +111,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<MatMulTransformationParams> obj) {- ov::element::Type precision;- ov::PartialShape inputShape;- MatMullTransformationTestValues testValues;- std::tie(precision, inputShape, testValues) = obj.param;+ const auto& [precision, inputShape, testValues] = obj.param;std::stringstream ss;ss << precision << "_" << inputShape << "_" << testValues;diff --git a/src/common/low_precision_transformations/tests/normalize_l2_transformation.cpp b/src/common/low_precision_transformations/tests/normalize_l2_transformation.cppindex d22ff55a330..7076e5f7046 100644--- a/src/common/low_precision_transformations/tests/normalize_l2_transformation.cpp+++ b/src/common/low_precision_transformations/tests/normalize_l2_transformation.cpp@@ -54,12 +54,7 @@ typedef std::tuple<class NormalizeL2Transformation : public LayerTransformation, public testing::WithParamInterface<NormalizeL2TransformationParams> {public:void SetUp() override {- ov::element::Type precision;- ov::PartialShape shape;- ov::op::EpsMode epsMode;- std::vector<size_t> axes;- NormalizeL2TransformationTestValues params;- std::tie(precision, shape, epsMode, axes, params) = GetParam();+ const auto& [precision, shape, epsMode, axes, params] = GetParam();actualFunction = ov::builder::subgraph::NormalizeL2Function::getOriginal(precision,@@ -85,12 +80,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<NormalizeL2TransformationParams> obj) {- ov::element::Type precision;- ov::PartialShape shape;- ov::Shape axes;- ov::op::EpsMode epsMode;- NormalizeL2TransformationTestValues params;- std::tie(precision, shape, epsMode, axes, params) = obj.param;+ const auto& [precision, shape, epsMode, axes, params] = obj.param;std::ostringstream result;result <<diff --git a/src/common/low_precision_transformations/tests/separate_in_standalone_branch_transformation.cpp b/src/common/low_precision_transformations/tests/separate_in_standalone_branch_transformation.cppindex 2a574e864f2..510f73f7cdd 100644--- a/src/common/low_precision_transformations/tests/separate_in_standalone_branch_transformation.cpp+++ b/src/common/low_precision_transformations/tests/separate_in_standalone_branch_transformation.cpp@@ -120,9 +120,7 @@ public:}static std::string getTestCaseName(testing::TestParamInfo<SeparateInStandaloneBranchTransformationParams> obj) {- ov::Shape shapes;- SeparateInStandaloneBranchTransformationTestValues testValues;- std::tie(shapes, testValues) = obj.param;+ const auto& [shapes, testValues] = obj.param;std::stringstream ss;ss << shapes << "_" << testValues;diff --git a/src/common/snippets/tests/src/lowered/pass/buffer_allocation.cpp b/src/common/snippets/tests/src/lowered/pass/buffer_allocation.cppindex 61afb63fca7..ac14317298b 100644--- a/src/common/snippets/tests/src/lowered/pass/buffer_allocation.cpp+++ b/src/common/snippets/tests/src/lowered/pass/buffer_allocation.cpp@@ -27,11 +27,12 @@ namespace test {namespace snippets {std::string BufferAllocationTest::getTestCaseName(testing::TestParamInfo<ov::test::snippets::BufferAllocationParams> obj) {- std::vector<ov::PartialShape> shapes;- bool is_optimized, with_split_loops;- size_t expected_size, expected_reg_group_count, expected_cluster_count;-- std::tie(shapes, is_optimized, with_split_loops, expected_size, expected_reg_group_count, expected_cluster_count) = obj.param;+ const auto& [shapes,+ is_optimized,+ with_split_loops,+ expected_size,+ expected_reg_group_count,+ expected_cluster_count] = obj.param;std::ostringstream result;result << "Shapes=" << ov::test::utils::partialShape2str(shapes) << "_";diff --git a/src/common/snippets/tests/src/pass/fuse_transpose_brgemm.cpp b/src/common/snippets/tests/src/pass/fuse_transpose_brgemm.cppindex 736f03c14a5..ddec0c2042e 100644--- a/src/common/snippets/tests/src/pass/fuse_transpose_brgemm.cpp+++ b/src/common/snippets/tests/src/pass/fuse_transpose_brgemm.cpp@@ -13,9 +13,7 @@ namespace test {namespace snippets {std::string FuseTransposeBrgemmTests::getTestCaseName(testing::TestParamInfo<fuseTransposeBrgemmParams> obj) {- std::vector<PartialShape> input_shapes(2);- size_t transpose_position;- std::tie(input_shapes, transpose_position) = obj.param;+ const auto& [input_shapes, transpose_position] = obj.param;std::ostringstream result;result << "IS[0]=" << ov::test::utils::partialShape2str({input_shapes[0]}) << "_";result << "IS[1]=" << ov::test::utils::partialShape2str({input_shapes[1]}) << "_";@@ -25,9 +23,8 @@ std::string FuseTransposeBrgemmTests::getTestCaseName(testing::TestParamInfo<fusvoid FuseTransposeBrgemmTests::SetUp() {LoweringTests::SetUp();- std::vector<PartialShape> input_shapes(2);- size_t transpose_position;- std::tie(input_shapes, transpose_position) = this->GetParam();++ const auto& [input_shapes, transpose_position] = this->GetParam();snippets_model = std::make_shared<Transpose0213MatMulLoweredFunction>(input_shapes, transpose_position);}diff --git a/src/common/snippets/tests/src/pass/gn_decomposition.cpp b/src/common/snippets/tests/src/pass/gn_decomposition.cppindex a68182c6a85..f958b080a1d 100644--- a/src/common/snippets/tests/src/pass/gn_decomposition.cpp+++ b/src/common/snippets/tests/src/pass/gn_decomposition.cpp@@ -13,10 +13,7 @@ namespace test {namespace snippets {std::string GNDecompositionTest::getTestCaseName(testing::TestParamInfo<GroupNormalizationParams> obj) {- PartialShape input_shape;- size_t num_group;- float eps;- std::tie(input_shape, num_group, eps) = obj.param;+ const auto& [input_shape, num_group, eps] = obj.param;std::ostringstream result;result << "IS=" << ov::test::utils::partialShape2str({input_shape}) << "_";result << "num_group=" << num_group << "_";@@ -26,10 +23,8 @@ std::string GNDecompositionTest::getTestCaseName(testing::TestParamInfo<GroupNorvoid GNDecompositionTest::SetUp() {LoweringTests::SetUp();- PartialShape data_shape;- size_t num_group;- float eps;- std::tie(data_shape, num_group, eps) = this->GetParam();++ const auto& [data_shape, num_group, eps] = this->GetParam();OPENVINO_ASSERT(data_shape.size() >= 2, "First input rank for group normalization op should be greater than 1");PartialShape scaleShiftShape = PartialShape{data_shape[1]};std::vector<PartialShape> input_shapes = { data_shape, scaleShiftShape, scaleShiftShape};diff --git a/src/common/snippets/tests/src/pass/gn_tokenization.cpp b/src/common/snippets/tests/src/pass/gn_tokenization.cppindex 6f5689acd8d..db227f743b1 100644--- a/src/common/snippets/tests/src/pass/gn_tokenization.cpp+++ b/src/common/snippets/tests/src/pass/gn_tokenization.cpp@@ -12,10 +12,7 @@ namespace test {namespace snippets {std::string TokenizeGNSnippetsTests::getTestCaseName(testing::TestParamInfo<GroupNormalizationParams> obj) {- PartialShape input_shape;- size_t num_group;- float eps;- std::tie(input_shape, num_group, eps) = obj.param;+ const auto& [input_shape, num_group, eps] = obj.param;std::ostringstream result;result << "IS=" << ov::test::utils::partialShape2str({input_shape}) << "_";result << "num_group=" << num_group << "_";@@ -25,10 +22,8 @@ std::string TokenizeGNSnippetsTests::getTestCaseName(testing::TestParamInfo<Grouvoid TokenizeGNSnippetsTests::SetUp() {TransformationTestsF::SetUp();- PartialShape data_shape;- size_t num_group;- float eps;- std::tie(data_shape, num_group, eps) = this->GetParam();++ const auto& [data_shape, num_group, eps] = this->GetParam();OPENVINO_ASSERT(data_shape.size() >= 2, "First input rank for group normalization op should be greater than 1");PartialShape scaleShiftShape = PartialShape{data_shape[1]};std::vector<PartialShape> input_shapes = { data_shape, scaleShiftShape, scaleShiftShape};diff --git a/src/common/snippets/tests/src/pass/precision_propagation.cpp b/src/common/snippets/tests/src/pass/precision_propagation.cppindex 866f4488361..396850145ca 100644--- a/src/common/snippets/tests/src/pass/precision_propagation.cpp+++ b/src/common/snippets/tests/src/pass/precision_propagation.cpp@@ -42,9 +42,7 @@ public:} // namespacestd::string PrecisionPropagationTest::getTestCaseName(testing::TestParamInfo<PrecisionPropagationParams> obj) {- std::pair<PartialShape, PartialShape> shapes;- PrecisionPropagationParamsValues test_values;- std::tie(shapes, test_values) = obj.param;+ const auto& [shapes, test_values] = obj.param;auto to_string = [](const std::set<std::vector<element::Type>>& precisions_pack) noexcept {std::ostringstream result;diff --git a/src/common/snippets/tests/src/pass/softmax_decomposition.cpp b/src/common/snippets/tests/src/pass/softmax_decomposition.cppindex 48efa6f70f9..682200a555f 100644--- a/src/common/snippets/tests/src/pass/softmax_decomposition.cpp+++ b/src/common/snippets/tests/src/pass/softmax_decomposition.cpp@@ -13,10 +13,7 @@ namespace test {namespace snippets {std::string SoftmaxDecompositionTest::getTestCaseName(testing::TestParamInfo<SoftmaxDecompositionTestParams> obj) {- PartialShape input_shape;- int axis;- SoftmaxVersion softmax_version;- std::tie(input_shape, axis, softmax_version) = obj.param;+ const auto& [input_shape, axis, softmax_version] = obj.param;std::ostringstream result;result << "IS=" << ov::test::utils::partialShape2str({input_shape}) << "_";result << "axis=" << axis << "_";@@ -27,9 +24,9 @@ std::string SoftmaxDecompositionTest::getTestCaseName(testing::TestParamInfo<Sofvoid SoftmaxDecompositionTest::SetUp() {LoweringTests::SetUp();std::vector<PartialShape> input_shapes{{}};- int axis;- SoftmaxVersion softmax_version;- std::tie(input_shapes[0], axis, softmax_version) = this->GetParam();++ const auto& [_tmp, axis, softmax_version] = this->GetParam();+ input_shapes[0] = _tmp;snippets_model = std::make_shared<SoftmaxFunction>(input_shapes, axis, softmax_version);}diff --git a/src/common/snippets/tests/src/utils/broadcast_merge_dim.cpp b/src/common/snippets/tests/src/utils/broadcast_merge_dim.cppindex 52ed6116822..8ed14fcdaf5 100644--- a/src/common/snippets/tests/src/utils/broadcast_merge_dim.cpp+++ b/src/common/snippets/tests/src/utils/broadcast_merge_dim.cpp@@ -25,8 +25,8 @@ void BroadcastMergeDimTest::SetUp() {}TEST_P(BroadcastMergeDimTest, BrodcastMergeDim) {- size_t d1, d2, dst, result;- std::tie(d1, d2, dst) = this->m_dims;+ const auto& [d1, d2, dst] = this->m_dims;+ size_t result = 0;ASSERT_TRUE(ov::snippets::utils::broadcast_merge_dim(result, d1, d2));ASSERT_EQ(result, dst);}@@ -53,4 +53,4 @@ INSTANTIATE_TEST_SUITE_P(smoke_Snippets_BrodcastMergeDim, BroadcastMergeDimTest,} // namespace BrodcastMergeDimInstantiation} // namespace snippets} // namespace test-} // namespace ov\ No newline at end of file+} // namespace ovdiff --git a/src/common/transformations/tests/common_optimizations/broadcast_transition_test.cpp b/src/common/transformations/tests/common_optimizations/broadcast_transition_test.cppindex bf9b1d35589..b0fc1fc19e3 100644--- a/src/common/transformations/tests/common_optimizations/broadcast_transition_test.cpp+++ b/src/common/transformations/tests/common_optimizations/broadcast_transition_test.cpp@@ -144,14 +144,7 @@ public:}static std::string getTestCaseName(const testing::TestParamInfo<BroadcastTransitionParams>& obj) {- ov::element::Type precision;- ov::Shape input_shape;- ov::Shape target_shape;- ov::op::BroadcastType bcast_mode;- BroadcastVersion bcast_version;- ov::test::utils::EltwiseTypes eltwise_type;- size_t idx;- std::tie(precision, input_shape, target_shape, bcast_mode, bcast_version, eltwise_type, idx) = obj.param;+ const auto& [precision, input_shape, target_shape, bcast_mode, bcast_version, eltwise_type, idx] = obj.param;std::ostringstream result;result << eltwise_type << "_prc=" << precision << "_IS=" << input_shape << "_TS=" << target_shape@@ -162,14 +155,8 @@ public:protected:void SetUp() override {TransformationTestsF::SetUp();- ov::element::Type precision;- ov::Shape input_shape;- ov::Shape target_shape;- ov::op::BroadcastType bcast_mode;- BroadcastVersion bcast_version;- ov::test::utils::EltwiseTypes eltwise_type;- size_t idx;- std::tie(precision, input_shape, target_shape, bcast_mode, bcast_version, eltwise_type, idx) = GetParam();++ const auto& [precision, input_shape, target_shape, bcast_mode, bcast_version, eltwise_type, idx] = GetParam();manager.register_pass<ov::pass::BroadcastTransition>();model = getOriginal(precision, input_shape, target_shape, bcast_mode, bcast_version, eltwise_type, idx);diff --git a/src/common/transformations/tests/common_optimizations/convert_pagedattn_inputs.cpp b/src/common/transformations/tests/common_optimizations/convert_pagedattn_inputs.cppindex be0915fa2c7..8636a47c9f1 100644--- a/src/common/transformations/tests/common_optimizations/convert_pagedattn_inputs.cpp+++ b/src/common/transformations/tests/common_optimizations/convert_pagedattn_inputs.cpp@@ -29,20 +29,13 @@ class ConvertPagedAttnInputsTest : public TransformationTestsF,public testing::WithParamInterface<ConvertPagedAttnInputsParams> {public:static std::string getTestCaseName(const testing::TestParamInfo<ConvertPagedAttnInputsParams>& obj) {- std::vector<ov::element::Type> cachePrecision;- std::vector<size_t> cacheGroupSize;- std::vector<size_t> blcokSize;- bool quantKeybychannel;- bool isAccuracyMode;- bool isIRKVCacheF16;- ov::element::Type inferPrec;- std::tie(cachePrecision,- cacheGroupSize,- blcokSize,- inferPrec,- quantKeybychannel,- isAccuracyMode,- isIRKVCacheF16) = obj.param;+ const auto& [cachePrecision,+ cacheGroupSize,+ blcokSize,+ inferPrec,+ quantKeybychannel,+ isAccuracyMode,+ isIRKVCacheF16] = obj.param;std::ostringstream result;result << "KeyPrc=" << cachePrecision[0] << "_";result << "ValuePrc=" << cachePrecision[1] << "_";@@ -74,10 +67,18 @@ public:};TEST_P(ConvertPagedAttnInputsTest, checkPrecisionAndShape) {- std::vector<ov::element::Type> cachePrecision;- std::vector<size_t> cacheGroupSize;- std::tie(cachePrecision, cacheGroupSize, blockSize, inferPrec, quantKeybychannel, isAccuracyMode, isIRKVCacheF16) =- this->GetParam();+ const auto& [cachePrecision,+ cacheGroupSize,+ _blockSize,+ _inferPrec,+ _quantKeybychannel,+ _isAccuracyMode,+ _isIRKVCacheF16] = this->GetParam();+ blockSize = _blockSize;+ inferPrec = _inferPrec;+ quantKeybychannel = _quantKeybychannel;+ isAccuracyMode = _isAccuracyMode;+ isIRKVCacheF16 = _isIRKVCacheF16;keyCachePrecision = cachePrecision[0];valueCachePrecision = cachePrecision[1];keyCacheGroupSize = cacheGroupSize[0];diff --git a/src/common/transformations/tests/common_optimizations/fq_mul_fusion_test.cpp b/src/common/transformations/tests/common_optimizations/fq_mul_fusion_test.cppindex b53011ebdc8..0c1470e3860 100644--- a/src/common/transformations/tests/common_optimizations/fq_mul_fusion_test.cpp+++ b/src/common/transformations/tests/common_optimizations/fq_mul_fusion_test.cpp@@ -32,8 +32,7 @@ using FQMulFusionParams = std::tuple<Shape, // FQ data shapeclass FQMulFusion : public testing::WithParamInterface<FQMulFusionParams>, public ov::test::TestsCommon {public:void SetUp() override {- Shape data_shape, in_shape, out_shape, mul_const_shape, expected_out_shape;- std::tie(data_shape, in_shape, out_shape, mul_const_shape, expected_out_shape) = this->GetParam();+ const auto& [data_shape, in_shape, out_shape, mul_const_shape, expected_out_shape] = this->GetParam();const auto data = opset4::Constant::create(element::Type_t::f32, data_shape, {0.0f});const auto in_low = opset4::Constant::create(element::Type_t::f32, in_shape, {-0.5f});diff --git a/src/common/transformations/tests/common_optimizations/pad_fusion.cpp b/src/common/transformations/tests/common_optimizations/pad_fusion.cppindex b14f72b1bad..518bbea59dc 100644--- a/src/common/transformations/tests/common_optimizations/pad_fusion.cpp+++ b/src/common/transformations/tests/common_optimizations/pad_fusion.cpp@@ -90,9 +90,7 @@ using TestParams = std::tuple<PadFactoryPtr, TestModelFactoryPtr>;class PadFusionTestFixture : public ::testing::WithParamInterface<TestParams>, public TransformationTestsF {public:static std::string get_test_name(const ::testing::TestParamInfo<TestParams>& obj) {- PadFactoryPtr pad_factory;- TestModelFactoryPtr model_factory;- std::tie(pad_factory, model_factory) = obj.param;+ const auto& [pad_factory, model_factory] = obj.param;std::ostringstream test_name;test_name << "pad_factory=" << pad_factory->getTypeName() << "/";@@ -103,9 +101,7 @@ public:};TEST_P(PadFusionTestFixture, CompareFunctions) {- PadFactoryPtr pad_factory;- TestModelFactoryPtr model_factory;- std::tie(pad_factory, model_factory) = this->GetParam();+ const auto& [pad_factory, model_factory] = this->GetParam();model_factory->setup(pad_factory, manager);model = model_factory->model;diff --git a/src/common/transformations/tests/op_conversions/convert_pad_to_group_conv.cpp b/src/common/transformations/tests/op_conversions/convert_pad_to_group_conv.cppindex f69d1174c4b..af6f8d9e509 100644--- a/src/common/transformations/tests/op_conversions/convert_pad_to_group_conv.cpp+++ b/src/common/transformations/tests/op_conversions/convert_pad_to_group_conv.cpp@@ -87,9 +87,7 @@ using TestParams = std::tuple<PadFactoryPtr, TestModelFactoryPtr>;class ConvertPadGroupConvTestFixture : public ::testing::WithParamInterface<TestParams>, public TransformationTestsF {public:static std::string get_test_name(const ::testing::TestParamInfo<TestParams>& obj) {- PadFactoryPtr pad_factory;- TestModelFactoryPtr model_factory;- std::tie(pad_factory, model_factory) = obj.param;+ const auto& [pad_factory, model_factory] = obj.param;std::ostringstream test_name;test_name << "pad_factory=" << pad_factory->getTypeName() << "/";@@ -100,9 +98,7 @@ public:};TEST_P(ConvertPadGroupConvTestFixture, CompareFunctions) {- PadFactoryPtr pad_factory;- TestModelFactoryPtr model_factory;- std::tie(pad_factory, model_factory) = this->GetParam();+ const auto& [pad_factory, model_factory] = this->GetParam();model_factory->setup(pad_factory, manager);model = model_factory->model;diff --git a/src/common/transformations/tests/op_conversions/eye_decomposition_test.cpp b/src/common/transformations/tests/op_conversions/eye_decomposition_test.cppindex 00ef1e1f94c..c5826abd653 100644--- a/src/common/transformations/tests/op_conversions/eye_decomposition_test.cpp+++ b/src/common/transformations/tests/op_conversions/eye_decomposition_test.cpp@@ -204,8 +204,9 @@ protected:void SetUp() override {TransformationTestsF::SetUp();- std::tuple<size_t, size_t> dim;- std::tie(dtype, dim, shift) = GetParam();+ const auto& [_dtype, dim, _shift] = GetParam();+ dtype = _dtype;+ shift = _shift;std::tie(h, w) = dim;}};diff --git a/src/common/transformations/tests/op_conversions/fake_convert_decomposition_test.cpp b/src/common/transformations/tests/op_conversions/fake_convert_decomposition_test.cppindex 1d4cdf7e20f..b07321244ff 100644--- a/src/common/transformations/tests/op_conversions/fake_convert_decomposition_test.cpp+++ b/src/common/transformations/tests/op_conversions/fake_convert_decomposition_test.cpp@@ -43,10 +43,7 @@ public:static std::string getTestCaseName(::testing::TestParamInfo<FakeConvertDecompositionParams> obj) {FakeConvertDecompositionParams params = obj.param;- Shape data_shape, scale_shape, shift_shape;- element::Type_t data_prec, dst_prec;- bool default_shift;- std::tie(data_shape, scale_shape, shift_shape, data_prec, dst_prec, default_shift) = params;+ const auto& [data_shape, scale_shape, shift_shape, data_prec, dst_prec, default_shift] = params;std::ostringstream result;result << "dataShape=" << ov::test::utils::vec2str(data_shape) << "_";diff --git a/src/common/transformations/tests/op_conversions/fq_decomposition_test.cpp b/src/common/transformations/tests/op_conversions/fq_decomposition_test.cppindex db9a451f307..5d4a0a1796d 100644--- a/src/common/transformations/tests/op_conversions/fq_decomposition_test.cpp+++ b/src/common/transformations/tests/op_conversions/fq_decomposition_test.cpp@@ -44,15 +44,9 @@ class FakeQuantizeDecompositionTest : public ov::test::TestsCommon,public ::testing::WithParamInterface<FakeQuantizeDecompositionParamsSet> {public:static std::string getTestCaseName(::testing::TestParamInfo<FakeQuantizeDecompositionParamsSet> obj) {- FakeQuantizeDecompositionBasicParams basic_params;- std::pair<float, float> input_ranges_values;- bool should_be_decompos;- std::tie(basic_params, input_ranges_values, should_be_decompos) = obj.param;+ const auto& [basic_params, input_ranges_values, should_be_decompos] = obj.param;- Shape data_shape, il_shape, ih_shape, ol_shape, oh_shape;- element::Type_t data_prec, ranges_prec;- size_t levels;- std::tie(data_prec, data_shape, ranges_prec, il_shape, ih_shape, ol_shape, oh_shape, levels) = basic_params;+ const auto& [data_prec, data_shape, ranges_prec, il_shape, ih_shape, ol_shape, oh_shape, levels] = basic_params;std::ostringstream result;result << "DATA=" << ov::test::utils::vec2str(data_shape) << "_";@@ -68,15 +62,9 @@ public:protected:void SetUp() override {- FakeQuantizeDecompositionBasicParams basic_params;- std::pair<float, float> input_ranges_values;- bool should_be_decompos;- std::tie(basic_params, input_ranges_values, should_be_decompos) = this->GetParam();-- Shape data_shape, il_shape, ih_shape, ol_shape, oh_shape;- element::Type_t data_prec, ranges_prec;- size_t levels;- std::tie(data_prec, data_shape, ranges_prec, il_shape, ih_shape, ol_shape, oh_shape, levels) = basic_params;+ const auto& [basic_params, input_ranges_values, should_be_decompos] = this->GetParam();++ const auto& [data_prec, data_shape, ranges_prec, il_shape, ih_shape, ol_shape, oh_shape, levels] = basic_params;bool need_convert = data_prec != ranges_prec;diff --git a/src/common/transformations/tests/symbolic_transformations/dereshape_matmul.cpp b/src/common/transformations/tests/symbolic_transformations/dereshape_matmul.cppindex f84dd76e8c5..be7b1007449 100644--- a/src/common/transformations/tests/symbolic_transformations/dereshape_matmul.cpp+++ b/src/common/transformations/tests/symbolic_transformations/dereshape_matmul.cpp@@ -409,19 +409,12 @@ public:}static std::string getTestCaseName(const testing::TestParamInfo<DeReshapeMatMulParameters>& obj) {- vector<size_t> lhs_input_shape_indices, lhs_reshape_indices;- vector<size_t> rhs_input_shape_indices, rhs_reshape_indices;- vector<size_t> output_reshape_indices;- size_t bea_scalar_mode, concat_mode, final_add_mode;-- tuple<vector<size_t>, vector<size_t>, vector<size_t>, vector<size_t>, vector<size_t>> tmp;-- std::tie(tmp, bea_scalar_mode, concat_mode, final_add_mode) = obj.param;- std::tie(lhs_input_shape_indices,- lhs_reshape_indices,- rhs_input_shape_indices,- rhs_reshape_indices,- output_reshape_indices) = tmp;+ const auto& [tmp, bea_scalar_mode, concat_mode, final_add_mode] = obj.param;+ const auto& [lhs_input_shape_indices,+ lhs_reshape_indices,+ rhs_input_shape_indices,+ rhs_reshape_indices,+ output_reshape_indices] = tmp;std::ostringstream result;result << "l_in_shape_idx=" << lhs_input_shape_indices << "_l_reshape_idx=" << lhs_reshape_indicesdiff --git a/src/common/transformations/tests/transpose_sinking/ts_binary_test.cpp b/src/common/transformations/tests/transpose_sinking/ts_binary_test.cppindex 316c750c846..70e05b88123 100644--- a/src/common/transformations/tests/transpose_sinking/ts_binary_test.cpp+++ b/src/common/transformations/tests/transpose_sinking/ts_binary_test.cpp@@ -210,14 +210,7 @@ class TransposeSinkingBinaryTwoTransposeInputsTestFixturepublic TransformationTestsF {public:static std::string get_test_name(const ::testing::TestParamInfo<TestBinaryTwoTransposeInputsParams>& obj) {- FactoryPtr binary_factory;- PassFactoryPtr pass_factory;- size_t num_binary_ops;- CreateGraphBinaryTwoTransposeInputsF model_factory;- CreateGraphBinaryTwoTransposeInputsF reference_model_factory;- element::Type input_type;-- std::tie(binary_factory, pass_factory, num_binary_ops, model_factory, reference_model_factory, input_type) =+ const auto& [binary_factory, pass_factory, num_binary_ops, model_factory, reference_model_factory, input_type] =obj.param;std::ostringstream test_name;@@ -231,14 +224,7 @@ public:};TEST_P(TransposeSinkingBinaryTwoTransposeInputsTestFixture, CompareFunctions) {- FactoryPtr binary_factory;- PassFactoryPtr pass_factory;- size_t num_binary_ops;- CreateGraphBinaryTwoTransposeInputsF model_factory;- CreateGraphBinaryTwoTransposeInputsF reference_model_factory;- element::Type input_type;-- std::tie(binary_factory, pass_factory, num_binary_ops, model_factory, reference_model_factory, input_type) =+ const auto& [binary_factory, pass_factory, num_binary_ops, model_factory, reference_model_factory, input_type] =this->GetParam();model = model_factory(binary_factory, num_binary_ops, input_type);@@ -330,21 +316,13 @@ class TransposeSinkingBinaryTestFixture : public ::testing::WithParamInterface<Tpublic TransformationTestsF {public:static std::string get_test_name(const ::testing::TestParamInfo<TestBinaryParams>& obj) {- FactoryPtr binary_factory;- PassFactoryPtr pass_factory;- size_t num_binary_ops;- CreateGraphBinaryF model_factory;- CreateGraphBinaryF reference_model_factory;- element::Type input_type;- size_t binary_transpose_input_idx;-- std::tie(binary_factory,- pass_factory,- num_binary_ops,- model_factory,- reference_model_factory,- input_type,- binary_transpose_input_idx) = obj.param;+ const auto& [binary_factory,+ pass_factory,+ num_binary_ops,+ model_factory,+ reference_model_factory,+ input_type,+ binary_transpose_input_idx] = obj.param;std::ostringstream test_name;test_name << "binaryFactory=" << binary_factory->getTypeName() << "/";@@ -358,20 +336,13 @@ public:};TEST_P(TransposeSinkingBinaryTestFixture, CompareFunctions) {- FactoryPtr binary_factory;- PassFactoryPtr pass_factory;- size_t num_binary_ops;- CreateGraphBinaryF model_factory;- CreateGraphBinaryF reference_model_factory;- element::Type input_type;- size_t binary_transpose_input_idx;- std::tie(binary_factory,- pass_factory,- num_binary_ops,- model_factory,- reference_model_factory,- input_type,- binary_transpose_input_idx) = this->GetParam();+ const auto& [binary_factory,+ pass_factory,+ num_binary_ops,+ model_factory,+ reference_model_factory,+ input_type,+ binary_transpose_input_idx] = this->GetParam();model = model_factory(binary_factory, num_binary_ops, input_type, binary_transpose_input_idx);model_ref = reference_model_factory(binary_factory, num_binary_ops, input_type, binary_transpose_input_idx);@@ -424,22 +395,14 @@ class TransposeSinkingBinaryIncompatShapesTestFixturepublic TransformationTestsF {public:static std::string get_test_name(const ::testing::TestParamInfo<TestBinaryIncompatShapesParams>& obj) {- FactoryPtr binary_factory;- PassFactoryPtr pass_factory;- Shape input_shape;- Shape constant_shape;- CreateGraphBinaryIncompatShapesF model_factory;- CreateGraphBinaryIncompatShapesF reference_model_factory;- element::Type input_type;- size_t binary_transpose_input_idx;- std::tie(binary_factory,- pass_factory,- input_shape,- constant_shape,- model_factory,- reference_model_factory,- input_type,- binary_transpose_input_idx) = obj.param;+ const auto& [binary_factory,+ pass_factory,+ input_shape,+ constant_shape,+ model_factory,+ reference_model_factory,+ input_type,+ binary_transpose_input_idx] = obj.param;std::ostringstream test_name;test_name << "binaryFactory=" << binary_factory->getTypeName() << "/";@@ -454,22 +417,14 @@ public:};TEST_P(TransposeSinkingBinaryIncompatShapesTestFixture, CompareFunctions) {- FactoryPtr binary_factory;- PassFactoryPtr pass_factory;- Shape input_shape;- Shape constant_shape;- CreateGraphBinaryIncompatShapesF model_factory;- CreateGraphBinaryIncompatShapesF reference_model_factory;- element::Type input_type;- size_t binary_transpose_input_idx;- std::tie(binary_factory,- pass_factory,- input_shape,- constant_shape,- model_factory,- reference_model_factory,- input_type,- binary_transpose_input_idx) = this->GetParam();+ const auto& [binary_factory,+ pass_factory,+ input_shape,+ constant_shape,+ model_factory,+ reference_model_factory,+ input_type,+ binary_transpose_input_idx] = this->GetParam();model = model_factory(binary_factory, input_type, input_shape, constant_shape, binary_transpose_input_idx);model_ref =@@ -1080,13 +1035,7 @@ class TransposeBinaryMultiSinkingFixture : public ::testing::WithParamInterface<public TransformationTestsF {public:static std::string get_test_name(const ::testing::TestParamInfo<TestBinaryParams>& obj) {- FactoryPtr binary_factory;- PassFactoryPtr pass_factory;- CreateGraphFunctionDesc function_desc;- element::Type input_type;- size_t binary_transpose_input_idx;-- std::tie(binary_factory, pass_factory, function_desc, input_type, binary_transpose_input_idx) = obj.param;+ const auto& [binary_factory, pass_factory, function_desc, input_type, binary_transpose_input_idx] = obj.param;std::ostringstream test_name;test_name << "binaryFactory=" << binary_factory->getTypeName() << "/";@@ -1100,13 +1049,8 @@ public:};TEST_P(TransposeBinaryMultiSinkingFixture, CompareFunctions) {- FactoryPtr binary_factory;- PassFactoryPtr pass_factory;- CreateGraphFunctionDesc function_desc;- element::Type input_type;- size_t binary_transpose_input_idx;-- std::tie(binary_factory, pass_factory, function_desc, input_type, binary_transpose_input_idx) = this->GetParam();+ const auto& [binary_factory, pass_factory, function_desc, input_type, binary_transpose_input_idx] =+ this->GetParam();model = function_desc.model_factory(binary_factory, input_type, binary_transpose_input_idx);model_ref = function_desc.reference_model_factory(binary_factory, input_type, binary_transpose_input_idx);@@ -1167,13 +1111,7 @@ class TransposeBinaryMultiSinkingBinaryMultiConsumersFixture : public ::testing:public TransformationTestsF {public:static std::string get_test_name(const ::testing::TestParamInfo<TestBinaryParams>& obj) {- FactoryPtr binary_factory;- PassFactoryPtr pass_factory;- CreateGraphFunctionDesc function_desc;- element::Type input_type;- size_t binary_transpose_input_idx;-- std::tie(binary_factory, pass_factory, function_desc, input_type, binary_transpose_input_idx) = obj.param;+ const auto& [binary_factory, pass_factory, function_desc, input_type, binary_transpose_input_idx] = obj.param;std::ostringstream test_name;test_name << "binaryFactory=" << binary_factory->getTypeName() << "/";@@ -1187,13 +1125,8 @@ public:};TEST_P(TransposeBinaryMultiSinkingBinaryMultiConsumersFixture, CompareFunctions) {- FactoryPtr binary_factory;- PassFactoryPtr pass_factory;- CreateGraphFunctionDesc function_desc;- element::Type input_type;- size_t binary_transpose_input_idx;-- std::tie(binary_factory, pass_factory, function_desc, input_type, binary_transpose_input_idx) = this->GetParam();+ const auto& [binary_factory, pass_factory, function_desc, input_type, binary_transpose_input_idx] =+ this->GetParam();model = function_desc.model_factory(binary_factory, input_type, binary_transpose_input_idx);model_ref = model->clone();diff --git a/src/common/transformations/tests/transpose_sinking/ts_concat_test.cpp b/src/common/transformations/tests/transpose_sinking/ts_concat_test.cppindex c4e537a32e2..8cbe45f5bf1 100644--- a/src/common/transformations/tests/transpose_sinking/ts_concat_test.cpp+++ b/src/common/transformations/tests/transpose_sinking/ts_concat_test.cpp@@ -287,21 +287,13 @@ class TransposeSinkingConcatTestFixture : public ::testing::WithParamInterface<Tpublic TransformationTestsF {public:static std::string get_test_name(const testing::TestParamInfo<TestConcatParams>& obj) {- PassFactoryPtr pass_factory;- size_t num_concat_ops;- CreateGraphConcatF model_factory;- CreateGraphConcatF reference_model_factory;- element::Type input_type;- size_t concat_transpose_input_idx;- size_t num_concat_inputs;-- std::tie(pass_factory,- num_concat_ops,- model_factory,- reference_model_factory,- input_type,- concat_transpose_input_idx,- num_concat_inputs) = obj.param;+ const auto& [pass_factory,+ num_concat_ops,+ model_factory,+ reference_model_factory,+ input_type,+ concat_transpose_input_idx,+ num_concat_inputs] = obj.param;std::ostringstream test_name;test_name << "passFactory=" << pass_factory->getTypeName() << "/";@@ -315,20 +307,13 @@ public:};TEST_P(TransposeSinkingConcatTestFixture, CompareFunctions) {- PassFactoryPtr pass_factory;- size_t num_concat_ops;- CreateGraphConcatF model_factory;- CreateGraphConcatF reference_model_factory;- element::Type input_type;- size_t concat_transpose_input_idx;- size_t num_concat_inputs;- std::tie(pass_factory,- num_concat_ops,- model_factory,- reference_model_factory,- input_type,- concat_transpose_input_idx,- num_concat_inputs) = this->GetParam();+ const auto& [pass_factory,+ num_concat_ops,+ model_factory,+ reference_model_factory,+ input_type,+ concat_transpose_input_idx,+ num_concat_inputs] = this->GetParam();model = model_factory(num_concat_ops, input_type, concat_transpose_input_idx, num_concat_inputs);model_ref = reference_model_factory(num_concat_ops, input_type, concat_transpose_input_idx, num_concat_inputs);@@ -376,15 +361,12 @@ class TransposeSinkingConcatAllTransposesInputTestFixturepublic TransformationTestsF {public:static std::string get_test_name(const testing::TestParamInfo<TestConcatAllTransposesInputParams>& obj) {- PassFactoryPtr pass_factory;- size_t num_concat_ops;- CreateGraphConcatAllTransposesInputF model_factory;- CreateGraphConcatAllTransposesInputF reference_model_factory;- element::Type input_type;- size_t num_concat_inputs;-- std::tie(pass_factory, num_concat_ops, model_factory, reference_model_factory, input_type, num_concat_inputs) =- obj.param;+ const auto& [pass_factory,+ num_concat_ops,+ model_factory,+ reference_model_factory,+ input_type,+ num_concat_inputs] = obj.param;std::ostringstream test_name;test_name << "passFactory=" << pass_factory->getTypeName() << "/";@@ -397,14 +379,7 @@ public:};TEST_P(TransposeSinkingConcatAllTransposesInputTestFixture, CompareFunctions) {- PassFactoryPtr pass_factory;- size_t num_concat_ops;- CreateGraphConcatAllTransposesInputF model_factory;- CreateGraphConcatAllTransposesInputF reference_model_factory;- element::Type input_type;- size_t num_concat_inputs;-- std::tie(pass_factory, num_concat_ops, model_factory, reference_model_factory, input_type, num_concat_inputs) =+ const auto& [pass_factory, num_concat_ops, model_factory, reference_model_factory, input_type, num_concat_inputs] =this->GetParam();model = model_factory(num_concat_ops, input_type, num_concat_inputs);@@ -882,19 +857,12 @@ class TransposeConcatMultiSinkingFixture : public ::testing::WithParamInterface<public TransformationTestsF {public:static std::string get_test_name(const testing::TestParamInfo<TestConcatParams>& obj) {- PassFactoryPtr pass_factory;- size_t num_concat_ops;- CreateGraphFunctionDesc function_desc;- element::Type input_type;- size_t concat_transpose_input_idx;- size_t num_concat_inputs;-- std::tie(pass_factory,- num_concat_ops,- function_desc,- input_type,- concat_transpose_input_idx,- num_concat_inputs) = obj.param;+ const auto& [pass_factory,+ num_concat_ops,+ function_desc,+ input_type,+ concat_transpose_input_idx,+ num_concat_inputs] = obj.param;std::ostringstream test_name;test_name << "passFactory=" << pass_factory->getTypeName() << "/";@@ -909,15 +877,12 @@ public:};TEST_P(TransposeConcatMultiSinkingFixture, CompareFunctions) {- PassFactoryPtr pass_factory;- size_t num_concat_ops;- CreateGraphFunctionDesc function_desc;- element::Type input_type;- size_t concat_transpose_input_idx;- size_t num_concat_inputs;-- std::tie(pass_factory, num_concat_ops, function_desc, input_type, concat_transpose_input_idx, num_concat_inputs) =- this->GetParam();+ const auto& [pass_factory,+ num_concat_ops,+ function_desc,+ input_type,+ concat_transpose_input_idx,+ num_concat_inputs] = this->GetParam();model = function_desc.model_factory(num_concat_ops, input_type, concat_transpose_input_idx, num_concat_inputs);model_ref = function_desc.reference_model_factory(num_concat_ops,@@ -984,19 +949,12 @@ class TransposeConcatMultiSinkingConcatConsumersFixture : public ::testing::Withpublic TransformationTestsF {public:static std::string get_test_name(const testing::TestParamInfo<TestConcatParams>& obj) {- PassFactoryPtr pass_factory;- size_t num_concat_ops;- CreateGraphFunctionNoSinkingDesc function_desc;- element::Type input_type;- size_t concat_transpose_input_idx;- size_t num_concat_inputs;-- std::tie(pass_factory,- num_concat_ops,- function_desc,- input_type,- concat_transpose_input_idx,- num_concat_inputs) = obj.param;+ const auto& [pass_factory,+ num_concat_ops,+ function_desc,+ input_type,+ concat_transpose_input_idx,+ num_concat_inputs] = obj.param;std::ostringstream test_name;test_name << "passFactory=" << pass_factory->getTypeName() << "/";@@ -1011,15 +969,12 @@ public:};TEST_P(TransposeConcatMultiSinkingConcatConsumersFixture, CompareFunctions) {- PassFactoryPtr pass_factory;- size_t num_concat_ops;- CreateGraphFunctionNoSinkingDesc function_desc;- element::Type input_type;- size_t concat_transpose_input_idx;- size_t num_concat_inputs;-- std::tie(pass_factory, num_concat_ops, function_desc, input_type, concat_transpose_input_idx, num_concat_inputs) =- this->GetParam();+ const auto& [pass_factory,+ num_concat_ops,+ function_desc,+ input_type,+ concat_transpose_input_idx,+ num_concat_inputs] = this->GetParam();model = function_desc.model_factory(num_concat_ops, input_type, concat_transpose_input_idx, num_concat_inputs);model_ref = model->clone();diff --git a/src/common/transformations/tests/transpose_sinking/ts_split_test.cpp b/src/common/transformations/tests/transpose_sinking/ts_split_test.cppindex a7cef2f7f1b..910b06a9582 100644--- a/src/common/transformations/tests/transpose_sinking/ts_split_test.cpp+++ b/src/common/transformations/tests/transpose_sinking/ts_split_test.cpp@@ -498,15 +498,12 @@ class TransposeSinkingSplitTestFixture : public ::testing::WithParamInterface<Tepublic TransformationTestsF {public:static std::string get_test_name(const ::testing::TestParamInfo<TestSplitParams>& obj) {- PassFactoryPtr pass_factory;- size_t num_split_ops;- size_t num_split_outputs;- CreateGraphSplitF model_factory;- CreateGraphSplitF reference_model_factory;- element::Type input_type;-- std::tie(pass_factory, num_split_ops, num_split_outputs, model_factory, reference_model_factory, input_type) =- obj.param;+ const auto& [pass_factory,+ num_split_ops,+ num_split_outputs,+ model_factory,+ reference_model_factory,+ input_type] = obj.param;std::ostringstream test_name;test_name << "pass_factory=" << pass_factory->getTypeName() << "_";@@ -519,13 +516,7 @@ public:};TEST_P(TransposeSinkingSplitTestFixture, CompareFunctions) {- PassFactoryPtr pass_factory;- size_t num_split_ops;- size_t num_split_outputs;- CreateGraphSplitF model_factory;- CreateGraphSplitF reference_model_factory;- element::Type input_type;- std::tie(pass_factory, num_split_ops, num_split_outputs, model_factory, reference_model_factory, input_type) =+ const auto& [pass_factory, num_split_ops, num_split_outputs, model_factory, reference_model_factory, input_type] =this->GetParam();model = model_factory(num_split_ops, num_split_outputs, input_type);@@ -774,19 +765,12 @@ class TSSplitBackwardRestrictTestFixture : public ::testing::WithParamInterface<public TransformationTestsF {public:static std::string get_test_name(const ::testing::TestParamInfo<TestSplitBackwardRestrictParams>& obj) {- PassFactoryPtr pass_factory;- size_t split_tree_depth;- size_t num_split_outputs;- CreateGraphSplitBackwardRestrictF model_factory;- element::Type input_type;- TransposeInsertFuncDesc tranpose_insert_function;-- std::tie(pass_factory,- split_tree_depth,- num_split_outputs,- model_factory,- input_type,- tranpose_insert_function) = obj.param;+ const auto& [pass_factory,+ split_tree_depth,+ num_split_outputs,+ model_factory,+ input_type,+ tranpose_insert_function] = obj.param;std::ostringstream test_name;test_name << "pass_factory=" << pass_factory->getTypeName() << "_";@@ -800,15 +784,12 @@ public:};TEST_P(TSSplitBackwardRestrictTestFixture, CompareFunctions) {- PassFactoryPtr pass_factory;- size_t split_tree_depth;- size_t num_split_outputs;- CreateGraphSplitBackwardRestrictF model_factory;- element::Type input_type;- TransposeInsertFuncDesc tranpose_insert_function;-- std::tie(pass_factory, split_tree_depth, num_split_outputs, model_factory, input_type, tranpose_insert_function) =- this->GetParam();+ const auto& [pass_factory,+ split_tree_depth,+ num_split_outputs,+ model_factory,+ input_type,+ tranpose_insert_function] = this->GetParam();model = model_factory(split_tree_depth, num_split_outputs, input_type, tranpose_insert_function.model);model_ref = model->clone();diff --git a/src/common/transformations/tests/transpose_sinking/ts_test_case.cpp b/src/common/transformations/tests/transpose_sinking/ts_test_case.cppindex 7814bf00547..72cce95b597 100644--- a/src/common/transformations/tests/transpose_sinking/ts_test_case.cpp+++ b/src/common/transformations/tests/transpose_sinking/ts_test_case.cpp@@ -7,10 +7,7 @@using namespace transpose_sinking::testing;std::string TSTestFixture::get_test_name(const ::testing::TestParamInfo<TestParams>& obj) {- size_t num_main_ops_idx;- size_t main_op_idx;- TestCase test_case;- std::tie(num_main_ops_idx, main_op_idx, test_case) = obj.param;+ const auto& [num_main_ops_idx, main_op_idx, test_case] = obj.param;std::ostringstream test_name;test_name << "Factory=" << test_case.model.main_op[main_op_idx]->getTypeName() << "/";diff --git a/src/common/transformations/tests/transpose_sinking/ts_unary_test.cpp b/src/common/transformations/tests/transpose_sinking/ts_unary_test.cppindex fc86c6455e8..e49a2f850fb 100644--- a/src/common/transformations/tests/transpose_sinking/ts_unary_test.cpp+++ b/src/common/transformations/tests/transpose_sinking/ts_unary_test.cpp@@ -34,20 +34,13 @@ using TestParams = std::tuple<FactoryPtr,class TransposeSinkingUnaryTestFixture : public ::testing::WithParamInterface<TestParams>, public TransformationTestsF {public:static std::string get_test_name(const ::testing::TestParamInfo<TestParams>& obj) {- FactoryPtr unary_factory;- PassFactoryPtr pass_factory;- size_t num_unary_ops;- CreateGraphF model_factory;- CreateGraphF reference_model_factory;- Shape input_shape;- element::Type input_type;- std::tie(unary_factory,- pass_factory,- num_unary_ops,- model_factory,- reference_model_factory,- input_shape,- input_type) = obj.param;+ const auto& [unary_factory,+ pass_factory,+ num_unary_ops,+ model_factory,+ reference_model_factory,+ input_shape,+ input_type] = obj.param;std::ostringstream test_name;test_name << "unaryFactory=" << unary_factory->getTypeName() << "/";@@ -423,20 +416,13 @@ std::vector<FactoryPtr> unary_factories = {CREATE_UNARY_FACTORY(ConvertLike)};TEST_P(TransposeSinkingUnaryTestFixture, CompareFunctions) {- FactoryPtr unary_factory;- PassFactoryPtr pass_factory;- size_t num_unary_ops;- CreateGraphF model_factory;- CreateGraphF reference_model_factory;- Shape input_shape;- element::Type input_type;- std::tie(unary_factory,- pass_factory,- num_unary_ops,- model_factory,- reference_model_factory,- input_shape,- input_type) = this->GetParam();+ const auto& [unary_factory,+ pass_factory,+ num_unary_ops,+ model_factory,+ reference_model_factory,+ input_shape,+ input_type] = this->GetParam();model = model_factory(unary_factory, num_unary_ops, input_shape, input_type);model_ref = reference_model_factory(unary_factory, num_unary_ops, input_shape, input_type);diff --git a/src/common/transformations/tests/utils/compress_quantize_weights.cpp b/src/common/transformations/tests/utils/compress_quantize_weights.cppindex 2820deee556..921f7b85e5b 100644--- a/src/common/transformations/tests/utils/compress_quantize_weights.cpp+++ b/src/common/transformations/tests/utils/compress_quantize_weights.cpp@@ -43,9 +43,8 @@ class CompressQuantizeWeightsTestspublic TransformationTestsF {void SetUp() override {TransformationTestsF::SetUp();- CompressQuantizeWeightsParams param;- ov::element::Type data_prc;- std::tie(param, data_prc) = GetParam();++ const auto& [param, data_prc] = GetParam();{std::shared_ptr<Node> data = opset8::Constant::create(data_prc, param.shape, param.weights);if (data_prc == element::f16) {diff --git a/src/core/tests/copy.cpp b/src/core/tests/copy.cppindex fd2fb79c6d6..aa35c20fbe1 100644--- a/src/core/tests/copy.cpp+++ b/src/core/tests/copy.cpp@@ -117,9 +117,8 @@ TEST(copy, broadcast) {ASSERT_NE(nullptr, new_node);ASSERT_EQ(new_args, new_node->input_values());- bool axes_determined;- AxisSet broadcast_axes;- std::tie(axes_determined, broadcast_axes) = node_cast->get_broadcast_axes();++ const auto& [axes_determined, broadcast_axes] = node_cast->get_broadcast_axes();ASSERT_EQ(true, axes_determined);ASSERT_EQ(AxisSet{0}, broadcast_axes);}diff --git a/src/core/tests/ov_tensor_test.cpp b/src/core/tests/ov_tensor_test.cppindex be6e350e6c9..4c0c6b6f966 100644--- a/src/core/tests/ov_tensor_test.cpp+++ b/src/core/tests/ov_tensor_test.cpp@@ -1085,9 +1085,7 @@ void compare_tensors(const ov::Tensor& src, const ov::Tensor& dst) {} // namespaceTEST_P(OVTensorTestCopy, copy_to) {- ov::element::Type type;- TestParams p;- std::tie(type, p) = GetParam();+ const auto& [type, p] = GetParam();// Source tensorsov::Tensor full_src_tensor;ov::Tensor src_tensor;diff --git a/src/core/tests/pass/serialization/const_compression.cpp b/src/core/tests/pass/serialization/const_compression.cppindex 66585af5025..a92e14a2994 100644--- a/src/core/tests/pass/serialization/const_compression.cpp+++ b/src/core/tests/pass/serialization/const_compression.cpp@@ -331,9 +331,7 @@ TEST_F(SerializationConstantCompressionTest, EmptyConstants) {ov::Core core;auto model_imported = core.read_model(m_out_xml_path_1, m_out_bin_path_1);- bool success;- std::string message;- std::tie(success, message) = compare_functions(model_initial, model_imported, true, true, false, true, true);+ const auto& [success, message] = compare_functions(model_initial, model_imported, true, true, false, true, true);ASSERT_TRUE(success) << message;}@@ -354,9 +352,7 @@ TEST_F(SerializationConstantCompressionTest, EmptyAndNotEmptyConstantSameValues)ov::Core core;auto model_imported = core.read_model(m_out_xml_path_1, m_out_bin_path_1);- bool success;- std::string message;- std::tie(success, message) = compare_functions(model_initial, model_imported, true, true, false, true, true);+ const auto& [success, message] = compare_functions(model_initial, model_imported, true, true, false, true, true);ASSERT_TRUE(success) << message;}@@ -377,8 +373,6 @@ TEST_F(SerializationConstantCompressionTest, EmptyAndNotEmptyConstantsDifferentVov::Core core;auto model_imported = core.read_model(m_out_xml_path_1, m_out_bin_path_1);- bool success;- std::string message;- std::tie(success, message) = compare_functions(model_initial, model_imported, true, true, false, true, true);+ const auto& [success, message] = compare_functions(model_initial, model_imported, true, true, false, true, true);ASSERT_TRUE(success) << message;}diff --git a/src/core/tests/pass/serialization/custom_ops.cpp b/src/core/tests/pass/serialization/custom_ops.cppindex 5859b3e2f17..4d911485435 100644--- a/src/core/tests/pass/serialization/custom_ops.cpp+++ b/src/core/tests/pass/serialization/custom_ops.cpp@@ -110,9 +110,7 @@ TEST_F(CustomOpsSerializationTest, CustomOpNoExtensions) {manager.run_passes(expected);auto result = core.read_model(m_out_xml_path, m_out_bin_path);- bool success;- std::string message;- std::tie(success, message) = compare_functions(result, expected, true, false, false, true, true);+ const auto& [success, message] = compare_functions(result, expected, true, false, false, true, true);ASSERT_TRUE(success) << message;}diff --git a/src/core/tests/pass/serialization/tensor_iterator.cpp b/src/core/tests/pass/serialization/tensor_iterator.cppindex 77b363041df..b2f6e5a4026 100644--- a/src/core/tests/pass/serialization/tensor_iterator.cpp+++ b/src/core/tests/pass/serialization/tensor_iterator.cpp@@ -67,9 +67,7 @@ protected:ov::serialize(expected, m_out_xml_path, m_out_bin_path);auto result = core.read_model(m_out_xml_path, m_out_bin_path);- bool success;- std::string message;- std::tie(success, message) = compare_functions(result, expected, true, false, false, true, true);+ const auto& [success, message] = compare_functions(result, expected, true, false, false, true, true);ASSERT_TRUE(success) << message;}};diff --git a/src/core/tests/pass_config.cpp b/src/core/tests/pass_config.cppindex b06c10db1c2..35bccaeb4a9 100644--- a/src/core/tests/pass_config.cpp+++ b/src/core/tests/pass_config.cpp@@ -84,9 +84,7 @@ static std::tuple<std::shared_ptr<Model>, std::shared_ptr<Node>, std::shared_ptr}TEST(PassConfig, EnableDisablePasses1) {- std::shared_ptr<Model> f;- std::shared_ptr<Node> relu, sigmoid;- std::tie(f, relu, sigmoid) = get_test_function();+ const auto& [f, relu, sigmoid] = get_test_function();pass::Manager manager;manager.register_pass<TestModelPass>();@@ -97,9 +95,7 @@ TEST(PassConfig, EnableDisablePasses1) {}TEST(PassConfig, EnableDisablePasses2) {- std::shared_ptr<Model> f;- std::shared_ptr<Node> relu, sigmoid;- std::tie(f, relu, sigmoid) = get_test_function();+ const auto& [f, relu, sigmoid] = get_test_function();pass::Manager manager;manager.register_pass<TestModelPass>();@@ -120,9 +116,7 @@ TEST(PassConfig, EnableDisablePasses2) {}TEST(PassConfig, EnableDisablePasses3) {- std::shared_ptr<Model> f;- std::shared_ptr<Node> relu, sigmoid;- std::tie(f, relu, sigmoid) = get_test_function();+ const auto& [f, relu, sigmoid] = get_test_function();pass::Manager manager;manager.register_pass<TestModelPass>();@@ -136,9 +130,7 @@ TEST(PassConfig, EnableDisablePasses3) {}TEST(PassConfig, EnableDisablePasses4) {- std::shared_ptr<Model> f;- std::shared_ptr<Node> relu, sigmoid;- std::tie(f, relu, sigmoid) = get_test_function();+ const auto& [f, relu, sigmoid] = get_test_function();pass::Manager manager;manager.register_pass<TestModelPass>();@@ -158,9 +150,7 @@ TEST(PassConfig, EnableDisablePasses4) {}TEST(PassConfig, EnableDisablePasses5) {- std::shared_ptr<Model> f;- std::shared_ptr<Node> relu, sigmoid;- std::tie(f, relu, sigmoid) = get_test_function();+ const auto& [f, relu, sigmoid] = get_test_function();pass::Manager manager;manager.register_pass<TestGraphRewritePass>();@@ -171,9 +161,7 @@ TEST(PassConfig, EnableDisablePasses5) {}TEST(PassConfig, EnableDisablePasses6) {- std::shared_ptr<Model> f;- std::shared_ptr<Node> relu, sigmoid;- std::tie(f, relu, sigmoid) = get_test_function();+ const auto& [f, relu, sigmoid] = get_test_function();pass::Manager manager;manager.register_pass<TestGraphRewritePass>();@@ -194,9 +182,7 @@ TEST(PassConfig, EnableDisablePasses6) {}TEST(PassConfig, EnableDisablePasses7) {- std::shared_ptr<Model> f;- std::shared_ptr<Node> relu, sigmoid;- std::tie(f, relu, sigmoid) = get_test_function();+ const auto& [f, relu, sigmoid] = get_test_function();pass::Manager manager;manager.register_pass<TestGraphRewritePass>();@@ -210,9 +196,7 @@ TEST(PassConfig, EnableDisablePasses7) {}TEST(PassConfig, EnableDisablePasses8) {- std::shared_ptr<Model> f;- std::shared_ptr<Node> relu, sigmoid;- std::tie(f, relu, sigmoid) = get_test_function();+ const auto& [f, relu, sigmoid] = get_test_function();pass::Manager manager;manager.register_pass<TestGraphRewritePass>();@@ -233,9 +217,7 @@ TEST(PassConfig, EnableDisablePasses8) {}TEST(PassConfig, EnableDisablePasses9) {- std::shared_ptr<Model> f;- std::shared_ptr<Node> relu, sigmoid;- std::tie(f, relu, sigmoid) = get_test_function();+ const auto& [f, relu, sigmoid] = get_test_function();pass::Manager manager;auto anchor = manager.register_pass<pass::GraphRewrite>();@@ -291,9 +273,7 @@ public:};TEST(PassConfig, EnableDisablePasses10) {- std::shared_ptr<Model> f;- std::shared_ptr<Node> relu, sigmoid;- std::tie(f, relu, sigmoid) = get_test_function();+ const auto& [f, relu, sigmoid] = get_test_function();pass::Manager manager;manager.register_pass<TestNestedGraphRewrite>();@@ -315,9 +295,7 @@ TEST(PassConfig, EnableDisablePasses10) {}TEST(PassConfig, EnableDisablePasses11) {- std::shared_ptr<Model> f;- std::shared_ptr<Node> relu, sigmoid;- std::tie(f, relu, sigmoid) = get_test_function();+ const auto& [f, relu, sigmoid] = get_test_function();pass::Manager manager;auto anchor = manager.register_pass<pass::GraphRewrite>();diff --git a/src/core/tests/type_prop/split.cpp b/src/core/tests/type_prop/split.cppindex 737e1c84397..bea7d4f4720 100644--- a/src/core/tests/type_prop/split.cpp+++ b/src/core/tests/type_prop/split.cpp@@ -297,8 +297,7 @@ TEST_P(SplitTest, use_default_ctor) {}TEST_P(SplitTest, symbols_propagation) {- ov::TensorSymbol in_symbols, exp_symbols;- std::tie(in_symbols, exp_symbols) = make_in_exp_symbols();+ const auto& [in_symbols, exp_symbols] = make_in_exp_symbols();set_shape_symbols(p_shape, in_symbols);const auto param = make_shared<op::v0::Parameter>(element::f32, p_shape);diff --git a/src/core/tests/type_prop/squeeze.cpp b/src/core/tests/type_prop/squeeze.cppindex d8ba287f01b..fda4b21e568 100644--- a/src/core/tests/type_prop/squeeze.cpp+++ b/src/core/tests/type_prop/squeeze.cpp@@ -400,8 +400,8 @@ TEST_P(SqueezeTest, symbols_propagation) {if (p_shape.rank().is_dynamic()) {GTEST_SKIP() << "No dimension to set symbol";}- ov::TensorSymbol in_symbols, exp_symbols;- std::tie(in_symbols, exp_symbols) = make_in_exp_symbols();++ const auto& [in_symbols, exp_symbols] = make_in_exp_symbols();set_shape_symbols(p_shape, in_symbols);param = make_shared<ov::op::v0::Parameter>(element::f32, p_shape);diff --git a/src/core/tests/type_prop/unsqueeze.cpp b/src/core/tests/type_prop/unsqueeze.cppindex a61608aa426..78b30ca6172 100644--- a/src/core/tests/type_prop/unsqueeze.cpp+++ b/src/core/tests/type_prop/unsqueeze.cpp@@ -243,8 +243,8 @@ TEST_P(UnsqueezeTest, symbols_propagation) {if (p_shape.rank().is_dynamic()) {GTEST_SKIP() << "No dimension to set symbol";}- ov::TensorSymbol in_symbols, exp_symbols;- std::tie(in_symbols, exp_symbols) = make_in_exp_symbols();++ const auto& [in_symbols, exp_symbols] = make_in_exp_symbols();set_shape_symbols(p_shape, in_symbols);param = make_shared<ov::op::v0::Parameter>(element::f32, p_shape);diff --git a/src/core/tests/type_prop/variadic_split.cpp b/src/core/tests/type_prop/variadic_split.cppindex 6f362d07c97..ccf82dd105d 100644--- a/src/core/tests/type_prop/variadic_split.cpp+++ b/src/core/tests/type_prop/variadic_split.cpp@@ -138,8 +138,7 @@ TEST_P(VariadicSplitTest, use_default_ctor) {}TEST_P(VariadicSplitTest, symbol_propagation) {- ov::TensorSymbol in_symbols, exp_symbols;- std::tie(in_symbols, exp_symbols) = make_in_exp_symbols();+ const auto& [in_symbols, exp_symbols] = make_in_exp_symbols();set_shape_symbols(p_shape, in_symbols);const auto data = make_shared<ov::op::v0::Parameter>(element::f32, p_shape);@@ -208,9 +207,7 @@ INSTANTIATE_TEST_SUITE_P(type_prop_bounds_propagate,PrintToStringParamName());TEST_P(VariadicSplitBoundTest, propagate_symbol_and_dynamic_value) {- ov::TensorSymbol in_symbols;- std::vector<ov::TensorSymbol> exp_symbols;- std::tie(in_symbols, exp_symbols) = make_in_exp_symbols();+ const auto& [in_symbols, exp_symbols] = make_in_exp_symbols();set_shape_symbols(p_shape, in_symbols);constexpr auto et = element::i64;diff --git a/src/frontends/tests/frontend/shared/src/convert_model.cpp b/src/frontends/tests/frontend/shared/src/convert_model.cppindex 08dc14bcdf5..107988073f8 100644--- a/src/frontends/tests/frontend/shared/src/convert_model.cpp+++ b/src/frontends/tests/frontend/shared/src/convert_model.cpp@@ -11,8 +11,7 @@using namespace ov::frontend;std::string FrontEndConvertModelTest::getTestCaseName(const testing::TestParamInfo<ConvertParam>& obj) {- std::string fe, path, fileName;- std::tie(fe, path, fileName) = obj.param;+ const auto& [fe, path, fileName] = obj.param;return fe + "_" + FrontEndTestUtils::fileToTestName(fileName);}diff --git a/src/frontends/tests/frontend/shared/src/op_fuzzy.cpp b/src/frontends/tests/frontend/shared/src/op_fuzzy.cppindex 60a0aee62c1..3b2115f2f0f 100644--- a/src/frontends/tests/frontend/shared/src/op_fuzzy.cpp+++ b/src/frontends/tests/frontend/shared/src/op_fuzzy.cpp@@ -13,8 +13,7 @@using namespace ov::frontend;std::string FrontEndFuzzyOpTest::getTestCaseName(const testing::TestParamInfo<FuzzyOpTestParam>& obj) {- std::string fe, path, fileName;- std::tie(fe, path, fileName) = obj.param;+ const auto& [fe, path, fileName] = obj.param;return fe + "_" + FrontEndTestUtils::fileToTestName(fileName);}diff --git a/src/frontends/tests/frontend/shared/src/partial_shape.cpp b/src/frontends/tests/frontend/shared/src/partial_shape.cppindex d20ce40586a..82b0e5426d2 100644--- a/src/frontends/tests/frontend/shared/src/partial_shape.cpp+++ b/src/frontends/tests/frontend/shared/src/partial_shape.cpp@@ -9,9 +9,7 @@using namespace ov::frontend;std::string FrontEndPartialShapeTest::getTestCaseName(const testing::TestParamInfo<PartialShapeParam>& obj) {- BaseFEParam base;- PartShape part;- std::tie(base, part) = obj.param;+ const auto& [base, part] = obj.param;std::string res = base.m_frontEndName + "_" + part.m_modelName + "_" + part.m_tensorName;for (auto s : part.m_newPartialShape) {res += "_" + (s.is_dynamic() ? "dyn" : std::to_string(s.get_length()));diff --git a/src/inference/tests/unit/query_model_test.cpp b/src/inference/tests/unit/query_model_test.cppindex 39c1bba4cfd..bcbf5e3a8f9 100644--- a/src/inference/tests/unit/query_model_test.cpp+++ b/src/inference/tests/unit/query_model_test.cpp@@ -645,9 +645,8 @@ TEST_P(GetSupportedNodesCommonTest, SplitModelWithDifferentRatioTest) {result->set_friendly_name("res");m_function = std::make_shared<ov::Model>(ov::ResultVector{result}, ov::ParameterVector{param});}- float query_model_ratio;- std::unordered_set<std::string> expected;- std::tie(query_model_ratio, expected) = this->GetParam();++ const auto& [query_model_ratio, expected] = this->GetParam();Run([&](std::shared_ptr<ov::Model>& model) {ov::pass::Manager m;@@ -674,9 +673,8 @@ TEST_P(GetSupportedNodesOneConstOp, OneConstOpTest) {res->set_friendly_name("res");m_function = std::make_shared<ov::Model>(ov::ResultVector{res}, ov::ParameterVector{param});}- float query_model_ratio;- std::unordered_set<std::string> expected;- std::tie(query_model_ratio, expected) = this->GetParam();++ const auto& [query_model_ratio, expected] = this->GetParam();Run([&](std::shared_ptr<ov::Model>& model) {ov::pass::Manager m;@@ -707,9 +705,8 @@ TEST_P(GetSupportedNodesStopSplit, StopSplitTest) {result->set_friendly_name("res");m_function = std::make_shared<ov::Model>(ov::ResultVector{result}, ov::ParameterVector{param});}- float query_model_ratio;- std::unordered_set<std::string> expected;- std::tie(query_model_ratio, expected) = this->GetParam();++ const auto& [query_model_ratio, expected] = this->GetParam();Run([&](std::shared_ptr<ov::Model>& model) {ov::pass::Manager m;