Skip to content

Commit

Permalink
Removed unused functions in unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
nlrcomcast committed Sep 15, 2023
1 parent 593c29e commit ddf1351
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 63 deletions.
14 changes: 0 additions & 14 deletions tests/test_mqttcm_component.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,20 +173,6 @@ void test_AddSubscribeTopicToFile_failure()
CU_ASSERT_EQUAL(result, 0);
}

int init_suite(void)
{
// Initialize any necessary resources or setups
return 0;
}

// Test suite cleanup function

int clean_suite(void)
{
// Clean up any allocated resources or memory
return 0;
}

void add_suites( CU_pSuite *suite )
{
*suite = CU_add_suite( "tests", NULL, NULL );
Expand Down
21 changes: 0 additions & 21 deletions tests/test_mqttcm_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,14 +386,6 @@ void test_get_global_mqtt_mut()
CU_ASSERT_PTR_EQUAL(&mqtt_mut, get_global_mqtt_mut());
}

// Test case for mqttCMRbus_Uninit
void test_mqttCMRbus_Uninit()
{
mqttCMRbusInit("componentName");
int result = mqttCMRbus_Uninit();
CU_ASSERT_EQUAL(result, 1);
}

// Test case for registerRbusLogger
void test_registerRbusLogger()
{
Expand All @@ -411,19 +403,6 @@ void test_rbus_log_handler()
rbus_log_handler(4, "file5", 5, 0, "message5");
}

// Test suite initialization function
int init_suite(void)
{
// Initialize any necessary resources or setups
return 0;
}

// Test suite cleanup function
int clean_suite(void)
{
// Clean up any allocated resources or memory
return 0;
}
void add_suites( CU_pSuite *suite )
{
*suite = CU_add_suite( "tests", NULL, NULL );
Expand Down
14 changes: 0 additions & 14 deletions tests/test_mqttcm_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,6 @@ void test_rbus_StoreValueIntoDB(void)
free(pString2);
}

int init_suite(void)
{
// Initialize any necessary resources or setups
return 0;
}

// Test suite cleanup function

int clean_suite(void)
{
// Clean up any allocated resources or memory
return 0;
}

void add_suites( CU_pSuite *suite )
{
*suite = CU_add_suite( "tests", NULL, NULL );
Expand Down
14 changes: 0 additions & 14 deletions tests/test_mqttcm_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,20 +154,6 @@ void test_mqtt_rand_expiration(void)
CU_ASSERT(ts.tv_nsec >= 0 && ts.tv_nsec < 1000000000);
}

int init_suite(void)
{
// Initialize any necessary resources or setups
return 0;
}

// Test suite cleanup function

int clean_suite(void)
{
// Clean up any allocated resources or memory
return 0;
}

void add_suites( CU_pSuite *suite )
{
*suite = CU_add_suite( "tests", NULL, NULL );
Expand Down

0 comments on commit ddf1351

Please sign in to comment.