| 1 | package Local::PkgSkip; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | # A file with a package statement is analyzed directly (not wrapped). This one | ||
| 7 | # opts out at compile time: "plan skip_all" calls exit() while Test::Vars | ||
| 8 | # requires the file, so its forked child dies before writing its pipe and the | ||
| 9 | # parent would die thawing an empty Storable string. perlvars must skip it | ||
| 10 | # cleanly. (It lives under lib/ with a matching package name so Test::Vars can | ||
| 11 | # actually load it -- otherwise the require is skipped before the exit fires.) | ||
| 12 | 2 | ▶ | use Test::More; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 2 | ▶ | BEGIN { plan skip_all => 'this file opts out at compile time' } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | sub run { | ||
| 17 | my $never_reached = 1; | ||
| 18 | return; | ||
| 19 | } | ||
| 20 | |||
| 21 | 1; | ||