Skip to content

Mock a module only from the perspective of a specific module #34

Closed
@eproxus

Description

@eproxus

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions