Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Closed
eproxus opened this Issue May 5, 2010 · 1 comment

Comments

Projects
None yet
1 participant
Owner

eproxus commented May 5, 2010

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

@eproxus eproxus modified the milestones: 1.0, 2.0+ Nov 21, 2016

Owner

eproxus commented Nov 21, 2016

Closing and documenting in the wiki instead: https://github.com/eproxus/meck/wiki#feature-ideas

Please comment here if you have information or requests to add, and/or want to discuss a PR or possible implementation proposal.

@eproxus eproxus closed this Nov 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment