Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is a comment in the readme that mentions that
mock
is a hack for some reasons, and points to this issue advancedtelematic#236 in which one might get the impression thatmock
is actually not used in the library and one can just mock whatever answers if they don't use symbolic references.I got the understanding that as I don't use references yet, I could just define the following:
But this catastrophically fails on the
transition
function if you don't expect that response for every command. I have the suspicion that didn't happen in the linked issue because the system didn't have to shrink as the test succeeded. Once you try to shrink, you would get incomprehensible pairings ofcmd
andresp
(unless one realizes thatmock
is actually used!!).The understanding I had was wrong, as there are indeed some uses of
mock
that require you to actually implementmock
. I hope these changes in the README might give some hints to the reader to avoid future misunderstandings.