bin/plox

filter: Statementstmt 83.3% 15 / 18 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 80.7% 21 / 26 CC 1 SCAR 0.0
CC
1
Cov
77%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Lox/Function.pm ↑ Summary blib/lib/Lox/TokenType.pm »
1 #!perl
2 259 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 259 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 259 ▶use Getopt::Long 'GetOptions';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 259 ▶use Lox;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 259 GetOptions(
8 'debug' => \my $debug,
9 );
10  
11 259 ▶if (@ARGV > 1) {
Branch: 2 branches
BranchTrueFalseTotal
if (@ARGV > 1) { } 0 259 259
elsif (@ARGV == 1) { } 259 0 259
12 0 print "Usage: plox [script]\n";
13 0 exit 64;
14 }
15 elsif (@ARGV == 1) {
16 259 Lox::run_file($ARGV[0], $debug);
17 }
18 else {
19 0 Lox::run_prompt($debug);
20 }
« blib/lib/Lox/Function.pm ↑ Summary blib/lib/Lox/TokenType.pm »