returning the actual value from the mock.
This commit is contained in:
parent
156dfb6e09
commit
b9e85d3719
|
@ -75,7 +75,7 @@ void RegEdit_SetNum(void *reg, uint8_t num)
|
||||||
|
|
||||||
uint8_t RegEdit_ReadReg(void *reg)
|
uint8_t RegEdit_ReadReg(void *reg)
|
||||||
{
|
{
|
||||||
mock_c()->actualCall("RegEdit_ReadReg")
|
return mock_c()->actualCall("RegEdit_ReadReg")
|
||||||
->withPointerParameters("reg", reg)
|
->withPointerParameters("reg", reg)
|
||||||
->returnUnsignedIntValueOrDefault(0);
|
->returnUnsignedIntValueOrDefault(0);
|
||||||
//Return value is mock controlled. So it does actually return a uint8_t
|
//Return value is mock controlled. So it does actually return a uint8_t
|
||||||
|
|
Loading…
Reference in New Issue