Closed
Description
It should be possible to mock a module only from the perspective of another specific module. This would allow mocking the file
module for example, which is not possible due to its use from the code module (resulting in a crash when replacing the module).
Implementation Proposal
Instead of replacing and compiling the mock module globally, a mocked module is created with another name than the original. Then all calls to the original module in the module under test is replaced with calls to the new mocked module.