test-data/scripts/lib/Local/PkgSkip.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« script/perlvars ↑ Summary
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;
« script/perlvars ↑ Summary