umock-c icon indicating copy to clipboard operation
umock-c copied to clipboard

umock_c should have a way to inspect calls made.

Open anporumb opened this issue 7 years ago • 1 comments

Assume there's 2 modules, A and B. A calls B's B_do_something_async providing some callback and context.

In real world, B would call back.

In tests, there's no (easy) way to make the callback.

umock_c needs to improve on that.

Best Regards, Andrei Porumb

anporumb avatar Mar 30 '18 18:03 anporumb

As a suggestion, umock_c should make (at runtime) the whole expected/actual calls harvestable in some way, then the user could decide: "let's take this callback from umock_c and invoke it ourselves, as if the callback would have happened".

Also see #24

Best Regards, Andrei Porumb

anporumb avatar Mar 30 '18 19:03 anporumb