But one moment for better understanding.
?By ReturnThruPtr- function we inserting our pointer INTO the SOURCE CODE STRING we made ExpectAnyArgAndReturn-function for this? Or for NEXT CODE STRING
For example. We have into source code string
if(CommandHardware_CheckForMsg(&Msg)== STATUS_OK ){
For this code string we make in our test next fake :
CommandHardware_CheckForMsg_ExpectAnyArgsAndReturn( STATUS_OK ),
Its OK, we want to return STATUS_OK. After this we make
CommandHardware_CheckForMsg_ReturnThruPtr_msg( &msg ).
? The pointer msg is going to CommandHardware_CheckForMsg(&Msg) Msg- argument ? Or, for NEXT using of Msg into our source code
Thank you for your answer and with my respect,
Maxim
ב-יום חמישי, 31 במרץ 2022 בשעה 20:08:11 UTC+3, Maxim Skopin כתב/ה: