Data/IO.pm

filter: Statementstmt 72.7% 16 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod n/a totaltotal 72.4% 21 / 29 CC 1 SCAR 2.5
CC
1
Cov
73%
_read_yaml
2.0
_read_perl
2.0
BEGIN
1.0
CRAP 1.3
« Template/Process.pm ↑ Summary
1  
2 package Data::IO;
3  
4 3 ▶use 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 our $VERSION = '0.0006';
9  
10 3 ▶use YAML qw(LoadFile);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 ▶use base qw(Class::Accessor);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 0 ▶sub _read_yaml {
Subroutine _read_yaml: not called CC=1 SCAR=6.9
15 0 shift;
16 0 my $yml = shift;
17 0 return LoadFile $yml; # XXX error handling ?!
18 }
19  
20 0 ▶sub _read_perl {
Subroutine _read_perl: not called CC=1 SCAR=6.9
21 0 shift;
22 0 my $pl = shift;
23 0 return do $pl; # XXX error handling ?!
24 }
25  
26  
27 3 1;
« Template/Process.pm ↑ Summary