Bio/Tools/Primer/Assessor/Base.pm

filter: Statementstmt 29.4% 5 / 17 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 1 / 3 Podpod 50.0% 1 / 2 totaltotal 26.9% 7 / 26 CC 3 SCAR 16.1
CC
3
Cov
24%
new
6.0
weight
6.0
BEGIN
1.0
CRAP 5.0
« Bio/Tools/AmpliconSearch.pm ↑ Summary Bio/Ontology/OntologyEngineI.pm »
1 #
2 # BioPerl module for Bio::Tools::Primer::Assessor::Base
3 #
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
5 #
6 # Cared for by Ewan Birney <birney@ebi.ac.uk>
7 #
8 # Copyright Ewan Birney
9 #
10 # You may distribute this module under the same terms as perl itself
11  
12 # POD documentation - main docs before the code
13  
14 =head1 NAME
15  
16 Bio::Tools::Primer::Assessor::Base - base class for common assessor things
17  
18 =head1 SYNOPSIS
19  
20 use Bio::Tools::Primer::Assessor::Base
21  
22 $base->weight(10);
23  
24 =head1 DESCRIPTION
25  
26 Base class for assessors, probably only defining the weight function
27  
28 =head1 FEEDBACK
29  
30 =head2 Mailing Lists
31  
32 User feedback is an integral part of the evolution of this and other
33 Bioperl modules. Send your comments and suggestions preferably to
34 the Bioperl mailing list. Your participation is much appreciated.
35  
36 bioperl-l@bioperl.org - General discussion
37 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
38  
39 =head2 Support
40  
41 Please direct usage questions or support issues to the mailing list:
42  
43 I<bioperl-l@bioperl.org>
44  
45 rather than to the module maintainer directly. Many experienced and
46 reponsive experts will be able look at the problem and quickly
47 address it. Please include a thorough description of the problem
48 with code and data examples if at all possible.
49  
50 =head2 Reporting Bugs
51  
52 Report bugs to the Bioperl bug tracking system to help us keep track
53 of the bugs and their resolution. Bug reports can be submitted via the
54 web:
55  
56 https://github.com/bioperl/bioperl-live/issues
57  
58 =head1 AUTHOR - Ewan Birney
59  
60 Email birney-at-ebi.ac.uk
61  
62 =head1 APPENDIX
63  
64 The rest of the documentation details each of the object methods.
65 Internal methods are usually preceded with a _
66  
67 =cut
68  
69  
70 # Let the code begin...
71  
72  
73  
74  
75 package Bio::Tools::Primer::Assessor::Base;
76 1 $Bio::Tools::Primer::Assessor::Base::VERSION = '1.7.8';
77 1 ▶use base qw(Bio::Root::Root);
Subroutine BEGIN: called CC=1 SCAR=0.0
78  
79 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
80 0 my ( $caller, @args) = @_;
81 0 my ($self) = $caller->SUPER::new(@args);
82  
83 0 my ($weight) = $self->_rearrange([qw(WEIGHT)],@args);
84  
85 0 ▶ if( !defined $weight ) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $weight) 0 0 0
86 0 $weight = 10;
87 }
88  
89 0 $self->weight($weight);
90  
91 # done - we hope
92 0 return $self;
93 }
94  
95 0 ▶sub weight {
Subroutine weight: not called CC=2 SCAR=17.9
Pod undocumented
96 0 my $self = shift;
97 0 my $weight = shift;
98  
99 0 ▶ if( defined $weight ) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $weight) 0 0 0
100 0 $self->{'weight'} = $weight;
101 }
102  
103 0 return $self->{'weight'};
104 }
105  
106 1 1;
« Bio/Tools/AmpliconSearch.pm ↑ Summary Bio/Ontology/OntologyEngineI.pm »