Test_Progs/eslect

filter: Statementstmt 45.5% 31 / 68 Branchbran 17.5% 7 / 40 Conditioncond 33.3% 3 / 9 MC/DCmcdc 0.0% 0 / 5 Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 35.2% 44 / 125 CC 2 SCAR 4.5
CC
2
Cov
35%
BEGIN
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.6
« Test_Progs/argv_heading ↑ Summary Test_Progs/eslect_fixed »
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);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶BEGIN { @ARGV or @ARGV=qw(A B C) ; }
Subroutine BEGIN: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
@ARGV or @ARGV = ("A", "B", "C") 0 1 1
10 # eslect $var[2] ( ) { print "$var[2]\n" }
11  
12 1 $Heading='MENU CITY';
13 select $var (@ARGV) { print "$var\n"; }
« Test_Progs/argv_heading ↑ Summary Test_Progs/eslect_fixed »