PAUSE.pm

filter: Statementstmt 95.0% 19 / 20 Branchbran 100% 2 / 2 Conditioncond 66.6% 6 / 9 MC/DCmcdc 25.0% 1 / 4 Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 82.9% 34 / 41 CC 6 SCAR 14.5
CC
6
Cov
87%
parse
6.5
BEGIN
1.0
BEGIN
1.0
CRAP 4.3
↑ Summary PAUSE/Plugin/UploadedFile.pm »
1 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Parse::PAUSE;
5 3 our $VERSION = '1.001';
6  
7  
8 3 ▶use Scalar::Util qw(blessed);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 3 ▶use Module::Pluggable require => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 ▶sub parse {
Subroutine parse: called CC=6 SCAR=18.7
Pod documented
12 2 my ($class, $content) = @_;
13  
14 2 for my $plugin ($class->plugins()) {
15 3 my $parsed_content_obj = $plugin->_process($content);
16  
17 3 ▶ if (
Branch: 1 branch
BranchTrueFalseTotal
if (defined $parsed_content_obj and ref $parsed_content_obj and builtin::blessed($parsed_content_obj) and $parsed_content_obj->does("Parse::PAUSE::Plugin")) 2 1 3
Condition66%6/9
defined $parsed_content_obj and ref $parsed_content_obj and builtin::blessed($parsed_content_obj) and $parsed_content_obj->does("Parse::PAUSE::Plugin")
!ll&&!rl&&r
102
defined $parsed_content_obj and ref $parsed_content_obj and builtin::blessed($parsed_content_obj)
!ll&&!rl&&r
102
defined $parsed_content_obj and ref $parsed_content_obj
!ll&&!rl&&r
102
MC/DC25%1/4
defined $parsed_content_obj and ref $parsed_content_obj and builtin::blessed($parsed_content_obj) and $parsed_content_obj->does("Parse::PAUSE::Plugin")
defined $parsed_content_obj ref $parsed_content_obj builtin::blessed($parsed_content_obj) $parsed_content_obj->does("Parse::PAUSE::Plugin")
Truth table40%2/5
A and B and C and D
A= defined $parsed_content_objB= ref $parsed_content_objC= builtin::blessed($parsed_content_obj)D= $parsed_content_obj->does("Parse::PAUSE::Plugin")
ABCDresult
0XXX0
10XX0
110X0
11100
11111
18 defined $parsed_content_obj and
19 ref $parsed_content_obj and
20 blessed $parsed_content_obj and
21 $parsed_content_obj->does('Parse::PAUSE::Plugin')
22 ) {
23 2 return $parsed_content_obj;
24 }
25 }
26  
27 0 return;
28 }
29  
30 3 1;
31  
32 __END__
↑ Summary PAUSE/Plugin/UploadedFile.pm »