Simple/Methody.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond 100% 6 / 6 MC/DCmcdc 100% 3 / 3 Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 32 / 32 CC 4 SCAR 5.1
CC
4
Cov
100%
_handle_element_start
2.0
_handle_text
2.0
_handle_element_end
2.0
CRAP 1.7
« Simple/TranscodeSmart.pm ↑ Summary Simple/PullParserTextToken.pm »
1 package Pod::Simple::Methody;
2 22 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 22 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 22 ▶use Pod::Simple ();
Subroutine BEGIN: called CC=1 SCAR=0.0
5 22 our $VERSION = '3.48';
6 22 our @ISA = ('Pod::Simple');
7  
8 # Yes, we could use named variables, but I want this to be impose
9 # as little an additional performance hit as possible.
10  
11 4933 ▶sub _handle_element_start {
Subroutine _handle_element_start: called CC=2 SCAR=6.9
12 4933 $_[1] =~ tr/-:./__/;
13 4933 ▶ ( $_[0]->can( 'start_' . $_[1] )
Condition100%2/2
$_[0]->can('start_' . $_[1]) || (return)
l!l
32651668
MC/DC100%1/1
$_[0]->can('start_' . $_[1]) || (return)
$_[0]->can('start_' . $_[1])
Truth table100%2/2
A
A= $_[0]->can('start_' . $_[1])
Aresult
11
00
14 || return
15 )->(
16 $_[0], $_[2]
17 );
18 }
19  
20 6077 ▶sub _handle_text {
Subroutine _handle_text: called CC=2 SCAR=6.9
21 6077 ▶ ( $_[0]->can( 'handle_text' )
Condition100%2/2
$_[0]->can('handle_text') || (return)
l!l
606017
MC/DC100%1/1
$_[0]->can('handle_text') || (return)
$_[0]->can('handle_text')
Truth table100%2/2
A
A= $_[0]->can('handle_text')
Aresult
11
00
22 || return
23 )->(
24 @_
25 );
26 }
27  
28 4933 ▶sub _handle_element_end {
Subroutine _handle_element_end: called CC=2 SCAR=6.9
29 4933 $_[1] =~ tr/-:./__/;
30 4933 ▶ ( $_[0]->can( 'end_' . $_[1] )
Condition100%2/2
$_[0]->can('end_' . $_[1]) || (return)
l!l
38651068
MC/DC100%1/1
$_[0]->can('end_' . $_[1]) || (return)
$_[0]->can('end_' . $_[1])
Truth table100%2/2
A
A= $_[0]->can('end_' . $_[1])
Aresult
11
00
31 || return
32 )->(
33 $_[0], $_[2]
34 );
35 }
36  
37 22 1;
38  
39  
40 __END__
« Simple/TranscodeSmart.pm ↑ Summary Simple/PullParserTextToken.pm »