Test_Progs/nested2c

filter: Statementstmt 22.9% 31 / 135 Branchbran 7.6% 6 / 78 Conditioncond 16.6% 3 / 18 MC/DCmcdc 0.0% 0 / 10 Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 17.2% 42 / 243 CC 1 SCAR 0.0
CC
1
Cov
17%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Test_Progs/failure_to_identify_loops ↑ Summary Test_Progs/nested2a »
1 #! /usr/bin/perl -w
2  
3 1 my $VERSION = 1.02;
4  
5 1 ▶use blib;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Shell::POSIX::Select qw($Heading $Reply $Prompt);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 $Prompt='Menu 1';
10 select my $var (1) {
11 warn "inside Outer loop\n";
12 $Prompt='Menu 2';
13 select my $var2 (qw (a b) ) {
14 1 ▶ warn "inside Inner loop\n";
Branch: 1 branch
BranchTrueFalseTotal
and warn "LINE NUMBER FOR START OF USER CODE_BLOCK IS: ", __LINE__, "\n" 0 1 1
Condition50%1/2
$Shell::POSIX::Select::DEBUG > 1 and
!ll
10
MC/DC0%0/1
$Shell::POSIX::Select::DEBUG > 1 and
$Shell::POSIX::Select::DEBUG > 1
Truth table50%1/2
A
A= $Shell::POSIX::Select::DEBUG > 1
Aresult
00
11
15 print "$var$var2\n";
16 last;
17 }
18 warn "outside Inner loop\n";
19 1 }
20 1 warn "outside all loops\n";
« Test_Progs/failure_to_identify_loops ↑ Summary Test_Progs/nested2a »