Skip to content

Add Unique ID to all mock handlers? #184

Open
@jakerella

Description

@jakerella

I'm wondering if we should assign a proper ID to each mock handler. Currently this is just the index in the array of handlers, but that seems fragile. Having proper IDs would still allow clearing individual requests or all handlers, but would eliminate the possibility of the calling code holding onto that index past when it should, then trying to use it and clearing a mock handler that it did not intend to.

Any thoughts @dcneiner or @jcreamer898 (or anyone else)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions