compilation-tester.pl untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/perl
2 #
3 # development tool for examining compilation
4  
5 use v5.10;
6 use lib qw(t lib);
7 use ToyXMLForester;
8  
9 my $f = ToyXMLForester->new;
10  
11 my @expressions = grep /^\s*+[^#]/, <<'END' =~ /.*/mg;
12 a[@attr('b') - 1 = 0]
13 a[@attr('b')=1]
14 a[:ceil(@attr('b'))=1]
15 a[:ceil(@attr('b') + 1)=1]
16 a[b - 1 = 0]
17 a[b=1]
18 a[:ceil(b)=1]
19 a[:ceil(b + 1)=1]
20 END
21  
22 for my $expr (@expressions) {
23 my $e = $f->path($expr);
24 say $e;
25 }