From b3eefbb90a89a9f9a650b8d040397a4155b2ea38 Mon Sep 17 00:00:00 2001 From: Siddharth Mishra Date: Fri, 20 Dec 2024 09:23:28 +0530 Subject: [PATCH] To Review & Merge Some small non-necessary fixes to follow a proper coding style throughout. --- Test/Test.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Test/Test.c b/Test/Test.c index 5dbfc65..f7a095f 100644 --- a/Test/Test.c +++ b/Test/Test.c @@ -21,10 +21,19 @@ ReaiResponse* reai_mock_request ( int main() { Reai* reai = reai_create ("https://mock.reveng.api", "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"); + if (!reai) { + REAI_LOG_ERROR ("failed to create reai object."); + return EXIT_FAILURE; + } + reai_set_mock_handler (reai, reai_mock_request); ReaiResponse response = {0}; - reai_response_init (&response); + if (!reai_response_init (&response)) { + REAI_LOG_ERROR ("failed to init response object."); + return EXIT_FAILURE; + } + Bool success = true; ReaiRequest req = {0}; @@ -130,7 +139,6 @@ int main() { !!response.batch_binary_symbol_ann.function_matches) ) - // TODO fix dis TEST ( "Batch function symbol ANN", reai_batch_function_symbol_ann (reai, &response, 54321, NULL, 10, 0.1, NULL, true) &&