This is confusing, at least the first example the author is still passing a mock function, just not a mock object.
What distinguishes “a mock function” from just “a function” when you do this?
Same thing that distinguishes “a mock object” from just “an object”.
I don’t know what that is.
You don’t know what a mock is?
This is confusing, at least the first example the author is still passing a mock function, just not a mock object.
What distinguishes “a mock function” from just “a function” when you do this?
Same thing that distinguishes “a mock object” from just “an object”.
I don’t know what that is.
You don’t know what a mock is?