| 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
Condition0%0/3
$hash->{"Depth"} == 3 and $hash->{"LocalName"} eq "set"
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"
| |||||||||||||||||||||||||||||
| 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
Condition0%0/3
$hash->{"Depth"} == 3 and $hash->{"LocalName"} eq "set"
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"
| |||||||||||||||||||||||||||||
| 30 | { | ||||||||||||||||||||||||||||
| 31 | 0 | $r->callback( $self->get_handler, $self ); | |||||||||||||||||||||||||||
| 32 | 0 | $self->set_handler( undef ); | |||||||||||||||||||||||||||
| 33 | } | ||||||||||||||||||||||||||||
| 34 | } | ||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||
| 36 | 11 | 1; | |||||||||||||||||||||||||||
| 37 | |||||||||||||||||||||||||||||
| 38 | __END__ | ||||||||||||||||||||||||||||