bin/zx81_list_p

filter: Statementstmt 94.1% 16 / 17 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 84.6% 22 / 26 CC 1 SCAR 0.0
CC
1
Cov
83%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« bin/zx81_dump_p ↑ Summary
1 #!/usr/bin/env perl
2  
3 34 ▶use Modern::Perl;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 34 ▶use ZX81::Tape qw(list_p);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 34 ▶use Getopt::Std;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 34 my $USAGE = "Usage: $0 [-o output_file.bas] input_file.p\n";
8 34 ▶getopts( 'o:', \my %opts ) or die $USAGE;
Branch: 1 branch
BranchTrueFalseTotal
&getopts("o:", \my %opts) or die $USAGE 34 0 34
9 34 ▶@ARGV == 1 or die $USAGE;
Branch: 1 branch
BranchTrueFalseTotal
@ARGV == 1 or die $USAGE 34 0 34
10 34 my $input_file = shift @ARGV;
11  
12 34 ▶if ( $opts{o} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opts{'o'}) { } 34 0 34
13 34 my $output_file = $opts{o};
14 34 list_p( $input_file, $output_file );
15 }
16 else {
17 0 list_p($input_file);
18 }
19  
20 __END__
« bin/zx81_dump_p ↑ Summary