loader/Perl.pm

filter: Statementstmt 100% 25 / 25 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 2 totaltotal 91.6% 33 / 36 CC 2 SCAR 2.3
CC
2
Cov
96%
parse
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« loader/TOML.pm ↑ Summary lib.pm »
1 3 ▶use 5.008008;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package portable::loader::Perl;
6  
7 3 our $AUTHORITY = 'cpan:TOBYINK';
8 3 our $VERSION = '0.003';
9  
10 3 ▶use portable::lib;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 ▶use portable::loader;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 3 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
14 3 my $me = shift;
15 3 my ($loader) = @_;
16 3 $loader->register_extension('portable.pl');
17 3 return;
18 }
19  
20 2 ▶sub parse {
Subroutine parse: called CC=2 SCAR=7.0
Pod undocumented
21 2 my $me = shift;
22 2 my ($filename) = @_;
23 2 ▶ my $rv = do($filename) or die "Error loading $filename";
Branch: 1 branch
BranchTrueFalseTotal
my $rv = do $filename or die "Error loading $filename" 2 0 2
24 2 return ($filename => $rv);
25 }
26  
27 3 1;
28  
« loader/TOML.pm ↑ Summary lib.pm »