libgoto-file-perl

Perl module that allows swapping the currently compiling file for a new one

Description

goto::file allows Test2::Harness to swap out the main script for the new file without adding a stack frame.

It is rare, but there are times where you want to swap out the currently compiling file for a different one. This module does that. From the point you 'use' the module perl will be parsing the new file instead of the original.

This module was created specifically for Test2::Harness which can preload modules and fork to run each test. The problem was that using 'do' to execute the test files post-fork was resuling in extra frames in the stack trace... in other words there are a lot of tests that assume the test file is the bottom of the stack. This happens all the time, specially if stack traces need to be verified.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/goto-file


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libgoto-file-perl