Tools/EUtilities/EUtilDataI.pm

filter: Statementstmt 85.2% 29 / 34 Branchbran 83.3% 5 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 63.6% 7 / 11 Podpod 100% 4 / 4 totaltotal 81.8% 45 / 55 CC 4 SCAR 6.2
CC
4
Cov
85%
eutil
3.0
datatype
2.0
rewind
2.0
CRAP 1.9
« Tools/EUtilities/Info/FieldInfo.pm ↑ Summary Tools/EUtilities/Query/GlobalQuery.pm »
1 package Bio::Tools::EUtilities::EUtilDataI;
2 30 our $AUTHORITY = 'cpan:BIOPERLML';
3 30 $Bio::Tools::EUtilities::EUtilDataI::VERSION = '1.74';
4 30 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 30 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 30 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 30 ▶use base qw(Bio::Root::RootI);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 30 ▶use Text::Wrap qw(wrap);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 # ABSTRACT: EUtil data object interface.
11 # AUTHOR: Chris Fields <cjfields@bioperl.org>
12 # OWNER: 2006-2013 Chris Fields
13 # LICENSE: Perl_5
14  
15  
16  
17 {
18 30 my %VALID_EUTILS = map {$_ => 1} qw(esearch epost espell egquery elink einfo esummary);
19  
20 sub eutil {
21 665 ▶ my ($self, $eutil) = @_;
Subroutine eutil: called CC=3 SCAR=11.0
Pod documented
22 665 ▶ if ($eutil) {
Branch: 1 branch
BranchTrueFalseTotal
if ($eutil) 479 186 665
23 479 ▶ $self->throw("$eutil not supported") if !exists $VALID_EUTILS{$eutil};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $VALID_EUTILS{$eutil} 0 479 479
24 479 return $self->{'_eutil'} = $eutil;
25 }
26 186 return $self->{'_eutil'};
27 }
28  
29 }
30  
31  
32 30 sub datatype {
33 568 ▶ my $self = shift;
Subroutine datatype: called CC=2 SCAR=6.9
Pod documented
34 568 ▶ return $self->{'_type'} = shift if @_;
Branch: 1 branch
BranchTrueFalseTotal
if @_ 484 84 568
35 84 return $self->{'_type'};
36 }
37  
38  
39 sub rewind {
40 0 ▶ shift->warn("Object may not need an iterator. Please check the documentation.");
Subroutine rewind: not called CC=1 SCAR=6.9
Pod documented
41 }
42  
43  
44 sub _add_data {
45 0 ▶ shift->throw_not_implemented;
Subroutine _add_data: not called CC=1 SCAR=6.9
46 }
47  
48  
49 sub to_string {
50 0 ▶ shift->throw_not_implemented;
Subroutine to_string: not called CC=1 SCAR=6.9
Pod documented
51 }
52  
53  
54 sub _text_wrap {
55 0 ▶ shift;
Subroutine _text_wrap: not called CC=1 SCAR=6.9
56 0 return wrap(@_);
57 }
58  
59 30 1;
60  
61 __END__
« Tools/EUtilities/Info/FieldInfo.pm ↑ Summary Tools/EUtilities/Query/GlobalQuery.pm »