test-lib/Car/Ford.pm

filter: Statementstmt 61.5% 8 / 13 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 28.5% 2 / 7 Podpod 0.0% 0 / 6 totaltotal 35.4% 11 / 31 CC 2 SCAR 6.5
CC
2
Cov
56%
new
2.1
openDoors
2.0
closeDoors
2.0
CRAP 1.9
« test-lib/Car/German.pm ↑ Summary test-lib/Car/Fiat.pm »
1 package Car::Ford;
2  
3 3 ▶use Class::Interface;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 implements qw(Car::Interface Car::Runnable);
5  
6 2 ▶sub new {
Subroutine new: called CC=2 SCAR=7.6
Pod undocumented
7 2 ▶ my $class = ref($_[0]) || $_[0]; shift;
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
020
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
8  
9 2 return bless( {}, $class );
10 }
11  
12 0 ▶sub openDoors { print "Doors open smoothly" }
Subroutine openDoors: not called CC=1 SCAR=6.9
Pod undocumented
13 0 ▶sub closeDoors { print "Doors close smoothly" }
Subroutine closeDoors: not called CC=1 SCAR=6.9
Pod undocumented
14 0 ▶sub start { print "*pruttel pruttel* vroem." }
Subroutine start: not called CC=1 SCAR=6.9
Pod undocumented
15 0 ▶sub run { print "Look... Moving fordward ;->"}
Subroutine run: not called CC=1 SCAR=6.9
Pod undocumented
16 0 ▶sub stop { print "*uch*" }
Subroutine stop: not called CC=1 SCAR=6.9
Pod undocumented
17  
18 3 1;
« test-lib/Car/German.pm ↑ Summary test-lib/Car/Fiat.pm »