+
Skip to content

Promote meck_history:result to meck API...? #249

@rogerl-happening

Description

@rogerl-happening

I was looking for a way to grab the result of a mocked call. Currently, I'm just peeking into meck:history().

So I went to implement something like meck:capture(..., result), when I noticed that meck_history:result() exists. It was added in #163.

But it was demoted from the top-level meck API. I think this was a mistake -- it ought to be at the same level of abstraction as meck:capture.

Can we put it back? Or can we make meck:capture take ArgNum | result...?

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载