lib/HTTP/OAI/ListSets.pm

filter: Statementstmt 37.5% 6 / 16 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 25.0% 1 / 4 Podpod 100% 3 / 3 totaltotal 27.0% 10 / 37 CC 5 SCAR 22.4
CC
5
Cov
23%
start_element
12.0
end_element
12.0
set
2.0
CRAP 9.4
« lib/HTTP/OAI/Response.pm ↑ Summary lib/HTTP/OAI/Debug.pm »
1 package HTTP::OAI::ListSets;
2  
3 11 @ISA = qw( HTTP::OAI::PartialList );
4  
5 11 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 11 our $VERSION = '4.13';
8  
9 0 ▶sub set { shift->item(@_) }
Subroutine set: not called CC=1 SCAR=6.9
Pod documented
10  
11 sub start_element
12 0 ▶{
Subroutine start_element: not called CC=3 SCAR=24.8
Pod documented
13 0 my ($self,$hash, $r) = @_;
14  
15 0 ▶ if( $hash->{Depth} == 3 && $hash->{LocalName} eq "set" )
Branch: 1 branch
BranchTrueFalseTotal
if ($hash->{"Depth"} == 3 and $hash->{"LocalName"} eq "set") 0 0 0
Condition0%0/3
$hash->{"Depth"} == 3 and $hash->{"LocalName"} eq "set"
!ll&&!rl&&r
000
MC/DC0%0/2
$hash->{"Depth"} == 3 and $hash->{"LocalName"} eq "set"
$hash->{"Depth"} == 3 $hash->{"LocalName"} eq "set"
Truth table0%0/3
A and B
A= $hash->{"Depth"} == 3B= $hash->{"LocalName"} eq "set"
ABresult
0X0
100
111
16 {
17 0 $self->set_handler(HTTP::OAI::Set->new);
18 }
19  
20 0 $self->SUPER::start_element($hash, $r);
21 }
22  
23 sub end_element
24 0 ▶{
Subroutine end_element: not called CC=3 SCAR=24.8
Pod documented
25 0 my ($self,$hash, $r) = @_;
26  
27 0 $self->SUPER::end_element($hash, $r);
28  
29 0 ▶ if( $hash->{Depth} == 3 && $hash->{LocalName} eq "set" )
Branch: 1 branch
BranchTrueFalseTotal
if ($hash->{"Depth"} == 3 and $hash->{"LocalName"} eq "set") 0 0 0
Condition0%0/3
$hash->{"Depth"} == 3 and $hash->{"LocalName"} eq "set"
!ll&&!rl&&r
000
MC/DC0%0/2
$hash->{"Depth"} == 3 and $hash->{"LocalName"} eq "set"
$hash->{"Depth"} == 3 $hash->{"LocalName"} eq "set"
Truth table0%0/3
A and B
A= $hash->{"Depth"} == 3B= $hash->{"LocalName"} eq "set"
ABresult
0X0
100
111
30 {
31 0 $r->callback( $self->get_handler, $self );
32 0 $self->set_handler( undef );
33 }
34 }
35  
36 11 1;
37  
38 __END__
« lib/HTTP/OAI/Response.pm ↑ Summary lib/HTTP/OAI/Debug.pm »