blib/lib/EBook/EPUB/Check/Result.pm

filter: Statementstmt 53.8% 7 / 13 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 66.6% 2 / 3 totaltotal 47.8% 11 / 23 SCAR 9.6
CC
2
Cov
47%
is_valid
6.0
new
2.0
report
2.0
CRAP 2.6
« blib/lib/EBook/EPUB/Check.pm ↑ Summary _build/lib/MyBuilder.pm »
1 package EBook::EPUB::Check::Result;
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 sub new
7 {
8 0 ▶ my ($class, $out) = @_;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
9 0 bless { out => $out }, $class;
10 }
11  
12 0 ▶sub is_valid { ${ shift->{out} } =~ /No errors or warnings detected/i ? 1 : 0; }
Subroutine is_valid: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
${+(shift())->{'out'};} =~ /No errors or warnings detected/i ? : 0 0 0
13 0 ▶sub report { ${ shift->{out} }; }
Subroutine report: not called CC=1 SCAR=6.9
Pod documented
14  
15 2 1;
16  
17 __END__
« blib/lib/EBook/EPUB/Check.pm ↑ Summary _build/lib/MyBuilder.pm »