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
If I remember correctly, this is about creating suitable default return values for stubs (?).
I've started using Phony 0.8 for testing recoil and recoil/amqp and this is quickly becoming annoying for largish interfaces where I'm mocking specific methods.
For my purposes it would be suitable if methods marked as returning any kind of traversable were to return an empty generator. For the purposes of coroutines this is equivalent to "return null", and I don't thing it would present problems for non-coroutine use of traversables/generators (we already do this for arrays).
Any thoughts? I'll submit a PR if you're happy for this to go ahead.
Hey man,
If I remember correctly, this is about creating suitable default return values for stubs (?).
I've started using Phony 0.8 for testing
recoilandrecoil/amqpand this is quickly becoming annoying for largish interfaces where I'm mocking specific methods.For my purposes it would be suitable if methods marked as returning any kind of traversable were to return an empty generator. For the purposes of coroutines this is equivalent to "return null", and I don't thing it would present problems for non-coroutine use of traversables/generators (we already do this for arrays).
Any thoughts? I'll submit a PR if you're happy for this to go ahead.