[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1029517: ITP: libgoto-file-perl -- Perl module that allows swapping the currently compiling file for a new one



Package: wnpp
Owner: Mason James <mtj@kohaaloha.com>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org, debian-perl@lists.debian.org

* Package name    : libgoto-file-perl
  Version         : 0.005
  Upstream Author : Chad Granum <exodist@cpan.org>
* URL             : https://metacpan.org/release/goto-file
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : Perl module that allows swapping the currently compiling file for a new one

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.

The package will be maintained under the umbrella of the Debian Perl Group.

--
Generated with the help of dpt-gen-itp(1) from pkg-perl-tools.


Reply to: