Cow/Frogs.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 4 / 4 Podpod 100% 2 / 2 totaltotal 85.1% 23 / 27 CC 2 SCAR 3.5
CC
2
Cov
89%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Cow/TuxStab.pm ↑ Summary
1 package Acme::Cow::Frogs;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use Acme::Cow;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 @Acme::Cow::Frogs::ISA = qw(Acme::Cow);
8  
9 1 my $frogs = <<'EOC';
10 {$balloon}
11 {$tr}
12 {$tr}
13 oO)-. .-(Oo
14 /__ _\ /_ __\
15 \ \( | ()~() | )/ /
16 \__|\ | (-___-) | /|__/
17 ' '--' ==`-'== '--' '
18 EOC
19  
20 sub new
21 {
22 1 ▶ my $proto = shift;
Subroutine new: called CC=2 SCAR=7.2
Pod documented
23 1 ▶ my $class = ref $proto || $proto;
Condition33%1/3
ref $proto || $proto
l!l&&r!l&&!r
010
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
24 1 my $self = $class->SUPER::new();
25 1 $self->over(46);
26 1 return bless $self, $class;
27 }
28  
29 sub as_string
30 {
31 2 ▶ my $self = shift;
Subroutine as_string: called CC=1 SCAR=0.0
Pod documented
32 2 return $self->SUPER::as_string($frogs);
33 }
34  
35 1 1;
« Cow/TuxStab.pm ↑ Summary