From f909a515de2d09e44c006e437bd96cec122c3b88 Mon Sep 17 00:00:00 2001 From: MaryamZi Date: Thu, 21 Nov 2024 10:44:51 +0530 Subject: [PATCH] Update tests for strand annotation --- .../function_invocation_inside_worker_with_return.json | 4 +++- .../build-projects/function_invocation_inside_workers.json | 4 +++- .../build-projects/type_definition_inside_worker.json | 4 +++- .../type_definition_inside_worker_with_return.json | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/function_invocation_inside_worker_with_return.json b/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/function_invocation_inside_worker_with_return.json index df795958bbf6..7ada80c6ccce 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/function_invocation_inside_worker_with_return.json +++ b/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/function_invocation_inside_worker_with_return.json @@ -24,7 +24,9 @@ }, "unusedTypeDefNames": { "sourceTypeDefinitions": [], - "virtualTypeDefinitions": [] + "virtualTypeDefinitions": [ + "$anonType$_0" + ] }, "usedNativeClassPaths": [] } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/function_invocation_inside_workers.json b/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/function_invocation_inside_workers.json index 0fdee75227ad..45a4be1166b8 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/function_invocation_inside_workers.json +++ b/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/function_invocation_inside_workers.json @@ -26,7 +26,9 @@ }, "unusedTypeDefNames": { "sourceTypeDefinitions": [], - "virtualTypeDefinitions": [] + "virtualTypeDefinitions": [ + "$anonType$_0" + ] }, "usedNativeClassPaths": [] } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/type_definition_inside_worker.json b/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/type_definition_inside_worker.json index d66edcbd1a90..6b514426d669 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/type_definition_inside_worker.json +++ b/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/type_definition_inside_worker.json @@ -25,7 +25,9 @@ "sourceTypeDefinitions": [ "UnusedTypeDef" ], - "virtualTypeDefinitions": [] + "virtualTypeDefinitions": [ + "$anonType$_1" + ] }, "usedNativeClassPaths": [] } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/type_definition_inside_worker_with_return.json b/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/type_definition_inside_worker_with_return.json index cc001f6a14cd..c86a290fe1f7 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/type_definition_inside_worker_with_return.json +++ b/tests/jballerina-unit-test/src/test/resources/test-src/codegen-optimizer/json-files/build-projects/type_definition_inside_worker_with_return.json @@ -25,7 +25,9 @@ "sourceTypeDefinitions": [ "UnusedTypeDef" ], - "virtualTypeDefinitions": [] + "virtualTypeDefinitions": [ + "$anonType$_1" + ] }, "usedNativeClassPaths": [] }