From a50fc6ecfad837b16c52701d9ddf4bebf25a9c06 Mon Sep 17 00:00:00 2001 From: Yash Chauhan Date: Fri, 12 Jan 2024 18:05:36 +0530 Subject: [PATCH] Updated exported function list --- .../testcases/ExportedFunctionList.json | 20 +++++++++++++------ .../tests/exported_functions_addition_test.py | 4 ++-- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/tests/CMakeTests/testcases/ExportedFunctionList.json b/tests/CMakeTests/testcases/ExportedFunctionList.json index 59a330d5..acdaba71 100644 --- a/tests/CMakeTests/testcases/ExportedFunctionList.json +++ b/tests/CMakeTests/testcases/ExportedFunctionList.json @@ -1,5 +1,5 @@ { - "size": 83, + "size": 84, "signatures": [ { "id": 0, @@ -740,6 +740,14 @@ }, { "id": 77, + "function_name": "SetLVRTModulePath", + "return_type": "int32_t", + "parameter_list": [ + "const char*" + ] + }, + { + "id": 78, "function_name": "SetResponseData", "return_type": "int32_t", "parameter_list": [ @@ -748,7 +756,7 @@ ] }, { - "id": 78, + "id": 79, "function_name": "TryUnpackFromAny", "return_type": "int32_t", "parameter_list": [ @@ -759,7 +767,7 @@ ] }, { - "id": 79, + "id": 80, "function_name": "UnpackFieldsFromAny", "return_type": "int32_t", "parameter_list": [ @@ -768,7 +776,7 @@ ] }, { - "id": 80, + "id": 81, "function_name": "UnpackFieldsFromBuffer", "return_type": "int32_t", "parameter_list": [ @@ -777,7 +785,7 @@ ] }, { - "id": 81, + "id": 82, "function_name": "UnpackFromAny", "return_type": "int32_t", "parameter_list": [ @@ -788,7 +796,7 @@ ] }, { - "id": 82, + "id": 83, "function_name": "UnpackFromBuffer", "return_type": "int32_t", "parameter_list": [ diff --git a/tests/CMakeTests/tests/exported_functions_addition_test.py b/tests/CMakeTests/tests/exported_functions_addition_test.py index 9daa5787..a1cae7dd 100644 --- a/tests/CMakeTests/tests/exported_functions_addition_test.py +++ b/tests/CMakeTests/tests/exported_functions_addition_test.py @@ -18,7 +18,7 @@ def read_json(filepath): cnt = 1 for func in new_function_map.keys(): if old_function_map.get(func) == None: - func_name += " " + str(cnt) + ". " + func + '\n' + func_name += str(cnt) + ")" + func + ' ' cnt += 1 - print(f"::warning::You have not added these function in the 'Exported Functions' cmake test:\n{func_name}Please add these function(s) in tests/CMakeTests/testcases/ExportedFunctionList.json") \ No newline at end of file + print(f"::warning::You have not added these function in the 'Exported Functions' cmake test: {func_name}. Please add these function(s) in tests/CMakeTests/testcases/ExportedFunctionList.json") \ No newline at end of file