| 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]
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0]
$_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
| |||||||||||||||||||||
| 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; | |||||||||||||||||||