+
Skip to content

Mock a module only from the perspective of a specific caller (calling process) #3

@eproxus

Description

@eproxus

It should be possible to mock a module so that a set of processes sees the mocked module and all other processes sees the original module.

  • mock:new(mymod, [{restrict, pid()}]):
    • only the caller pid() would hit the mocked module
  • or even better, all pids belonging to a specific application
  • Would enable mocking of the inet, gen_tcp modules etc

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

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