| 1 | 30 | ▶ | use Perlmazing; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | 15 | ▶ | sub main ($) { | ||||||||||||||||||||||||||
|
Subroutine
main: called CC=3 SCAR=11.0
| |||||||||||||||||||||||||||||
| 4 | 15 | my $x = shift(); | |||||||||||||||||||||||||||
| 5 | 15 | ▶ | return 0 unless (defined($x) and length($x)); | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
defined $x and length $x
MC/DC100%2/2
defined $x and length $x
defined $x
length $x
Truth table100%3/3
A and B
A= defined $xB= length $x
| |||||||||||||||||||||||||||||
| 6 | 9 | return 1; | |||||||||||||||||||||||||||
| 7 | } | ||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||