`deepcopy(::Module)` and mocking for tests

Great work! This answers a question that I’ve been struggling with for a few days now: how to modify a CodeInfo object and turn it into a new function. Your code shows exactly how to do this.

Would you mind putting this under an open-source license, so that I can borrow a few lines from your code?

2 Likes