Test_Progs/nested_heading_prompt

filter: Statementstmt 24.0% 32 / 133 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.8% 43 / 241 CC 1 SCAR 0.0
CC
1
Cov
18%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Test_Progs/prompt.nested ↑ Summary Test_Progs/arrayvar »
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($Prompt $Heading);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 $Heading="\n\nQuantity Menu:";
10 1 $Prompt="Choose Quantity:";
11 OUTER:
12 select my $quantity (1..4) {
13 # warn "inside Outer loop\n";
14  
15 $Heading="\nSize Menu:";
16 1 ▶ $Prompt='Choose Size:';
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
17 select my $size ( qw (L XL) ) {
18 # warn "inside Inner loop\n";
19 print "You chose $quantity units of size $size\n";
20 last OUTER;
21 1 }
22 1 # warn "outside Inner loop\n";
23 }
24 1 ▶#warn "outside all loops\n";
Branch: 1 branch
BranchTrueFalseTotal
$Shell::POSIX::Select::DEBUG > 4 and do { warn "ARRAY VALUES ARE: @Shell::POSIX::Select::looplist\n"; warn "NUM VALUES is $Shell::POSIX::Select::num_values\n"; warn "user-program debug level is $Shell::POSIX::Select::U_WARN\n" } 0 1 1
« Test_Progs/prompt.nested ↑ Summary Test_Progs/arrayvar »