Skip to content

Expectations #23

@drekka

Description

@drekka

Was recently asked about applying expectations to registered APIs. Figure it should not be hard to do so. Am thinking of using a wrapper with counts calls along with some functions on Endpoint to set them up. So something like:

HTTPEndpoint("/hello").expect(.times(3))
HTTPEndpoint("/hello").expect(.atLeastOnce)
HTTPEndpoint("/hello").expect(.never)

Not sure about ordering. Will think on that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions