text: /* AUTOGENERATED FILE. DO NOT EDIT. */
  #include <string.h>
  #include <stdlib.h>
  #include <setjmp.h>
  #include "unity.h"
  #include "cmock.h"
  #include "Mock_rkhfwk_bittbl.h"
  
  static const char* CMockString_bitPos = "bitPos";
  static const char* CMockString_rkh_bittbl_getBitMask = "rkh_bittbl_getBitMask";
  static const char* CMockString_rkh_bittbl_getLeastBitSetPos = "rkh_bittbl_getLeastBitSetPos";
  static const char* CMockString_value = "value";
  
  typedef struct _CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE
  {
    UNITY_LINE_TYPE LineNumber;
    rui8_t ReturnVal;
    rui8_t Expected_bitPos;
    int IgnoreArg_bitPos;
  
  } CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE;
  
  typedef struct _CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE
  {
    UNITY_LINE_TYPE LineNumber;
    rui8_t ReturnVal;
    rui8_t Expected_value;
    int IgnoreArg_value;
  
  } CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE;
  
  static struct Mock_rkhfwk_bittblInstance
  {
    int rkh_bittbl_getBitMask_IgnoreBool;
    rui8_t rkh_bittbl_getBitMask_FinalReturn;
    CMOCK_rkh_bittbl_getBitMask_CALLBACK rkh_bittbl_getBitMask_CallbackFunctionPointer;
    int rkh_bittbl_getBitMask_CallbackCalls;
    CMOCK_MEM_INDEX_TYPE rkh_bittbl_getBitMask_CallInstance;
    int rkh_bittbl_getLeastBitSetPos_IgnoreBool;
    rui8_t rkh_bittbl_getLeastBitSetPos_FinalReturn;
    CMOCK_rkh_bittbl_getLeastBitSetPos_CALLBACK rkh_bittbl_getLeastBitSetPos_CallbackFunctionPointer;
    int rkh_bittbl_getLeastBitSetPos_CallbackCalls;
    CMOCK_MEM_INDEX_TYPE rkh_bittbl_getLeastBitSetPos_CallInstance;
  } Mock;
  
  extern jmp_buf AbortFrame;
  
  void Mock_rkhfwk_bittbl_Verify(void)
  {
    UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM;
    if (Mock.rkh_bittbl_getBitMask_IgnoreBool)
      Mock.rkh_bittbl_getBitMask_CallInstance = CMOCK_GUTS_NONE;
    UNITY_SET_DETAIL(CMockString_rkh_bittbl_getBitMask);
    UNITY_TEST_ASSERT(CMOCK_GUTS_NONE == Mock.rkh_bittbl_getBitMask_CallInstance, cmock_line, CMockStringCalledLess);
    if (Mock.rkh_bittbl_getBitMask_CallbackFunctionPointer != NULL)
      Mock.rkh_bittbl_getBitMask_CallInstance = CMOCK_GUTS_NONE;
    if (Mock.rkh_bittbl_getLeastBitSetPos_IgnoreBool)
      Mock.rkh_bittbl_getLeastBitSetPos_CallInstance = CMOCK_GUTS_NONE;
    UNITY_SET_DETAIL(CMockString_rkh_bittbl_getLeastBitSetPos);
    UNITY_TEST_ASSERT(CMOCK_GUTS_NONE == Mock.rkh_bittbl_getLeastBitSetPos_CallInstance, cmock_line, CMockStringCalledLess);
    if (Mock.rkh_bittbl_getLeastBitSetPos_CallbackFunctionPointer != NULL)
      Mock.rkh_bittbl_getLeastBitSetPos_CallInstance = CMOCK_GUTS_NONE;
  }
  
  void Mock_rkhfwk_bittbl_Init(void)
  {
    Mock_rkhfwk_bittbl_Destroy();
  }
  
  void Mock_rkhfwk_bittbl_Destroy(void)
  {
    CMock_Guts_MemFreeAll();
    memset(&Mock, 0, sizeof(Mock));
    Mock.rkh_bittbl_getBitMask_CallbackFunctionPointer = NULL;
    Mock.rkh_bittbl_getBitMask_CallbackCalls = 0;
    Mock.rkh_bittbl_getLeastBitSetPos_CallbackFunctionPointer = NULL;
    Mock.rkh_bittbl_getLeastBitSetPos_CallbackCalls = 0;
  }
  
  rui8_t rkh_bittbl_getBitMask(rui8_t bitPos)
  {
    UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM;
    CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE* cmock_call_instance;
    UNITY_SET_DETAIL(CMockString_rkh_bittbl_getBitMask);
    cmock_call_instance = (CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.rkh_bittbl_getBitMask_CallInstance);
    Mock.rkh_bittbl_getBitMask_CallInstance = CMock_Guts_MemNext(Mock.rkh_bittbl_getBitMask_CallInstance);
    if (Mock.rkh_bittbl_getBitMask_IgnoreBool)
    {
      UNITY_CLR_DETAILS();
      if (cmock_call_instance == NULL)
        return Mock.rkh_bittbl_getBitMask_FinalReturn;
      memcpy(&Mock.rkh_bittbl_getBitMask_FinalReturn, &cmock_call_instance->ReturnVal, sizeof(rui8_t));
      return cmock_call_instance->ReturnVal;
    }
    UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore);
    cmock_line = cmock_call_instance->LineNumber;
    if (!cmock_call_instance->IgnoreArg_bitPos)
    {
      UNITY_SET_DETAILS(CMockString_rkh_bittbl_getBitMask,CMockString_bitPos);
      UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_bitPos), (void*)(&bitPos), sizeof(rui8_t), cmock_line, CMockStringMismatch);
    }
    if (Mock.rkh_bittbl_getBitMask_CallbackFunctionPointer != NULL)
    {
      cmock_call_instance->ReturnVal = Mock.rkh_bittbl_getBitMask_CallbackFunctionPointer(bitPos, Mock.rkh_bittbl_getBitMask_CallbackCalls++);
    }
    UNITY_CLR_DETAILS();
    return cmock_call_instance->ReturnVal;
  }
  
  void CMockExpectParameters_rkh_bittbl_getBitMask(CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE* cmock_call_instance, rui8_t bitPos)
  {
    memcpy(&cmock_call_instance->Expected_bitPos, &bitPos, sizeof(rui8_t));
    cmock_call_instance->IgnoreArg_bitPos = 0;
  }
  
  void rkh_bittbl_getBitMask_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, rui8_t cmock_to_return)
  {
    CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE));
    CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE* cmock_call_instance = (CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index);
    UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory);
    memset(cmock_call_instance, 0, sizeof(*cmock_call_instance));
    Mock.rkh_bittbl_getBitMask_CallInstance = CMock_Guts_MemChain(Mock.rkh_bittbl_getBitMask_CallInstance, cmock_guts_index);
    Mock.rkh_bittbl_getBitMask_IgnoreBool = (int)0;
    cmock_call_instance->LineNumber = cmock_line;
    cmock_call_instance->ReturnVal = cmock_to_return;
    Mock.rkh_bittbl_getBitMask_IgnoreBool = (int)1;
  }
  
  void rkh_bittbl_getBitMask_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, rui8_t bitPos, rui8_t cmock_to_return)
  {
    CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE));
    CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE* cmock_call_instance = (CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index);
    UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory);
    memset(cmock_call_instance, 0, sizeof(*cmock_call_instance));
    Mock.rkh_bittbl_getBitMask_CallInstance = CMock_Guts_MemChain(Mock.rkh_bittbl_getBitMask_CallInstance, cmock_guts_index);
    Mock.rkh_bittbl_getBitMask_IgnoreBool = (int)0;
    cmock_call_instance->LineNumber = cmock_line;
    CMockExpectParameters_rkh_bittbl_getBitMask(cmock_call_instance, bitPos);
    memcpy(&cmock_call_instance->ReturnVal, &cmock_to_return, sizeof(rui8_t));
    UNITY_CLR_DETAILS();
  }
  
  void rkh_bittbl_getBitMask_StubWithCallback(CMOCK_rkh_bittbl_getBitMask_CALLBACK Callback)
  {
    Mock.rkh_bittbl_getBitMask_IgnoreBool = (int)0;
    Mock.rkh_bittbl_getBitMask_CallbackFunctionPointer = Callback;
  }
  
  void rkh_bittbl_getBitMask_CMockIgnoreArg_bitPos(UNITY_LINE_TYPE cmock_line)
  {
    CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE* cmock_call_instance = (CMOCK_rkh_bittbl_getBitMask_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.rkh_bittbl_getBitMask_CallInstance));
    UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp);
    cmock_call_instance->IgnoreArg_bitPos = 1;
  }
  
  rui8_t rkh_bittbl_getLeastBitSetPos(rui8_t value)
  {
    UNITY_LINE_TYPE cmock_line = TEST_LINE_NUM;
    CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE* cmock_call_instance;
    UNITY_SET_DETAIL(CMockString_rkh_bittbl_getLeastBitSetPos);
    cmock_call_instance = (CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE*)CMock_Guts_GetAddressFor(Mock.rkh_bittbl_getLeastBitSetPos_CallInstance);
    Mock.rkh_bittbl_getLeastBitSetPos_CallInstance = CMock_Guts_MemNext(Mock.rkh_bittbl_getLeastBitSetPos_CallInstance);
    if (Mock.rkh_bittbl_getLeastBitSetPos_IgnoreBool)
    {
      UNITY_CLR_DETAILS();
      if (cmock_call_instance == NULL)
        return Mock.rkh_bittbl_getLeastBitSetPos_FinalReturn;
      memcpy(&Mock.rkh_bittbl_getLeastBitSetPos_FinalReturn, &cmock_call_instance->ReturnVal, sizeof(rui8_t));
      return cmock_call_instance->ReturnVal;
    }
    UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringCalledMore);
    cmock_line = cmock_call_instance->LineNumber;
    if (!cmock_call_instance->IgnoreArg_value)
    {
      UNITY_SET_DETAILS(CMockString_rkh_bittbl_getLeastBitSetPos,CMockString_value);
      UNITY_TEST_ASSERT_EQUAL_MEMORY((void*)(&cmock_call_instance->Expected_value), (void*)(&value), sizeof(rui8_t), cmock_line, CMockStringMismatch);
    }
    if (Mock.rkh_bittbl_getLeastBitSetPos_CallbackFunctionPointer != NULL)
    {
      cmock_call_instance->ReturnVal = Mock.rkh_bittbl_getLeastBitSetPos_CallbackFunctionPointer(value, Mock.rkh_bittbl_getLeastBitSetPos_CallbackCalls++);
    }
    UNITY_CLR_DETAILS();
    return cmock_call_instance->ReturnVal;
  }
  
  void CMockExpectParameters_rkh_bittbl_getLeastBitSetPos(CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE* cmock_call_instance, rui8_t value)
  {
    memcpy(&cmock_call_instance->Expected_value, &value, sizeof(rui8_t));
    cmock_call_instance->IgnoreArg_value = 0;
  }
  
  void rkh_bittbl_getLeastBitSetPos_CMockIgnoreAndReturn(UNITY_LINE_TYPE cmock_line, rui8_t cmock_to_return)
  {
    CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE));
    CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE* cmock_call_instance = (CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index);
    UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory);
    memset(cmock_call_instance, 0, sizeof(*cmock_call_instance));
    Mock.rkh_bittbl_getLeastBitSetPos_CallInstance = CMock_Guts_MemChain(Mock.rkh_bittbl_getLeastBitSetPos_CallInstance, cmock_guts_index);
    Mock.rkh_bittbl_getLeastBitSetPos_IgnoreBool = (int)0;
    cmock_call_instance->LineNumber = cmock_line;
    cmock_call_instance->ReturnVal = cmock_to_return;
    Mock.rkh_bittbl_getLeastBitSetPos_IgnoreBool = (int)1;
  }
  
  void rkh_bittbl_getLeastBitSetPos_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, rui8_t value, rui8_t cmock_to_return)
  {
    CMOCK_MEM_INDEX_TYPE cmock_guts_index = CMock_Guts_MemNew(sizeof(CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE));
    CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE* cmock_call_instance = (CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE*)CMock_Guts_GetAddressFor(cmock_guts_index);
    UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringOutOfMemory);
    memset(cmock_call_instance, 0, sizeof(*cmock_call_instance));
    Mock.rkh_bittbl_getLeastBitSetPos_CallInstance = CMock_Guts_MemChain(Mock.rkh_bittbl_getLeastBitSetPos_CallInstance, cmock_guts_index);
    Mock.rkh_bittbl_getLeastBitSetPos_IgnoreBool = (int)0;
    cmock_call_instance->LineNumber = cmock_line;
    CMockExpectParameters_rkh_bittbl_getLeastBitSetPos(cmock_call_instance, value);
    memcpy(&cmock_call_instance->ReturnVal, &cmock_to_return, sizeof(rui8_t));
    UNITY_CLR_DETAILS();
  }
  
  void rkh_bittbl_getLeastBitSetPos_StubWithCallback(CMOCK_rkh_bittbl_getLeastBitSetPos_CALLBACK Callback)
  {
    Mock.rkh_bittbl_getLeastBitSetPos_IgnoreBool = (int)0;
    Mock.rkh_bittbl_getLeastBitSetPos_CallbackFunctionPointer = Callback;
  }
  
  void rkh_bittbl_getLeastBitSetPos_CMockIgnoreArg_value(UNITY_LINE_TYPE cmock_line)
  {
    CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE* cmock_call_instance = (CMOCK_rkh_bittbl_getLeastBitSetPos_CALL_INSTANCE*)CMock_Guts_GetAddressFor(CMock_Guts_MemEndOfChain(Mock.rkh_bittbl_getLeastBitSetPos_CallInstance));
    UNITY_TEST_ASSERT_NOT_NULL(cmock_call_instance, cmock_line, CMockStringIgnPreExp);
    cmock_call_instance->IgnoreArg_value = 1;
  }
  
  