blib/lib/Bio/Gonzales/Role/BioPerl/Constructor.pm

filter: Statementstmt 100% 26 / 26 Branchbran 66.6% 4 / 6 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 90.2% 37 / 41 CC 5 SCAR 11.2
CC
5
Cov
91%
__ANON__
5.1
BEGIN
1.0
BEGIN
1.0
CRAP 3.1
« blib/lib/Bio/Gonzales/Tools/SeqMask.pm ↑ Summary blib/lib/Bio/Gonzales/PrimarySeqIX.pm »
1 #Copyright (c) 2010 Joachim Bargsten <code at bargsten dot org>. All rights reserved.
2  
3 package Bio::Gonzales::Role::BioPerl::Constructor;
4  
5 1 ▶use Mouse::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 our $VERSION = '0.062'; # VERSION
13  
14 around BUILDARGS => sub {
15 6 ▶ my $orig = shift;
Subroutine __ANON__: called CC=5 SCAR=16.4
16 6 my $class = shift;
17  
18 6 ▶ return $class->$orig(@_) unless ( substr( $_[0] || '', 0, 1 ) eq '-' );
Branch: 1 branch
BranchTrueFalseTotal
unless substr($_[0] || "", 0, 1) eq "-" 0 6 6
Condition50%1/2
$_[0] || ''
l!l
60
MC/DC0%0/1
$_[0] || ''
$_[0]
Truth table50%1/2
A
A= $_[0]
Aresult
11
00
19 6 ▶ push @_, undef unless $#_ % 2;
Branch: 1 branch
BranchTrueFalseTotal
unless $#_ % 2 0 6 6
20  
21 6 my %param;
22 6 ▶ while (@_) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_) 6 6 12
23 6 ( my $key = shift ) =~ tr/A-Z\055/a-z/d; #deletes all dashes!
24 6 $param{$key} = shift;
25 }
26  
27 6 return $class->$orig(%param);
28 1 };
29  
30 1 1;
« blib/lib/Bio/Gonzales/Tools/SeqMask.pm ↑ Summary blib/lib/Bio/Gonzales/PrimarySeqIX.pm »