You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's true. The interface of IsEqual is not made to handle this situation.
Could you tell me how exactly you would compare void pointers? The only immediate option I see is to check if both point to the same address.
If you have a rough idea what type of data these pointers refer to, then I recommend using a wrapper struct which contains the data and can be handled by our framework.
I am working with embedded software and those void pointers are related to transfer buffers. Like UART_write(int fd, const void * data, int len);
I would do void pointer comparison so that unit test writer can decide if just compare if same address or maybe UT writer can give lambda function for testing equality of void pointers.
If I studied correctly then the following code have problems to be mocked.
class A
{
void * b(void * a, const void *b);
}
ISEQUAL template cannot compare void poiters.
The text was updated successfully, but these errors were encountered: