void ppd_StartShortingOnly(Ppd_t* this, ShortingDefinition_t ShortingDefinition)
{
UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM;
CMOCK_ppd_StartShortingOnly_CALL_INSTANCE* cmock_call_instance = (CMOCK_ppd_StartShortingOnly_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.ppd_StartShortingOnly_CallInstance);
Mock.ppd_StartShortingOnly_CallInstance = CMock_Guts_MemNext(Mock.ppd_StartShortingOnly_CallInstance);
if (Mock.ppd_StartShortingOnly_IgnoreBool)
{
return;
}
if (Mock.ppd_StartShortingOnly_CallbackFunctionPointer != NULL)
{
Mock.ppd_StartShortingOnly_CallbackFunctionPointer(this, ShortingDefinition, Mock.ppd_StartShortingOnly_CallbackCalls++);
return;
}
UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, "Function 'ppd_StartShortingOnly' called more times than expected.");
cmock_line = cmock_call_instance->LineNumber;
if (cmock_call_instance->Expected_this == NULL)
{ UNITY_TEST_ASSERT_NULL(this, cmock_line, "Expected NULL. Function 'ppd_StartShortingOnly' called with unexpected value for argument 'this'."); }
else if (cmock_call_instance->Expected_this_Depth == 0)
{ UNITY_TEST_ASSERT_EQUAL_PTR(cmock_call_instance->Expected_this, this, cmock_line, "Function 'ppd_StartShortingOnly' called with unexpected value for argument 'this'."); }
else
{ UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(cmock_call_instance->Expected_this), (void*)(this), sizeof(Ppd_t), cmock_call_instance->Expected_this_Depth, cmock_line, "Function 'ppd_StartShortingOnly' called with unexpected value for argument 'this'."); }
if (&cmock_call_instance->Expected_ShortingDefinition == NULL)
{ UNITY_TEST_ASSERT_NULL(ShortingDefinition, cmock_line, "Expected NULL. Function 'ppd_StartShortingOnly' called with unexpected value for argument 'ShortingDefinition'."); }
else
{ UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((void*)(&cmock_call_instance->Expected_ShortingDefinition), (void*)(&ShortingDefinition), sizeof(ShortingDefinition_t), 1, cmock_line, "Function 'ppd_StartShortingOnly' called with unexpected value for argument 'ShortingDefinition'."); }
}