| 1 |
Source: libgoto-file-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: Mason James <[email protected]> |
| 4 |
Section: perl |
| 5 |
Testsuite: autopkgtest-pkg-perl |
| 6 |
Priority: optional |
| 7 |
Build-Depends: debhelper-compat (= 13) |
| 8 |
Build-Depends-Indep: libfilter-perl <!nocheck>, |
| 9 |
libtest-simple-perl <!nocheck>, |
| 10 |
libtest2-suite-perl <!nocheck>, |
| 11 |
perl |
| 12 |
Standards-Version: 4.6.2 |
| 13 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libgoto-file-perl |
| 14 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libgoto-file-perl.git |
| 15 |
Homepage: https://metacpan.org/release/goto-file |
| 16 |
Rules-Requires-Root: no |
| 17 |
|
| 18 |
Package: libgoto-file-perl |
| 19 |
Architecture: all |
| 20 |
Depends: ${misc:Depends}, |
| 21 |
${perl:Depends}, |
| 22 |
libfilter-perl |
| 23 |
Description: Perl module that allows swapping the currently compiling file for a new one |
| 24 |
goto::file allows Test2::Harness to swap out the main script for the new |
| 25 |
file without adding a stack frame. |
| 26 |
. |
| 27 |
It is rare, but there are times where you want to swap out the currently |
| 28 |
compiling file for a different one. This module does that. From the point |
| 29 |
you 'use' the module perl will be parsing the new file instead of the |
| 30 |
original. |
| 31 |
. |
| 32 |
This module was created specifically for Test2::Harness which can preload |
| 33 |
modules and fork to run each test. The problem was that using 'do' to execute |
| 34 |
the test files post-fork was resuling in extra frames in the stack trace... |
| 35 |
in other words there are a lot of tests that assume the test file is the |
| 36 |
bottom of the stack. This happens all the time, specially if stack traces |
| 37 |
need to be verified. |