MakeParser.PL

filter: Statementstmt 100% 11 / 11 Branchbran 50.0% 2 / 4 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 78.9% 15 / 19 CC 1 SCAR 0.0
CC
1
Cov
82%
BEGIN
1.0
CRAP 1.0
« blib/lib/Parse/Yapp/KeyValue/Parser.pm ↑ Summary
1 1 ▶use Parse::Yapp;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 1 my $path = 'blib/lib/Parse/Yapp/KeyValue';
4 1 my $file = "$path/Parser.pm";
5 1 my $parser = new Parse::Yapp(inputfile => 'grammar.yp');
6  
7 1 ▶mkdir $path || die "could not create directory $path: $!";
Condition50%1/2
$path || die("could not create directory ${path}: $!")
l!l
10
MC/DC0%0/1
$path || die("could not create directory ${path}: $!")
$path
Truth table50%1/2
A
A= $path
Aresult
11
00
8 1 ▶die "unable to create Yapp parser for grammar.yp: $!" if not defined $parser;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $parser 0 1 1
9  
10 1 ▶open(FILE, ">$file") || die "unable to open $file: $!";
Branch: 1 branch
BranchTrueFalseTotal
open FILE, ">$file" or die "unable to open ${file}: $!" 1 0 1
11 1 print FILE $parser->Output(classname => 'Parse::Yapp::KeyValue::Parser');
12 1 close FILE;
13  
« blib/lib/Parse/Yapp/KeyValue/Parser.pm ↑ Summary