Skip to content

Feature request: create a spy! macro to provide a transparent mock but that can be asserted upon. #567

Description

@iddm

Similar to Java unit testing frameworks, it would have been nice to have a "spy" object that can be asserted upon: call counts with specific kind (or any) arguments, capturing arguments, and so on. Currently, we only have the mock! macro but then we will have to provide our own implementation. It would have been nice to have a spy! macro which, for example, would provide a "spying" implementation of a trait, based on some already existing implementation, which we would later just use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions