./test_my_function.c:31:test_my_function: "Memory Mismatch. Byte 1 Expected 0x20 Was 0xFE. Function function_to_be_mocked Argument param. Function called with unexpected argument value."
My expectation:
either structure values are compared correctly
or there is an easy way to let the user compare the values without too much overhead (stubs come with too much overhead)
_Expect does not work as expected when the parameter is a non-packed structure
Minimum reproducible example here:
test_header.h
test.h
test.c
test_my_function.c
output:
./test_my_function.c:31:test_my_function: "Memory Mismatch. Byte 1 Expected 0x20 Was 0xFE. Function function_to_be_mocked Argument param. Function called with unexpected argument value."
My expectation: