Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
Modify stub call parameters' values
Hello,
I have a stub function like this:
stub_func(uint8_t * data);
(this is an output parameter).
I need to modify the parameter in a unit test. I tried to set the value in this way:
uint8_t ptrData[] = {0x1, 0x0, 0x1, 0x4};
CPPTEST_ON_CALL("stub_func")->Arg("data")->Assign()->UCharRef(ptrData);
but I don't see the correct values in the stub.
0