Skip to content

Commit

Permalink
Apply clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jphickey committed Aug 1, 2024
1 parent 71f4897 commit a666db2
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 97 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void Test_eeprom_notimpl_Init(void)
void eeprom_notimpl_Init(uint32 PspModuleId)
*/

UtAssert_VOIDCALL(eeprom_notimpl_Init(1));
UtAssert_VOIDCALL(eeprom_notimpl_Init(1));
}

void Test_CFE_PSP_EepromWrite32(void)
Expand Down Expand Up @@ -110,14 +110,11 @@ void Test_CFE_PSP_EepromPowerDown(void)
UtAssert_INT32_EQ(CFE_PSP_EepromPowerDown(1), CFE_PSP_ERROR_NOT_IMPLEMENTED);
}



/*
* Macro to add a test case to the list of tests to execute
*/
#define ADD_TEST(test) UtTest_Add(test, NULL, NULL, #test)


/*
* Register the test cases to execute with the unit test tool
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,13 @@
/* This does not have a prototype */
extern void port_direct_Init(uint32 PspModuleId);


void Test_port_direct_Init(void)
{
/*
Test case for:
void port_direct_Init(uint32 PspModuleId)
*/
UtAssert_VOIDCALL(port_direct_Init(1));
UtAssert_VOIDCALL(port_direct_Init(1));
}

void Test_CFE_PSP_PortRead8(void)
Expand All @@ -62,7 +61,7 @@ void Test_CFE_PSP_PortRead8(void)
Test Case for:
int32 CFE_PSP_PortRead8(cpuaddr PortAddress, uint8 *ByteValue)
*/
uint8 Value;
uint8 Value;
UtAssert_INT32_EQ(CFE_PSP_PortRead8(0, &Value), CFE_PSP_SUCCESS);
}

Expand Down Expand Up @@ -91,7 +90,7 @@ void Test_CFE_PSP_PortWrite16(void)
Test Case for:
int32 CFE_PSP_PortWrite16(cpuaddr PortAddress, uint16 uint16Value)
*/
UtAssert_INT32_EQ(CFE_PSP_PortWrite16(0,1), CFE_PSP_SUCCESS);
UtAssert_INT32_EQ(CFE_PSP_PortWrite16(0, 1), CFE_PSP_SUCCESS);
}

void Test_CFE_PSP_PortRead32(void)
Expand All @@ -110,15 +109,14 @@ void Test_CFE_PSP_PortWrite32(void)
Test Case for:
int32 CFE_PSP_PortWrite32(cpuaddr PortAddress, uint32 uint32Value)
*/
UtAssert_INT32_EQ(CFE_PSP_PortWrite32(0,1), CFE_PSP_SUCCESS);
UtAssert_INT32_EQ(CFE_PSP_PortWrite32(0, 1), CFE_PSP_SUCCESS);
}

/*
* Macro to add a test case to the list of tests to execute
*/
#define ADD_TEST(test) UtTest_Add(test, NULL, NULL, #test)


/*
* Register the test cases to execute with the unit test tool
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,13 @@
/* This does not have a prototype */
extern void port_notimpl_Init(uint32 PspModuleId);


void Test_port_notimpl_Init(void)
{
/*
Test case for:
void port_notimpl_Init(uint32 PspModuleId)
*/
UtAssert_VOIDCALL(port_notimpl_Init(1));
UtAssert_VOIDCALL(port_notimpl_Init(1));
}

void Test_CFE_PSP_PortRead8(void)
Expand All @@ -62,7 +61,7 @@ void Test_CFE_PSP_PortRead8(void)
Test Case for:
int32 CFE_PSP_PortRead8(cpuaddr PortAddress, uint8 *ByteValue)
*/
uint8 Value;
uint8 Value;
UtAssert_INT32_EQ(CFE_PSP_PortRead8(0, &Value), CFE_PSP_ERROR_NOT_IMPLEMENTED);
}

Expand Down Expand Up @@ -91,7 +90,7 @@ void Test_CFE_PSP_PortWrite16(void)
Test Case for:
int32 CFE_PSP_PortWrite16(cpuaddr PortAddress, uint16 uint16Value)
*/
UtAssert_INT32_EQ(CFE_PSP_PortWrite16(0,1), CFE_PSP_ERROR_NOT_IMPLEMENTED);
UtAssert_INT32_EQ(CFE_PSP_PortWrite16(0, 1), CFE_PSP_ERROR_NOT_IMPLEMENTED);
}

void Test_CFE_PSP_PortRead32(void)
Expand All @@ -110,15 +109,14 @@ void Test_CFE_PSP_PortWrite32(void)
Test Case for:
int32 CFE_PSP_PortWrite32(cpuaddr PortAddress, uint32 uint32Value)
*/
UtAssert_INT32_EQ(CFE_PSP_PortWrite32(0,1), CFE_PSP_ERROR_NOT_IMPLEMENTED);
UtAssert_INT32_EQ(CFE_PSP_PortWrite32(0, 1), CFE_PSP_ERROR_NOT_IMPLEMENTED);
}

/*
* Macro to add a test case to the list of tests to execute
*/
#define ADD_TEST(test) UtTest_Add(test, NULL, NULL, #test)


/*
* Register the test cases to execute with the unit test tool
*/
Expand Down
21 changes: 10 additions & 11 deletions unit-test-coverage/modules/ram_direct/coveragetest-ram_direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void Test_ram_direct_Init(void)
void ram_direct_Init(uint32 PspModuleId)
*/

UtAssert_VOIDCALL(ram_direct_Init(1));
UtAssert_VOIDCALL(ram_direct_Init(1));
}

void Test_CFE_PSP_MemRead8(void)
Expand All @@ -61,8 +61,8 @@ void Test_CFE_PSP_MemRead8(void)
int32 CFE_PSP_MemRead8(cpuaddr MemoryAddress, uint8 *ByteValue)
*/

uint8 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead8(0, &Value), CFE_PSP_SUCCESS);
uint8 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead8(0, &Value), CFE_PSP_SUCCESS);
}

void Test_CFE_PSP_MemWrite8(void)
Expand All @@ -71,7 +71,7 @@ void Test_CFE_PSP_MemWrite8(void)
int32 CFE_PSP_MemWrite8(cpuaddr MemoryAddress, uint8 ByteValue)
*/

UtAssert_INT32_EQ(CFE_PSP_MemWrite8(0, 1), CFE_PSP_SUCCESS);
UtAssert_INT32_EQ(CFE_PSP_MemWrite8(0, 1), CFE_PSP_SUCCESS);
}

void Test_CFE_PSP_MemRead16(void)
Expand All @@ -80,8 +80,8 @@ void Test_CFE_PSP_MemRead16(void)
int32 CFE_PSP_MemRead16(cpuaddr MemoryAddress, uint16 *uint16Value)
*/

uint16 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead16(0, &Value), CFE_PSP_SUCCESS);
uint16 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead16(0, &Value), CFE_PSP_SUCCESS);
}

void Test_CFE_PSP_MemWrite16(void)
Expand All @@ -90,7 +90,7 @@ void Test_CFE_PSP_MemWrite16(void)
int32 CFE_PSP_MemWrite16(cpuaddr MemoryAddress, uint16 uint16Value)
*/

UtAssert_INT32_EQ(CFE_PSP_MemWrite16(0,1), CFE_PSP_SUCCESS);
UtAssert_INT32_EQ(CFE_PSP_MemWrite16(0, 1), CFE_PSP_SUCCESS);
}

void Test_CFE_PSP_MemRead32(void)
Expand All @@ -99,8 +99,8 @@ void Test_CFE_PSP_MemRead32(void)
int32 CFE_PSP_MemRead32(cpuaddr MemoryAddress, uint32 *uint32Value)
*/

uint32 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead32(0, &Value), CFE_PSP_SUCCESS);
uint32 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead32(0, &Value), CFE_PSP_SUCCESS);
}

void Test_CFE_PSP_MemWrite32(void)
Expand All @@ -109,8 +109,7 @@ void Test_CFE_PSP_MemWrite32(void)
int32 CFE_PSP_MemWrite32(cpuaddr MemoryAddress, uint32 uint32Value)
*/


UtAssert_INT32_EQ(CFE_PSP_MemWrite32(0,1), CFE_PSP_SUCCESS);
UtAssert_INT32_EQ(CFE_PSP_MemWrite32(0, 1), CFE_PSP_SUCCESS);
}

/*
Expand Down
20 changes: 10 additions & 10 deletions unit-test-coverage/modules/ram_notimpl/coveragetest-ram_notimpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void Test_ram_notimpl_Init(void)
void ram_notimpl_Init(uint32 PspModuleId)
*/

UtAssert_VOIDCALL(ram_notimpl_Init(1));
UtAssert_VOIDCALL(ram_notimpl_Init(1));
}

void Test_CFE_PSP_MemRead8(void)
Expand All @@ -61,8 +61,8 @@ void Test_CFE_PSP_MemRead8(void)
int32 CFE_PSP_MemRead8(cpuaddr MemoryAddress, uint8 *ByteValue)
*/

uint8 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead8(0, &Value), CFE_PSP_ERROR_NOT_IMPLEMENTED);
uint8 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead8(0, &Value), CFE_PSP_ERROR_NOT_IMPLEMENTED);
}

void Test_CFE_PSP_MemWrite8(void)
Expand All @@ -71,7 +71,7 @@ void Test_CFE_PSP_MemWrite8(void)
int32 CFE_PSP_MemWrite8(cpuaddr MemoryAddress, uint8 ByteValue)
*/

UtAssert_INT32_EQ(CFE_PSP_MemWrite8(0, 1), CFE_PSP_ERROR_NOT_IMPLEMENTED);
UtAssert_INT32_EQ(CFE_PSP_MemWrite8(0, 1), CFE_PSP_ERROR_NOT_IMPLEMENTED);
}

void Test_CFE_PSP_MemRead16(void)
Expand All @@ -80,8 +80,8 @@ void Test_CFE_PSP_MemRead16(void)
int32 CFE_PSP_MemRead16(cpuaddr MemoryAddress, uint16 *uint16Value)
*/

uint16 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead16(0, &Value), CFE_PSP_ERROR_NOT_IMPLEMENTED);
uint16 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead16(0, &Value), CFE_PSP_ERROR_NOT_IMPLEMENTED);
}

void Test_CFE_PSP_MemWrite16(void)
Expand All @@ -90,7 +90,7 @@ void Test_CFE_PSP_MemWrite16(void)
int32 CFE_PSP_MemWrite16(cpuaddr MemoryAddress, uint16 uint16Value)
*/

UtAssert_INT32_EQ(CFE_PSP_MemWrite16(0,1), CFE_PSP_ERROR_NOT_IMPLEMENTED);
UtAssert_INT32_EQ(CFE_PSP_MemWrite16(0, 1), CFE_PSP_ERROR_NOT_IMPLEMENTED);
}

void Test_CFE_PSP_MemRead32(void)
Expand All @@ -99,8 +99,8 @@ void Test_CFE_PSP_MemRead32(void)
int32 CFE_PSP_MemRead32(cpuaddr MemoryAddress, uint32 *uint32Value)
*/

uint32 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead32(0, &Value), CFE_PSP_ERROR_NOT_IMPLEMENTED);
uint32 Value;
UtAssert_INT32_EQ(CFE_PSP_MemRead32(0, &Value), CFE_PSP_ERROR_NOT_IMPLEMENTED);
}

void Test_CFE_PSP_MemWrite32(void)
Expand All @@ -109,7 +109,7 @@ void Test_CFE_PSP_MemWrite32(void)
int32 CFE_PSP_MemWrite32(cpuaddr MemoryAddress, uint32 uint32Value)
*/

UtAssert_INT32_EQ(CFE_PSP_MemWrite32(0,1), CFE_PSP_ERROR_NOT_IMPLEMENTED);
UtAssert_INT32_EQ(CFE_PSP_MemWrite32(0, 1), CFE_PSP_ERROR_NOT_IMPLEMENTED);
}

/*
Expand Down
Loading

0 comments on commit a666db2

Please sign in to comment.