| 1 | package Bio::Tools::EUtilities::HistoryI; | ||||||||||||||||||||||||||||
| 2 | BEGIN { | ||||||||||||||||||||||||||||
| 3 | 16 | ▶ | $Bio::Tools::EUtilities::HistoryI::AUTHORITY = 'cpan:BIOPERLML'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | } | ||||||||||||||||||||||||||||
| 5 | { | ||||||||||||||||||||||||||||
| 6 | 16 | $Bio::Tools::EUtilities::HistoryI::VERSION = '1.73'; | |||||||||||||||||||||||||||
| 7 | } | ||||||||||||||||||||||||||||
| 8 | 16 | ▶ | use utf8; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | 16 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 10 | 16 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 11 | 16 | ▶ | use base qw(Bio::Tools::EUtilities::EUtilDataI); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | # ABSTRACT: Simple extension of EUtilDataI interface class for classes which hold NCBI server history data. | ||||||||||||||||||||||||||||
| 14 | # AUTHOR: Chris Fields <cjfields@bioperl.org> | ||||||||||||||||||||||||||||
| 15 | # OWNER: 2006-2013 Chris Fields | ||||||||||||||||||||||||||||
| 16 | # LICENSE: Perl_5 | ||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||
| 20 | sub history { | ||||||||||||||||||||||||||||
| 21 | 2 | ▶ | my $self = shift; | ||||||||||||||||||||||||||
|
Subroutine
history: called CC=6 SCAR=27.1
Pod
documented
| |||||||||||||||||||||||||||||
| 22 | 2 | ▶ | $self->parse_data if ($self->can('parse_data') && !$self->data_parsed); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$self->can("parse_data") and not $self->data_parsed
MC/DC0%0/2
$self->can("parse_data") and not $self->data_parsed
$self->can("parse_data")
not $self->data_parsed
Truth table33%1/3
A and not(B)
A= $self->can("parse_data")B= not $self->data_parsed
| |||||||||||||||||||||||||||||
| 23 | 2 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 24 | 0 | my ($webenv, $querykey) = (shift, shift); | |||||||||||||||||||||||||||
| 25 | 0 | ▶ | $self->throw("Missing part of cookie!") if (!$webenv || !$querykey); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$webenv and $querykey
MC/DC0%0/2
$webenv and $querykey
$webenv
$querykey
Truth table0%0/3
A and B
A= $webenvB= $querykey
| |||||||||||||||||||||||||||||
| 26 | 0 | ($self->{'_webenv'}, $self->{'_querykey'}) = ($webenv, $querykey); | |||||||||||||||||||||||||||
| 27 | } | ||||||||||||||||||||||||||||
| 28 | 2 | return ($self->get_webenv, $self->get_query_key); | |||||||||||||||||||||||||||
| 29 | } | ||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||
| 32 | sub get_webenv { | ||||||||||||||||||||||||||||
| 33 | 28 | ▶ | my $self = shift; | ||||||||||||||||||||||||||
|
Subroutine
get_webenv: called CC=3 SCAR=12.5
Pod
documented
| |||||||||||||||||||||||||||||
| 34 | 28 | ▶ | $self->parse_data if ($self->can('parse_data') && !$self->data_parsed); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$self->can("parse_data") and not $self->data_parsed
MC/DC0%0/2
$self->can("parse_data") and not $self->data_parsed
$self->can("parse_data")
not $self->data_parsed
Truth table33%1/3
A and not(B)
A= $self->can("parse_data")B= not $self->data_parsed
| |||||||||||||||||||||||||||||
| 35 | 28 | return $self->{'_webenv'}; | |||||||||||||||||||||||||||
| 36 | } | ||||||||||||||||||||||||||||
| 37 | |||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||
| 39 | sub get_query_key { | ||||||||||||||||||||||||||||
| 40 | 27 | ▶ | my $self = shift; | ||||||||||||||||||||||||||
|
Subroutine
get_query_key: called CC=3 SCAR=12.5
Pod
documented
| |||||||||||||||||||||||||||||
| 41 | 27 | ▶ | $self->parse_data if ($self->can('parse_data') && !$self->data_parsed); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$self->can("parse_data") and not $self->data_parsed
MC/DC0%0/2
$self->can("parse_data") and not $self->data_parsed
$self->can("parse_data")
not $self->data_parsed
Truth table33%1/3
A and not(B)
A= $self->can("parse_data")B= not $self->data_parsed
| |||||||||||||||||||||||||||||
| 42 | 27 | return $self->{'_querykey'}; | |||||||||||||||||||||||||||
| 43 | } | ||||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||
| 45 | 16 | 1; | |||||||||||||||||||||||||||
| 46 | |||||||||||||||||||||||||||||
| 47 | __END__ | ||||||||||||||||||||||||||||