Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Return values of type 'Generator' must be explicitly specified. #138

Description

@jmalloc

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 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions