Expression.pm

filter: Statementstmt 51.2% 273 / 533 Branchbran 42.1% 96 / 228 Conditioncond 37.2% 93 / 250 MC/DCmcdc 10.8% 12 / 111 Subroutinesub 84.2% 16 / 19 Podpod 83.3% 5 / 6 totaltotal 43.1% 495 / 1147 CC 208 SCAR 84.6
CC
208
Cov
46%
parse
5869.7
__ANON__
191.6
_trim
12.0
CRAP 4719.2
↑ Summary SSI.pm »
1 ##----------------------------------------------------------------------------
2 ## Apache2 Server Side Include Parser - ~/lib/Apache2/Expression.pm
3 ## Version v0.1.1
4 ## Copyright(c) 2021 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2021/02/20
7 ## Modified 2025/03/22
8 ## All rights reserved
9 ##
10 ## This program is free software; you can redistribute it and/or modify it
11 ## under the same terms as Perl itself.
12 ##----------------------------------------------------------------------------
13 package Apache2::Expression;
14 BEGIN
15 9 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
16 9 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 9 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 9 ▶ use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 9 ▶ use parent qw( Module::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
20 9 ▶ use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
21 9 ▶ use Regexp::Common qw( Apache2 );
Subroutine BEGIN: called CC=1 SCAR=0.0
22 9 ▶ use PPI;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 9 our $VERSION = 'v0.1.1';
24 };
25  
26 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 sub init
30 19 ▶{
Subroutine init: called CC=1 SCAR=0.0
Pod documented
31 19 my $self = shift( @_ );
32 19 $self->{legacy} = 0;
33 19 $self->{trunk} = 0;
34 19 $self->SUPER::init( @_ );
35 19 return( $self );
36 }
37  
38 104 ▶sub legacy { return( shift->_set_get_boolean( 'legacy', @_ ) ); }
Subroutine legacy: called CC=1 SCAR=0.0
Pod documented
39  
40 sub parse
41 85 ▶{
Subroutine parse: called CC=181 SCAR=86.8
Pod documented
42 85 my $self = shift( @_ );
43 85 my $data = shift( @_ );
44 85 ▶ return( '' ) if( !length( $data ) );
Branch: 1 branch
BranchTrueFalseTotal
unless length $data 0 85 85
45 85 my $opts = $self->_get_args_as_hash( @_ );
46 85 pos( $data ) = 0;
47 85 ▶ my $prefix = $self->legacy ? 'Legacy' : $self->trunk ? 'Trunk' : '';
Branch: 2 branches
BranchTrueFalseTotal
$self->legacy ? : 85 0 85
$self->trunk ? : 0 0 0
48 85 my @callinfo = caller(0);
49 85 $opts->{top} = 0;
50 85 ▶ $opts->{top} = 1 if( $callinfo[0] ne ref( $self ) || ( $callinfo[0] eq ref( $self ) && substr( (caller(1))[3], rindex( (caller(1))[3], ':' ) + 1 ) ne 'parse' ) );
Branch: 1 branch
BranchTrueFalseTotal
if $callinfo[0] ne ref $self or $callinfo[0] eq ref $self and substr((caller 1)[3], rindex((caller 1)[3], ":") + 1) ne "parse" 34 51 85
Condition50%3/6
$callinfo[0] ne ref $self or $callinfo[0] eq ref $self and substr((caller 1)[3], rindex((caller 1)[3], ":") + 1) ne "parse"
l!l&&r!l&&!r
34051
$callinfo[0] eq ref $self and substr((caller 1)[3], rindex((caller 1)[3], ":") + 1) ne "parse"
!ll&&!rl&&r
0510
MC/DC33%1/3
$callinfo[0] ne ref $self or $callinfo[0] eq ref $self and substr((caller 1)[3], rindex((caller 1)[3], ":") + 1) ne "parse"
$callinfo[0] ne ref $self $callinfo[0] eq ref $self substr((caller 1)[3], rindex((caller 1)[3], ":") + 1) ne "parse"
Truth table50%2/4
A or B and C
A= $callinfo[0] ne ref $selfB= $callinfo[0] eq ref $selfC= substr((caller 1)[3], rindex((caller 1)[3], ":") + 1) ne "parse"
ABCresult
1XX1
0111
00X0
0100
51 # This is used to avoid looping when an expression drills down its substring by calling parse again
52 85 my $skip = {};
53 85 ▶ if( ref( $opts->{skip} ) eq 'ARRAY' &&
Branch: 1 branch
BranchTrueFalseTotal
if (ref $opts->{"skip"} eq "ARRAY" and scalar @{$opts->{"skip"};}) 23 62 85
Condition100%2/2
ref $opts->{"skip"} eq "ARRAY" and scalar @{$opts->{"skip"};}
!ll
6223
MC/DC100%1/1
ref $opts->{"skip"} eq "ARRAY" and scalar @{$opts->{"skip"};}
ref $opts->{"skip"} eq "ARRAY"
Truth table100%2/2
A
A= ref $opts->{"skip"} eq "ARRAY"
Aresult
00
11
54 23 scalar( @{$opts->{skip}} ) )
55 {
56 23 @$skip{ @{$opts->{skip}} } = ( 1 ) x scalar( @{$opts->{skip}} )
57 }
58 85 my $p = {};
59 85 $p->{is_negative} = 0;
60 85 my $elems = [];
61 85 my $hash =
62 {
63 raw => $data,
64 elements => $elems,
65 };
66 85 my $looping = 0;
67 PARSE:
68 {
69 85 my $pos = pos( $data );
70 158 ▶ if( pos( $data ) == length( $data ) )
Branch: 1 branch
BranchTrueFalseTotal
if (pos $data == length $data) 73 85 158
71 {
72 73 last PARSE;
73 }
74 85 ▶ if( $data =~ m/\G\r?\n$/ )
Branch: 17 branches
BranchTrueFalseTotal
if ($data =~ /\G\r?\n$/) { } 0 85 85
elsif ($data =~ /\A\G$Apache2::Expression::RE{'Apache2'}{'LegacyVariable'}\Z/cgms and length $+{'variable'}) { } 16 69 85
elsif (not $skip->{'cond'} and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}Cond"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}Cond"}/cgms and length $+{'cond'}) { } 27 42 69
elsif ($pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}StringComp"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}StringComp"}/cgms and length $+{'stringcomp'}) { } 2 40 42
elsif ($pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}IntegerComp"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}IntegerComp"}/cgms and length $+{'integercomp'}) { } 0 40 40
elsif ($pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}Comp"}\Z/gms || $pos > 0 && $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}Comp"}/cgms and length $+{'comp'}) { } 12 28 40
elsif ($prefix eq 'Trunk' and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}Join"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}Join"}/cgms and length $+{'join'}) { } 0 28 28
elsif ($prefix eq 'Trunk' and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}Split"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}Split"}/cgms and length $+{'split'}) { } 0 28 28
elsif ($prefix eq 'Trunk' and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}Sub"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}Sub"}/cgms and length $+{'sub'}) { } 0 28 28
elsif ($pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}Function"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}Function"}/cgms and length $+{'function'}) { } 0 28 28
elsif ($pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}ListFunc"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}ListFunc"}/cgms and length $+{'listfunc'}) { } 0 28 28
elsif ($pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}Regexp"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}Regexp"}/cgms and length $+{'regex'}) { } 2 26 28
elsif ($prefix eq 'Trunk' and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}Regany"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}Regany"}/cgms and length($+{'regany'} // '')) { } 0 26 26
elsif ($prefix eq 'Trunk' and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}Regsub"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}Regsub"}/cgms and length $+{'regsub'}) { } 0 26 26
elsif (not $skip->{'words'} and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}Words"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}Words"}/cgms and length $+{'words'}) { } 10 16 26
elsif ($pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}Word"}\Z/gms || $pos > 0 && $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}Word"}/cgms and length $+{'word'}) { } 10 6 16
elsif ($pos == 0 && $data =~ /\A$Apache2::Expression::RE{'Apache2'}{"${prefix}String"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{'Apache2'}{"${prefix}String"}/cgms and length $+{'string'}) { } 6 0 6
75 {
76 0 redo PARSE;
77 }
78 ▶ elsif( $data =~ /\A\G$RE{Apache2}{LegacyVariable}\Z/gmcs &&
Condition66%2/3
$data =~ /\A\G$Apache2::Expression::RE{"Apache2"}{"LegacyVariable"}\Z/cgms and length $+{"variable"}
!ll&&!rl&&r
69016
MC/DC50%1/2
$data =~ /\A\G$Apache2::Expression::RE{"Apache2"}{"LegacyVariable"}\Z/cgms and length $+{"variable"}
$data =~ /\A\G$Apache2::Expression::RE{"Apache2"}{"LegacyVariable"}\Z/cgms length $+{"variable"}
Truth table66%2/3
A and B
A= $data =~ /\A\G$Apache2::Expression::RE{"Apache2"}{"LegacyVariable"}\Z/cgmsB= length $+{"variable"}
ABresult
0X0
100
111
79 length( $+{variable} ) )
80 {
81 16 my $re = { %+ };
82 16 $self->whereami( \$data, pos( $data ) );
83 my $def =
84 {
85 elements => [],
86 type => 'variable',
87 raw => $re->{variable},
88 16 re => $re,
89 };
90 16 ▶ if( length( $re->{var_func_name} ) )
Branch: 3 branches
BranchTrueFalseTotal
if (length $re->{'var_func_name'}) { } 1 15 16
elsif (length $re->{'varname'}) { } 14 1 15
elsif (length $re->{'rebackref'}) { } 1 0 1
91 {
92 1 $def->{subtype} = 'function';
93 1 $def->{name} = $re->{var_func_name};
94 1 $def->{args} = $re->{var_func_args};
95 1 ▶ if( length( $def->{args} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"args"}) 1 0 1
96 {
97 1 my @argv = $self->parse_args( $def->{args} );
98 1 $def->{args_def} = [];
99 1 foreach my $this ( @argv )
100 {
101 1 my $this = $self->parse( $this );
102 1 push( @{$def->{elements}}, @{$this->{elements}} );
103 1 push( @{$def->{args_def}}, @{$this->{elements}} );
104 }
105 }
106 }
107 elsif( length( $re->{varname} ) )
108 {
109 14 $def->{subtype} = 'variable';
110 14 $def->{name} = $re->{varname};
111 }
112 elsif( length( $re->{rebackref} ) )
113 {
114 1 $def->{subtype} = 'rebackref';
115 1 $def->{value} = $re->{rebackref};
116 }
117 16 push( @$elems, $def );
118 16 redo PARSE;
119 }
120 ▶ elsif( !$skip->{cond} &&
Condition75%9/12
not $skip->{"cond"} and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}/cgms and length $+{"cond"}
!ll&&!rl&&r
132927
not $skip->{"cond"} and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}/cgms
!ll&&!rl&&r
13056
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}/cgms
l!l&&r!l&&!r
27290
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}\Z/gms
!ll&&!rl&&r
02927
MC/DC20%1/5
not $skip->{"cond"} and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}/cgms and length $+{"cond"}
not $skip->{"cond"} $pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}/cgms length $+{"cond"}
Truth table33%3/9
not(A) and B and C or D and E
A= not $skip->{"cond"}B= $pos == 0C= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}\Z/gmsD= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Cond"}/cgmsE= length $+{"cond"}
ABCDEresult
0XXXX0
10X0X0
1100X0
111X00
10X100
110100
111X11
10X111
110111
121 ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Cond"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}Cond"}/gmcs ) &&
122 length( $+{cond} ) )
123 {
124 27 my $re = { %+ };
125 27 $self->whereami( \$data, pos( $data ) );
126 my $def =
127 {
128 elements => [],
129 type => 'cond',
130 raw => $re->{cond},
131 27 re => $re,
132 };
133 27 ▶ $def->{is_negative} = 1 if( $re->{cond_neg} );
Branch: 1 branch
BranchTrueFalseTotal
if $re->{"cond_neg"} 4 23 27
134 27 ▶ $p->{is_negative} = 1 if( $re->{cond_neg} && $opts->{top} );
Branch: 1 branch
BranchTrueFalseTotal
if $re->{"cond_neg"} and $opts->{"top"} 4 23 27
Condition66%2/3
$re->{"cond_neg"} and $opts->{"top"}
!ll&&!rl&&r
2304
MC/DC50%1/2
$re->{"cond_neg"} and $opts->{"top"}
$re->{"cond_neg"} $opts->{"top"}
Truth table66%2/3
A and B
A= $re->{"cond_neg"}B= $opts->{"top"}
ABresult
0X0
100
111
135 27 ▶ if( length( $re->{cond_variable} ) )
Branch: 6 branches
BranchTrueFalseTotal
if (length $re->{'cond_variable'}) { } 0 27 27
elsif (length $re->{'cond_parenthesis'}) { } 1 26 27
elsif (length $re->{'cond_neg'}) { } 4 22 26
elsif (length $re->{'cond_and'} or length $re->{'cond_or'}) { } 1 21 22
elsif (length $re->{'cond_comp'}) { } 13 8 21
elsif (length $re->{'cond_true'} or length $re->{'cond_false'}) { } 8 0 8
136 {
137 0 $def->{subtype} = 'variable';
138 0 $def->{variable_def} = [];
139 # Avoid looping
140 0 ▶ unless( $re->{cond_variable} eq $data )
Branch: 1 branch
BranchTrueFalseTotal
unless ($re->{"cond_variable"} eq $data) 0 0 0
141 {
142 0 my $this = $self->parse( $re->{cond_variable} );
143 0 $def->{elements} = $this->{elements};
144 0 $def->{variable_def} = $this->{elements};
145 }
146 }
147 elsif( length( $re->{cond_parenthesis} ) )
148 {
149 1 $def->{subtype} = 'parenthesis';
150 1 $def->{parenthesis_def} = [];
151 1 ▶ unless( $re->{cond_parenthesis} eq $data )
Branch: 1 branch
BranchTrueFalseTotal
unless ($re->{"cond_parenthesis"} eq $data) 1 0 1
152 {
153 1 my $this = $self->parse( $re->{cond_parenthesis} );
154 1 $def->{elements} = $this->{elements};
155 1 $def->{parenthesis_def} = $this->{elements};
156 }
157 }
158 elsif( length( $re->{cond_neg} ) )
159 {
160 4 $def->{subtype} = 'negative';
161 4 $def->{negative_def} = [];
162 4 ▶ if( length( $re->{cond_expr} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $re->{"cond_expr"}) 4 0 4
163 {
164 4 my $this = $self->parse( $re->{cond_expr} );
165 4 $def->{elements} = $this->{elements};
166 4 $def->{negative_def} = $this->{elements};
167 }
168 }
169 ▶ elsif( length( $re->{cond_and} ) || length( $re->{cond_or} ) )
Condition66%2/3
length $re->{"cond_and"} or length $re->{"cond_or"}
l!l&&r!l&&!r
0121
MC/DC50%1/2
length $re->{"cond_and"} or length $re->{"cond_or"}
length $re->{"cond_and"} length $re->{"cond_or"}
Truth table66%2/3
A or B
A= length $re->{"cond_and"}B= length $re->{"cond_or"}
ABresult
1X1
011
000
170 {
171 1 ▶ $def->{subtype} = length( $re->{cond_and} ) ? 'and' : 'or';
Branch: 1 branch
BranchTrueFalseTotal
length $re->{'cond_and'} ? : 0 1 1
172 1 $def->{ $def->{subtype} . '_def' } = [];
173 1 ▶ $def->{expr1} = length( $re->{cond_and_expr1} ) ? $re->{cond_and_expr1} : $re->{cond_or_expr1};
Branch: 1 branch
BranchTrueFalseTotal
length $re->{'cond_and_expr1'} ? : 0 1 1
174 1 ▶ $def->{expr2} = length( $re->{cond_and_expr2} ) ? $re->{cond_and_expr2} : $re->{cond_or_expr2};
Branch: 1 branch
BranchTrueFalseTotal
length $re->{'cond_and_expr2'} ? : 0 1 1
175 1 my $this1 = $self->parse( $def->{expr1} );
176 1 my $this2 = $self->parse( $def->{expr2} );
177 1 $def->{elements} = [ @{$this1->{elements}}, @{$this2->{elements}} ];
178 1 $def->{ $def->{subtype} . '_def' } = [ @{$this1->{elements}}, @{$this2->{elements}} ];
179 1 $def->{ $def->{subtype} . '_def_expr1' } = [ @{$this1->{elements}} ];
180 1 $def->{ $def->{subtype} . '_def_expr2' } = [ @{$this2->{elements}} ];
181 }
182 elsif( length( $re->{cond_comp} ) )
183 {
184 13 $def->{subtype} = 'comp';
185 13 $def->{comp_def} = [];
186 13 my $chunk = $re->{cond_comp};
187 13 my $this = $self->parse( $chunk, skip => [qw( cond )] );
188 13 $def->{elements} = $this->{elements};
189 13 $def->{comp_def} = $this->{elements};
190 }
191 # e.g. when the condition is just true or false
192 ▶ elsif( length( $re->{cond_true} ) || length( $re->{cond_false} ) )
Condition66%2/3
length $re->{"cond_true"} or length $re->{"cond_false"}
l!l&&r!l&&!r
440
MC/DC0%0/2
length $re->{"cond_true"} or length $re->{"cond_false"}
length $re->{"cond_true"} length $re->{"cond_false"}
Truth table66%2/3
A or B
A= length $re->{"cond_true"}B= length $re->{"cond_false"}
ABresult
1X1
011
000
193 {
194 8 $def->{subtype} = 'boolean';
195 8 ▶ $def->{boolval} = length( $re->{cond_true} ) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
length $re->{'cond_true'} ? : 4 4 8
196 8 ▶ $def->{booltype} = length( $re->{cond_true} ) ? 'true' : 'false';
Branch: 1 branch
BranchTrueFalseTotal
length $re->{'cond_true'} ? : 4 4 8
197 8 ▶ $def->{value} = length( $re->{cond_true} ) ? $re->{cond_true} : $re->{cond_false};
Branch: 1 branch
BranchTrueFalseTotal
length $re->{'cond_true'} ? : 4 4 8
198 }
199 else
200 {
201 0 $def->{subtype} = 'cond';
202 }
203 27 my $chunk = $re->{cond};
204 27 ▶ push( @$elems, $def ) if( length( $re->{cond} ) );
Branch: 1 branch
BranchTrueFalseTotal
if length $re->{"cond"} 27 0 27
205 27 redo PARSE;
206 }
207 ▶ elsif( ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}StringComp"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}StringComp"}/gmcs ) &&
Condition66%6/9
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}StringComp"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}StringComp"}/cgms and length $+{"stringcomp"}
!ll&&!rl&&r
4002
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}StringComp"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}StringComp"}/cgms
l!l&&r!l&&!r
2040
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}StringComp"}\Z/gms
!ll&&!rl&&r
0402
MC/DC25%1/4
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}StringComp"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}StringComp"}/cgms and length $+{"stringcomp"}
$pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}StringComp"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}StringComp"}/cgms length $+{"stringcomp"}
Truth table25%2/8
A and B or C and D
A= $pos == 0B= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}StringComp"}\Z/gmsC= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}StringComp"}/cgmsD= length $+{"stringcomp"}
ABCDresult
0X0X0
100X0
11X00
0X100
10100
11X11
0X111
10111
208 length( $+{stringcomp} ) )
209 {
210 2 my $re = { %+ };
211 2 $self->whereami( \$data, pos( $data ) );
212 my $def =
213 {
214 elements => [],
215 type => 'stringcomp',
216 raw => $re->{stringcomp},
217 re => $re,
218 op => $re->{stringcomp_op},
219 worda => $re->{stringcomp_worda},
220 wordb => $re->{stringcomp_wordb},
221 2 };
222 2 $def->{worda_def} = [];
223 2 $def->{wordb_def} = [];
224 2 ▶ if( length( $def->{worda} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"worda"}) 2 0 2
225 {
226 2 my $this = $self->parse( $def->{worda} );
227 2 push( @{$def->{elements}}, @{$this->{elements}} );
228 2 $def->{worda_def} = $this->{elements};
229 }
230 2 ▶ if( length( $def->{wordb} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"wordb"}) 2 0 2
231 {
232 2 my $this = $self->parse( $def->{wordb} );
233 2 push( @{$def->{elements}}, @{$this->{elements}} );
234 2 $def->{wordb_def} = $this->{elements};
235 }
236 2 push( @$elems, $def );
237 2 redo PARSE;
238 }
239 ▶ elsif( ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}IntegerComp"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}IntegerComp"}/gmcs ) &&
Condition33%3/9
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}IntegerComp"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}IntegerComp"}/cgms and length $+{"integercomp"}
!ll&&!rl&&r
4000
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}IntegerComp"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}IntegerComp"}/cgms
l!l&&r!l&&!r
0040
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}IntegerComp"}\Z/gms
!ll&&!rl&&r
0400
MC/DC0%0/4
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}IntegerComp"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}IntegerComp"}/cgms and length $+{"integercomp"}
$pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}IntegerComp"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}IntegerComp"}/cgms length $+{"integercomp"}
Truth table12%1/8
A and B or C and D
A= $pos == 0B= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}IntegerComp"}\Z/gmsC= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}IntegerComp"}/cgmsD= length $+{"integercomp"}
ABCDresult
0X0X0
100X0
11X00
0X100
10100
11X11
0X111
10111
240 length( $+{integercomp} ) )
241 {
242 0 my $re = { %+ };
243 0 $self->whereami( \$data, pos( $data ) );
244 my $def =
245 {
246 elements => [],
247 type => 'integercomp',
248 raw => $re->{integercomp},
249 re => $re,
250 op => $re->{integercomp_op},
251 worda => $re->{integercomp_worda},
252 wordb => $re->{integercomp_wordb},
253 0 };
254 0 ▶ if( length( $re->{integercomp_worda} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $re->{"integercomp_worda"}) 0 0 0
255 {
256 0 my $this = $self->parse( $re->{integercomp_worda} );
257 0 push( @{$def->{elements}}, @{$this->{elements}} );
258 0 $def->{worda_def} = $this->{elements};
259 }
260 0 ▶ if( length( $re->{integercomp_wordb} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $re->{"integercomp_wordb"}) 0 0 0
261 {
262 0 my $this = $self->parse( $re->{integercomp_wordb} );
263 0 push( @{$def->{elements}}, @{$this->{elements}} );
264 0 $def->{wordb_def} = $this->{elements};
265 }
266 0 push( @$elems, $def );
267 0 redo PARSE;
268 }
269 ▶ elsif( ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Comp"}\Z/gms ) ||
Condition58%7/12
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}\Z/gms || $pos > 0 && $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}/cgms and length $+{"comp"}
!ll&&!rl&&r
28012
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}\Z/gms or $pos > 0 and $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}/cgms
l!l&&r!l&&!r
12028
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}\Z/gms
!ll&&!rl&&r
02812
$pos > 0 and $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}/cgms
!ll&&!rl&&r
2800
MC/DC20%1/5
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}\Z/gms || $pos > 0 && $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}/cgms and length $+{"comp"}
$pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}\Z/gms $pos > 0 $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}/cgms length $+{"comp"}
Truth table20%2/10
A and B or C and D and E
A= $pos == 0B= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}\Z/gmsC= $pos > 0D= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Comp"}/cgmsE= length $+{"comp"}
ABCDEresult
0X0XX0
0X10X0
100XX0
1010X0
11XX00
0X1100
101100
11XX11
0X1111
101111
270 ( $pos > 0 && $data =~ /\G$RE{Apache2}{"${prefix}Comp"}/gmcs ) ) &&
271 length( $+{comp} ) )
272 {
273  
274 # elsif( $self->message( 3, "Trying with general comparison." ) &&
275 # ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Comp"}\Z/gms ) &&
276 # length( $+{comp} ) )
277  
278 # elsif( $self->message( 3, "Trying with general comparison." ) &&
279 # ( $data =~ /\G$RE{Apache2}{"${prefix}Comp"}/gmcs ) &&
280 # length( $+{comp} ) )
281 # {
282 12 my $re = { %+ };
283 12 my $cur_pos = pos( $data );
284 12 $self->whereami( \$data, $cur_pos );
285 # next PARSE unless( length( $re->{comp} ) );
286 my $def =
287 {
288 elements => [],
289 type => 'comp',
290 raw => $re->{comp},
291 12 re => $re,
292 };
293 12 my $this;
294 12 my $chunk = $re->{comp};
295 12 ▶ if( length( $re->{comp_unary} ) )
Branch: 5 branches
BranchTrueFalseTotal
if (length $re->{'comp_unary'}) { } 8 4 12
elsif (length $re->{'comp_binary'}) { } 2 2 4
elsif (length $re->{'comp_word_in_listfunc'}) { } 0 2 2
elsif (length($re->{'comp_in_regexp'} // '') or length($re->{'comp_in_regexp_legacy'} // '')) { } 2 0 2
elsif (length($re->{'comp_word_in_list'} // '')) { } 0 0 0
296 {
297 8 $def->{subtype} = 'unary';
298 8 $def->{op} = $re->{comp_unaryop};
299 8 $def->{word} = $re->{comp_word};
300 8 $def->{word_def} = [];
301 8 ▶ if( length( $def->{word} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"word"}) 8 0 8
302 {
303 8 my $this = $self->parse( $def->{word} );
304 8 push( @{$def->{elements}}, @{$this->{elements}} );
305 8 $def->{word_def} = $this->{elements};
306 }
307 }
308 elsif( length( $re->{comp_binary} ) )
309 {
310 2 $def->{subtype} = 'binary';
311 2 $def->{op} = $re->{comp_binaryop};
312 2 ▶ $def->{is_negative} = ( defined( $re->{comp_binary_is_neg} ) ? length( $re->{comp_binary_is_neg} ) > 0 ? 1 : 0 : 0 );
Branch: 2 branches
BranchTrueFalseTotal
defined $re->{'comp_binary_is_neg'} ? : 1 1 2
length $re->{'comp_binary_is_neg'} > 0 ? : 1 0 1
313 2 $def->{worda} = $re->{comp_worda};
314 2 $def->{wordb} = $re->{comp_wordb};
315 2 $def->{worda_def} = [];
316 2 $def->{wordb_def} = [];
317 2 ▶ if( length( $def->{worda} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"worda"}) 2 0 2
318 {
319 2 my $this = $self->parse( $def->{worda} );
320 2 push( @{$def->{elements}}, @{$this->{elements}} );
321 2 $def->{worda_def} = $this->{elements};
322 }
323 2 ▶ if( length( $def->{wordb} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"wordb"}) 2 0 2
324 {
325 2 my $this = $self->parse( $def->{wordb} );
326 2 push( @{$def->{elements}}, @{$this->{elements}} );
327 2 $def->{wordb_def} = $this->{elements};
328 }
329 }
330 elsif( length( $re->{comp_word_in_listfunc} ) )
331 {
332 0 $def->{subtype} = 'function';
333 0 $def->{word} = $re->{comp_word};
334 0 $def->{function} = $re->{comp_listfunc};
335 0 $def->{word_def} = [];
336 0 $def->{function_def} = [];
337 0 ▶ if( length( $def->{word} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"word"}) 0 0 0
338 {
339 0 my $this1 = $self->parse( $def->{word} );
340 0 push( @{$def->{elements}}, @{$this1->{elements}} );
341 0 $def->{word_def} = $this1->{elements};
342 }
343 0 my $this2 = $self->parse( $def->{function} );
344 0 push( @{$def->{elements}}, @{$this2->{elements}} );
345 0 $def->{function_def} = $this2->{elements};
346 }
347 ▶ elsif( length( $re->{comp_in_regexp} // '' ) || length( $re->{comp_in_regexp_legacy} // '' ) )
Condition42%3/7
length($re->{"comp_in_regexp"} // "") or length($re->{"comp_in_regexp_legacy"} // "")
l!l&&r!l&&!r
020
$re->{"comp_in_regexp"} // ""
l!l
02
$re->{"comp_in_regexp_legacy"} // ""
l!l
20
MC/DC0%0/2
length($re->{"comp_in_regexp"} // "") or length($re->{"comp_in_regexp_legacy"} // "")
$re->{"comp_in_regexp"} $re->{"comp_in_regexp_legacy"}
Truth table33%1/3
A or B
A= $re->{"comp_in_regexp"}B= $re->{"comp_in_regexp_legacy"}
ABresult
1X1
011
000
348 {
349 2 $def->{subtype} = 'regexp';
350 2 $def->{word} = $re->{comp_word};
351 2 $def->{op} = $re->{comp_regexp_op};
352 2 $def->{regexp} = $re->{comp_regexp};
353 2 $def->{word_def} = [];
354 2 $def->{regexp_def} = [];
355 2 my $str = $def->{word} . '';
356 # Break down the word being compared as well as the regular expression
357 2 ▶ if( length( $str ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $str) 2 0 2
358 {
359 2 my $this1 = $self->parse( $str );
360 2 $def->{elements} = [@{$this1->{elements}}];
361 2 $def->{word_def} = $this1->{elements};
362 }
363 2 ▶ if( length( $def->{regexp} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"regexp"}) 2 0 2
364 {
365 2 my $this2 = $self->parse( $def->{regexp} );
366 2 push( @{$def->{elements}}, @{$this2->{elements}} );
367 2 $def->{regexp_def} = $this2->{elements};
368 }
369 }
370 ▶ elsif( length( $re->{comp_word_in_list} // '' ) )
Condition0%0/2
$re->{"comp_word_in_list"} // ""
l!l
00
MC/DC0%0/1
$re->{"comp_word_in_list"} // ""
$re->{"comp_word_in_list"}
Truth table0%0/2
A
A= $re->{"comp_word_in_list"}
Aresult
11
00
371 {
372 0 $def->{subtype} = 'list';
373 0 $def->{word} = $re->{comp_word};
374 0 $def->{list} = $re->{com_list};
375 0 $def->{word_def} = [];
376 0 $def->{list_def} = [];
377 0 ▶ if( length( $def->{word} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"word"}) 0 0 0
378 {
379 0 my $this1 = $self->parse( $def->{word} );
380 0 push( @{$def->{elements}}, @{$this1->{elements}} );
381 0 $def->{word_def} = $this1->{elements};
382 }
383 0 ▶ if( length( $def->{list} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"list"}) 0 0 0
384 {
385 0 my @argv = $self->parse_args( $def->{list} );
386 0 foreach my $this ( @argv )
387 {
388 0 my $this = $self->parse( $this );
389 0 push( @{$def->{elements}}, @{$this->{elements}} );
390 0 push( @{$def->{list_def}}, @{$this->{elements}} );
391 }
392 }
393 }
394 else
395 {
396 # No match found in comparison.
397 }
398 12 ▶ if( defined( $this ) && scalar( keys( %$this ) ) )
Branch: 1 branch
BranchTrueFalseTotal
if (defined $this and scalar keys %$this) 0 12 12
Condition50%1/2
defined $this and scalar keys %$this
!ll
120
MC/DC0%0/1
defined $this and scalar keys %$this
defined $this
Truth table50%1/2
A
A= defined $this
Aresult
00
11
399 {
400 0 $def->{elements} = $this->{elements};
401 }
402 12 ▶ push( @$elems, $def ) if( length( $re->{comp} ) );
Branch: 1 branch
BranchTrueFalseTotal
if length $re->{"comp"} 12 0 12
403 12 ▶ if( $cur_pos == length( $data ) )
Branch: 1 branch
BranchTrueFalseTotal
if ($cur_pos == length $data) 12 0 12
404 {
405 12 last PARSE;
406 }
407 # redo PARSE unless( !length( $re->{comp} ) && ++$looping > 1 );
408 0 redo PARSE;
409 }
410 # Trunk function
411 ▶ elsif( $prefix eq 'Trunk' &&
Condition16%2/12
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}/cgms and length $+{"join"}
!ll&&!rl&&r
2800
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}/cgms
!ll&&!rl&&r
2800
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}/cgms
l!l&&r!l&&!r
000
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}\Z/gms
!ll&&!rl&&r
000
MC/DC0%0/5
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}/cgms and length $+{"join"}
$prefix eq "Trunk" $pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}/cgms length $+{"join"}
Truth table11%1/9
A and B and C or D and E
A= $prefix eq "Trunk"B= $pos == 0C= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}\Z/gmsD= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Join"}/cgmsE= length $+{"join"}
ABCDEresult
0XXXX0
10X0X0
1100X0
111X00
10X100
110100
111X11
10X111
110111
412 ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Join"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}Join"}/gmcs ) &&
413 length( $+{join} ) )
414 {
415 0 my $re = { %+ };
416 0 $self->whereami( \$data, pos( $data ) );
417 my $def =
418 {
419 elements => [],
420 type => 'join',
421 raw => $re->{join},
422 re => $re,
423 word => $re->{join_word},
424 list => $re->{join_list},
425 0 };
426 # word is optional
427 0 ▶ if( length( $def->{word} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"word"}) 0 0 0
428 {
429 0 my $this = $self->parse( $def->{word} );
430 0 push( @{$def->{elements}}, @{$this->{elements}} );
431 0 $def->{word_def} = $this->{elements};
432 }
433 0 ▶ if( length( $def->{list} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"list"}) 0 0 0
434 {
435 0 my @argv = $self->parse_args( $def->{list} );
436 0 $def->{list_def} = [];
437 0 foreach my $that ( @argv )
438 {
439 0 my $this = $self->parse( $that );
440 0 push( @{$def->{elements}}, @{$this->{elements}} );
441 0 push( @{$def->{list_def}}, @{$this->{elements}} );
442 }
443 }
444 0 push( @$elems, $def );
445 0 redo PARSE;
446 }
447 ▶ elsif( $prefix eq 'Trunk' &&
Condition16%2/12
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}/cgms and length $+{"split"}
!ll&&!rl&&r
2800
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}/cgms
!ll&&!rl&&r
2800
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}/cgms
l!l&&r!l&&!r
000
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}\Z/gms
!ll&&!rl&&r
000
MC/DC0%0/5
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}/cgms and length $+{"split"}
$prefix eq "Trunk" $pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}/cgms length $+{"split"}
Truth table11%1/9
A and B and C or D and E
A= $prefix eq "Trunk"B= $pos == 0C= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}\Z/gmsD= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Split"}/cgmsE= length $+{"split"}
ABCDEresult
0XXXX0
10X0X0
1100X0
111X00
10X100
110100
111X11
10X111
110111
448 ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Split"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}Split"}/gmcs ) &&
449 length( $+{split} ) )
450 {
451 0 my $re = { %+ };
452 0 $self->whereami( \$data, pos( $data ) );
453 my $def =
454 {
455 elements => [],
456 type => 'split',
457 raw => $re->{split},
458 re => $re,
459 regex => $re->{split_regex},
460 word => $re->{split_word},
461 list => $re->{split_list},
462 0 };
463 # It is either a word or a list as parameter
464 0 ▶ if( length( $def->{word} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"word"}) 0 0 0
465 {
466 0 my $this = $self->parse( $def->{word} );
467 0 push( @{$def->{elements}}, @{$this->{elements}} );
468 0 $def->{word_def} = $this->{elements};
469 }
470 0 ▶ if( length( $def->{list} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"list"}) 0 0 0
471 {
472 0 my @argv = $self->parse_args( $def->{list} );
473 0 $def->{list_def} = [];
474 0 foreach my $that ( @argv )
475 {
476 0 my $this = $self->parse( $that );
477 0 push( @{$def->{elements}}, @{$this->{elements}} );
478 0 push( @{$def->{list_def}}, @{$this->{elements}} );
479 }
480 }
481 0 push( @$elems, $def );
482 0 redo PARSE;
483 }
484 ▶ elsif( $prefix eq 'Trunk' &&
Condition16%2/12
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}/cgms and length $+{"sub"}
!ll&&!rl&&r
2800
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}/cgms
!ll&&!rl&&r
2800
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}/cgms
l!l&&r!l&&!r
000
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}\Z/gms
!ll&&!rl&&r
000
MC/DC0%0/5
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}/cgms and length $+{"sub"}
$prefix eq "Trunk" $pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}/cgms length $+{"sub"}
Truth table11%1/9
A and B and C or D and E
A= $prefix eq "Trunk"B= $pos == 0C= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}\Z/gmsD= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Sub"}/cgmsE= length $+{"sub"}
ABCDEresult
0XXXX0
10X0X0
1100X0
111X00
10X100
110100
111X11
10X111
110111
485 ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Sub"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}Sub"}/gmcs ) &&
486 length( $+{sub} ) )
487 {
488 0 my $re = { %+ };
489 0 $self->whereami( \$data, pos( $data ) );
490 my $def =
491 {
492 elements => [],
493 type => 'sub',
494 raw => $re->{sub},
495 re => $re,
496 regsub => $re->{sub_regsub},
497 word => $re->{sub_word},
498 0 };
499 0 ▶ if( length( $def->{word} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"word"}) 0 0 0
500 {
501 0 my $this = $self->parse( $def->{word} );
502 0 push( @{$def->{elements}}, @{$this->{elements}} );
503 0 $def->{word_def} = $this->{elements};
504 }
505 0 ▶ if( length( $def->{regsub} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"regsub"}) 0 0 0
506 {
507 0 my $this = $self->parse( $def->{regsub} );
508 0 push( @{$def->{elements}}, @{$this->{elements}} );
509 0 $def->{regsub_def} = $this->{elements};
510 }
511 0 push( @$elems, $def );
512 0 redo PARSE;
513 }
514 ▶ elsif( ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Function"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}Function"}/gmcs ) &&
Condition33%3/9
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Function"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Function"}/cgms and length $+{"function"}
!ll&&!rl&&r
2800
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Function"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Function"}/cgms
l!l&&r!l&&!r
0028
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Function"}\Z/gms
!ll&&!rl&&r
0280
MC/DC0%0/4
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Function"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Function"}/cgms and length $+{"function"}
$pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Function"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Function"}/cgms length $+{"function"}
Truth table12%1/8
A and B or C and D
A= $pos == 0B= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Function"}\Z/gmsC= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Function"}/cgmsD= length $+{"function"}
ABCDresult
0X0X0
100X0
11X00
0X100
10100
11X11
0X111
10111
515 length( $+{function} ) )
516 {
517 0 my $re = { %+ };
518 0 $self->whereami( \$data, pos( $data ) );
519 my $def =
520 {
521 elements => [],
522 type => 'function',
523 raw => $re->{function},
524 re => $re,
525 name => $re->{func_name},
526 args => $re->{func_args},
527 0 };
528 0 ▶ if( length( $def->{args} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"args"}) 0 0 0
529 {
530 0 my @argv = $self->parse_args( $def->{args} );
531 0 $def->{args_def} = [];
532 0 foreach my $this ( @argv )
533 {
534 0 my $this = $self->parse( $this );
535 0 push( @{$def->{elements}}, @{$this->{elements}} );
536 0 push( @{$def->{args_def}}, @{$this->{elements}} );
537 }
538 }
539 0 push( @$elems, $def );
540 0 redo PARSE;
541 }
542 ▶ elsif( ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}ListFunc"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}ListFunc"}/gmcs ) &&
Condition33%3/9
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}ListFunc"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}ListFunc"}/cgms and length $+{"listfunc"}
!ll&&!rl&&r
2800
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}ListFunc"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}ListFunc"}/cgms
l!l&&r!l&&!r
0028
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}ListFunc"}\Z/gms
!ll&&!rl&&r
0280
MC/DC0%0/4
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}ListFunc"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}ListFunc"}/cgms and length $+{"listfunc"}
$pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}ListFunc"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}ListFunc"}/cgms length $+{"listfunc"}
Truth table12%1/8
A and B or C and D
A= $pos == 0B= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}ListFunc"}\Z/gmsC= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}ListFunc"}/cgmsD= length $+{"listfunc"}
ABCDresult
0X0X0
100X0
11X00
0X100
10100
11X11
0X111
10111
543 length( $+{listfunc} ) )
544 {
545 0 my $re = { %+ };
546 0 $self->whereami( \$data, pos( $data ) );
547 my $def =
548 {
549 elements => [],
550 type => 'listfunc',
551 raw => $re->{listfunc},
552 re => $re,
553 name => $re->{func_name},
554 args => $re->{func_args},
555 0 };
556 0 ▶ if( length( $def->{args} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $def->{"args"}) 0 0 0
557 {
558 0 my @argv = $self->parse_args( $def->{args} );
559 0 $def->{args_def} = [];
560 0 foreach my $this ( @argv )
561 {
562 0 my $this = $self->parse( $this );
563 0 push( @{$def->{elements}}, @{$this->{elements}} );
564 0 push( @{$def->{args_def}}, @{$this->{elements}} );
565 }
566 }
567 0 push( @$elems, $def );
568 0 redo PARSE;
569 }
570 ▶ elsif( ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Regexp"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}Regexp"}/gmcs ) &&
Condition66%6/9
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regexp"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regexp"}/cgms and length $+{"regex"}
!ll&&!rl&&r
2602
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regexp"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regexp"}/cgms
l!l&&r!l&&!r
2026
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regexp"}\Z/gms
!ll&&!rl&&r
0262
MC/DC25%1/4
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regexp"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regexp"}/cgms and length $+{"regex"}
$pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regexp"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regexp"}/cgms length $+{"regex"}
Truth table25%2/8
A and B or C and D
A= $pos == 0B= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regexp"}\Z/gmsC= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regexp"}/cgmsD= length $+{"regex"}
ABCDresult
0X0X0
100X0
11X00
0X100
10100
11X11
0X111
10111
571 length( $+{regex} ) )
572 {
573 2 my $re = { %+ };
574 2 $self->whereami( \$data, pos( $data ) );
575 my $def =
576 {
577 elements => [],
578 type => 'regex',
579 raw => $re->{regex},
580 re => $re,
581 pattern => $re->{regpattern},
582 flags => $re->{regflags},
583 sep => $re->{regsep},
584 2 };
585 2 push( @$elems, $def );
586 2 redo PARSE;
587 }
588 # Trunk only
589 ▶ elsif( $prefix eq 'Trunk' &&
Condition14%2/14
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}/cgms and length($+{"regany"} // "")
!ll&&!rl&&r
2600
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}/cgms
!ll&&!rl&&r
2600
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}/cgms
l!l&&r!l&&!r
000
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}\Z/gms
!ll&&!rl&&r
000
$+{"regany"} // ""
l!l
00
MC/DC0%0/5
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}/cgms and length($+{"regany"} // "")
$prefix eq "Trunk" $pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}/cgms $+{"regany"}
Truth table11%1/9
A and B and C or D and E
A= $prefix eq "Trunk"B= $pos == 0C= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}\Z/gmsD= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regany"}/cgmsE= $+{"regany"}
ABCDEresult
0XXXX0
10X0X0
1100X0
111X00
10X100
110100
111X11
10X111
110111
590 ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Regany"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}Regany"}/gmcs ) &&
591 length( $+{regany} // '' ) )
592 {
593 0 my $re = { %+ };
594 0 $self->whereami( \$data, pos( $data ) );
595 my $def =
596 {
597 elements => [],
598 type => 'regany',
599 raw => $re->{regany},
600 re => $re,
601 regex => $re->{regany_regex},
602 regsub => $re->{regany_regsub},
603 0 };
604 0 push( @$elems, $def );
605 0 redo PARSE;
606 }
607 # Trunk only
608 ▶ elsif( $prefix eq 'Trunk' &&
Condition16%2/12
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}/cgms and length $+{"regsub"}
!ll&&!rl&&r
2600
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}/cgms
!ll&&!rl&&r
2600
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}/cgms
l!l&&r!l&&!r
000
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}\Z/gms
!ll&&!rl&&r
000
MC/DC0%0/5
$prefix eq "Trunk" and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}/cgms and length $+{"regsub"}
$prefix eq "Trunk" $pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}/cgms length $+{"regsub"}
Truth table11%1/9
A and B and C or D and E
A= $prefix eq "Trunk"B= $pos == 0C= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}\Z/gmsD= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Regsub"}/cgmsE= length $+{"regsub"}
ABCDEresult
0XXXX0
10X0X0
1100X0
111X00
10X100
110100
111X11
10X111
110111
609 ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Regsub"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}Regsub"}/gmcs ) &&
610 length( $+{regsub} ) )
611 {
612 0 my $re = { %+ };
613 0 $self->whereami( \$data, pos( $data ) );
614 my $def =
615 {
616 elements => [],
617 type => 'regsub',
618 raw => $re->{regsub},
619 re => $re,
620 pattern => $re->{regpattern},
621 replacement => $re->{regstring},
622 flags => $re->{regflags},
623 sep => $re->{regsep},
624 0 };
625 0 push( @$elems, $def );
626 0 redo PARSE;
627 }
628 ▶ elsif( !$skip->{words} &&
Condition75%9/12
not $skip->{"words"} and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}/cgms and length $+{"words"}
!ll&&!rl&&r
16010
not $skip->{"words"} and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}/cgms
!ll&&!rl&&r
10610
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}/cgms
l!l&&r!l&&!r
1006
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}\Z/gms
!ll&&!rl&&r
0610
MC/DC40%2/5
not $skip->{"words"} and $pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}/cgms and length $+{"words"}
not $skip->{"words"} $pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}/cgms length $+{"words"}
Truth table33%3/9
not(A) and B and C or D and E
A= not $skip->{"words"}B= $pos == 0C= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}\Z/gmsD= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}/cgmsE= length $+{"words"}
ABCDEresult
0XXXX0
10X0X0
1100X0
111X00
10X100
110100
111X11
10X111
110111
629 ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Words"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}Words"}/gmcs ) &&
630 length( $+{words} ) )
631 {
632 10 my $re = { %+ };
633 10 $self->whereami( \$data, pos( $data ) );
634 my $def =
635 {
636 elements => [],
637 type => 'words',
638 raw => $re->{words},
639 re => $re,
640 word => $re->{words_word},
641 10 };
642 10 ▶ if( length( $re->{words_list} ) )
Branch: 1 branch
BranchTrueFalseTotal
if (length $re->{'words_list'}) { } 0 10 10
643 {
644 0 $def->{list} = $re->{words_list};
645 0 $def->{sublist} = $re->{words_sublist};
646 0 my $this2 = $self->parse( $def->{list}, skip => [qw( words )] );
647 0 $def->{elements} = $this2->{elements};
648 0 $def->{list_def} = $this2->{elements};
649 0 $def->{words_def} = [];
650 0 my $this = $self->parse( $def->{word}, skip => [qw( words )] );
651 0 push( @{$def->{words_def}}, @{$this->{elements}} );
652
653 0 my $tmp = $def->{sublist};
654 0 ▶ while( $tmp =~ s/^$RE{Apache2}{"${prefix}Words"}$//gs )
Branch: 1 branch
BranchTrueFalseTotal
if ($tmp =~ s/^$Apache2::Expression::RE{"Apache2"}{"${prefix}Words"}$//gs) 0 0 0
655 {
656 0 my $re2 = { %+ };
657 0 ▶ $re2->{words_word} = '' if( !exists( $re2->{words_word} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $re2->{"words_word"} 0 0 0
658 0 ▶ $re2->{words_sublist} = '' if( !exists( $re2->{words_sublist} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $re2->{"words_sublist"} 0 0 0
659 0 my $this = $self->parse( $re2->{words_word}, skip => [qw( words )] );
660 0 push( @{$def->{words_def}}, @{$this->{elements}} );
661 0 ▶ $tmp = $re2->{words_sublist} if( $re2->{words_sublist} );
Branch: 1 branch
BranchTrueFalseTotal
if $re2->{"words_sublist"} 0 0 0
662 }
663 }
664 else
665 {
666 10 my $this = $self->parse( $def->{word}, skip => [qw( words )] );
667 10 $def->{word_def} = $this->{elements};
668 10 push( @{$def->{elements}}, @{$this->{elements}} );
669 }
670 10 push( @$elems, $def );
671 10 redo PARSE;
672 }
673 ▶ elsif( ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}Word"}\Z/gms ) ||
Condition58%7/12
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}\Z/gms || $pos > 0 && $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}/cgms and length $+{"word"}
!ll&&!rl&&r
6010
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}\Z/gms or $pos > 0 and $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}/cgms
l!l&&r!l&&!r
1006
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}\Z/gms
!ll&&!rl&&r
0610
$pos > 0 and $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}/cgms
!ll&&!rl&&r
600
MC/DC20%1/5
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}\Z/gms || $pos > 0 && $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}/cgms and length $+{"word"}
$pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}\Z/gms $pos > 0 $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}/cgms length $+{"word"}
Truth table20%2/10
A and B or C and D and E
A= $pos == 0B= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}\Z/gmsC= $pos > 0D= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}Word"}/cgmsE= length $+{"word"}
ABCDEresult
0X0XX0
0X10X0
100XX0
1010X0
11XX00
0X1100
101100
11XX11
0X1111
101111
674 ( $pos > 0 && $data =~ /\G$RE{Apache2}{"${prefix}Word"}/gmcs )
675 ) &&
676 length( $+{word} ) )
677 {
678 10 my $re = { %+ };
679 10 $self->whereami( \$data, pos( $data ) );
680 my $def =
681 {
682 elements => [],
683 type => 'word',
684 raw => $re->{word},
685 10 re => $re,
686 };
687 10 ▶ if( length( $re->{word_digits} ) )
Branch: 10 branches
BranchTrueFalseTotal
if (length $re->{'word_digits'}) { } 0 10 10
elsif (length $re->{'word_ip'}) { } 0 10 10
elsif (length $re->{'word_quote'} or length $re->{'word_parens_open'}) { } 10 0 10
elsif (length $re->{'word_function'} or length $re->{'word_variable'}) { } 0 0 0
elsif (length $re->{'word_join'}) { } 0 0 0
elsif (length $re->{'word_sub'}) { } 0 0 0
elsif (length $re->{'word_variable'}) { } 0 0 0
elsif (length $re->{'word_dot_word'}) { } 0 0 0
elsif (length $re->{'rebackref'}) { } 0 0 0
elsif (length $re->{'regex'}) { } 0 0 0
688 {
689 # We keep whatever quote was used
690 0 $def->{subtype} = 'digits';
691 0 $def->{value} = $re->{word_digits};
692 }
693 elsif( length( $re->{word_ip} ) )
694 {
695 0 $def->{subtype} = 'ip';
696 0 ▶ $def->{ip_version} = length( $re->{word_ip4} ) ? 4 : 6;
Branch: 1 branch
BranchTrueFalseTotal
length $re->{'word_ip4'} ? : 0 0 0
697 0 ▶ $def->{value} = length( $re->{word_ip4} ) ? $re->{word_ip4} : $re->{word_ip6};
Branch: 1 branch
BranchTrueFalseTotal
length $re->{'word_ip4'} ? : 0 0 0
698 }
699 ▶ elsif( length( $re->{word_quote} ) || length( $re->{word_parens_open} ) )
Condition33%1/3
length $re->{"word_quote"} or length $re->{"word_parens_open"}
l!l&&r!l&&!r
1000
MC/DC0%0/2
length $re->{"word_quote"} or length $re->{"word_parens_open"}
length $re->{"word_quote"} length $re->{"word_parens_open"}
Truth table33%1/3
A or B
A= length $re->{"word_quote"}B= length $re->{"word_parens_open"}
ABresult
1X1
011
000
700 {
701 10 $def->{word} = $re->{word_enclosed};
702 10 ▶ if( length( $re->{word_quote} ) )
Branch: 2 branches
BranchTrueFalseTotal
if (length $re->{'word_quote'}) { } 10 0 10
elsif (length $re->{'word_parens_open'}) { } 0 0 0
703 {
704 10 $def->{subtype} = 'quote';
705 10 $def->{quote} = $re->{word_quote};
706 }
707 elsif( length( $re->{word_parens_open} ) )
708 {
709 0 $def->{subtype} = 'parens';
710 # If the enclosing elements are parenthesis
711 0 $def->{parens} = [$re->{word_parens_open}, $re->{word_parens_close}];
712 0 my $this = $self->parse( $def->{word} );
713 0 push( @{$def->{elements}}, @{$this->{elements}} );
714 0 $def->{word_def} = $this->{elements};
715 }
716 # NOTE: Should probably make a run on the enclosed word as it could be a variable
717 # For example: "Go back to %{REQUEST_URI}"
718 }
719 ▶ elsif( length( $re->{word_function} ) || length( $re->{word_variable} ) )
Condition0%0/3
length $re->{"word_function"} or length $re->{"word_variable"}
l!l&&r!l&&!r
000
MC/DC0%0/2
length $re->{"word_function"} or length $re->{"word_variable"}
length $re->{"word_function"} length $re->{"word_variable"}
Truth table0%0/3
A or B
A= length $re->{"word_function"}B= length $re->{"word_variable"}
ABresult
1X1
011
000
720 {
721 0 ▶ my $chunk = ( $re->{word_function} || $re->{word_variable} );
Condition0%0/3
$re->{'word_function'} || $re->{'word_variable'}
l!l&&r!l&&!r
000
MC/DC0%0/2
$re->{'word_function'} || $re->{'word_variable'}
$re->{'word_function'} $re->{'word_variable'}
Truth table0%0/3
A || B
A= $re->{'word_function'}B= $re->{'word_variable'}
ABresult
1X1
011
000
722 0 ▶ my $this = length( $chunk ) ? $self->parse( $chunk ) : {};
Branch: 1 branch
BranchTrueFalseTotal
length $chunk ? : 0 0 0
723 0 ▶ $def->{subtype} = length( $re->{word_function} ) ? 'function' : length( $re->{word_variable} ) ? 'variable' : undef();
Branch: 2 branches
BranchTrueFalseTotal
length $re->{'word_function'} ? : 0 0 0
length $re->{'word_variable'} ? : 0 0 0
724 0 ▶ if( defined( $this ) && scalar( keys( %$this ) ) )
Branch: 1 branch
BranchTrueFalseTotal
if (defined $this and scalar keys %$this) 0 0 0
Condition0%0/2
defined $this and scalar keys %$this
!ll
00
MC/DC0%0/1
defined $this and scalar keys %$this
defined $this
Truth table0%0/2
A
A= defined $this
Aresult
00
11
725 {
726 0 $def->{elements} = $this->{elements};
727 0 ▶ if( $def->{subtype} eq 'function' )
Branch: 2 branches
BranchTrueFalseTotal
if ($def->{'subtype'} eq 'function') { } 0 0 0
elsif ($def->{'subtype'} eq 'variable') { } 0 0 0
728 {
729 0 $def->{function_def} = $this->{elements};
730 }
731 elsif( $def->{subtype} eq 'variable' )
732 {
733 0 $def->{variable_def} = $this->{elements};
734 }
735 }
736 }
737 elsif( length( $re->{word_join} ) )
738 {
739 0 $def->{subtype} = 'join';
740 0 my $this = $self->parse( $re->{word_variable} );
741 0 push( @{$def->{elements}}, @{$this->{elements}} );
742 0 $def->{join_def} = $this->{elements};
743 }
744 elsif( length( $re->{word_sub} ) )
745 {
746 0 $def->{subtype} = 'sub';
747 0 my $this = $self->parse( $re->{word_variable} );
748 0 push( @{$def->{elements}}, @{$this->{elements}} );
749 0 $def->{sub_def} = $this->{elements};
750 }
751 elsif( length( $re->{word_variable} ) )
752 {
753 0 $def->{subtype} = 'variable';
754 0 my $this = $self->parse( $re->{word_variable} );
755 0 push( @{$def->{elements}}, @{$this->{elements}} );
756 0 $def->{variable_def} = $this->{elements};
757 }
758 elsif( length( $re->{word_dot_word} ) )
759 {
760 0 $def->{subtype} = 'dotted';
761 0 $def->{word} = $re->{word_dot_word};
762 }
763 elsif( length( $re->{rebackref} ) )
764 {
765 0 $def->{subtype} = 'rebackref';
766 0 $def->{value} = $re->{rebackref};
767 }
768 elsif( length( $re->{regex} ) )
769 {
770 0 $def->{subtype} = 'regex';
771 0 $def->{sep} = $re->{regsep};
772 0 $def->{pattern} = $re->{regpattern};
773 0 $def->{flags} = $re->{regflags};
774 }
775 10 push( @$elems, $def );
776 10 redo PARSE;
777 }
778 ▶ elsif( ( ( $pos == 0 && $data =~ /\A$RE{Apache2}{"${prefix}String"}\Z/gms ) || $data =~ /\G$RE{Apache2}{"${prefix}String"}/gmcs ) &&
Condition33%3/9
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}String"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}String"}/cgms and length $+{"string"}
!ll&&!rl&&r
006
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}String"}\Z/gms or $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}String"}/cgms
l!l&&r!l&&!r
600
$pos == 0 and $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}String"}\Z/gms
!ll&&!rl&&r
006
MC/DC0%0/4
$pos == 0 && $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}String"}\Z/gms || $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}String"}/cgms and length $+{"string"}
$pos == 0 $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}String"}\Z/gms $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}String"}/cgms length $+{"string"}
Truth table12%1/8
A and B or C and D
A= $pos == 0B= $data =~ /\A$Apache2::Expression::RE{"Apache2"}{"${prefix}String"}\Z/gmsC= $data =~ /\G$Apache2::Expression::RE{"Apache2"}{"${prefix}String"}/cgmsD= length $+{"string"}
ABCDresult
0X0X0
100X0
11X00
0X100
10100
11X11
0X111
10111
779 length( $+{string} ) )
780 {
781 6 my $re = { %+ };
782 6 $self->whereami( \$data, pos( $data ) );
783 my $def =
784 {
785 elements => [],
786 type => 'string',
787 raw => $re->{string},
788 6 re => $re,
789 };
790 6 push( @$elems, $def );
791 6 redo PARSE;
792 }
793 else
794 {
795 # Do not know what to do with this.
796 }
797 0 ▶ if( ++$looping > 1 )
Branch: 1 branch
BranchTrueFalseTotal
if (++$looping > 1) 0 0 0
798 {
799 0 last PARSE;
800 }
801 # We arrived here, which means we could not find anything suitable in our parser, instead of returning a result for part of the data parsed, we return the original string marking it as nomatch string.
802 0 ▶ if( $opts->{top} )
Branch: 1 branch
BranchTrueFalseTotal
if ($opts->{"top"}) 0 0 0
803 {
804 0 @$elems =
805 ({
806 type => 'string',
807 subtype => 'nomatch',
808 raw => $data,
809 pos => $pos,
810 });
811 0 last PARSE;
812 }
813 };
814 85 ▶ return( scalar( @$elems ) ? $hash : {} );
Branch: 1 branch
BranchTrueFalseTotal
scalar @$elems ? : 85 0 85
815 }
816  
817 sub parse_args
818 1 ▶{
Subroutine parse_args: called CC=4 SCAR=19.9
Pod documented
819 1 my $self = shift( @_ );
820 # String
821 1 my $args = shift( @_ );
822 1 ▶ my $doc = PPI::Document->new( \$args, readonly => 1 ) ||
Condition50%1/2
'PPI::Document'->new(\$args, 'readonly', 1) || (return 'Unable to parse: ', 'PPI::Document'->errstr, "\n$args")
l!l
10
MC/DC0%0/1
'PPI::Document'->new(\$args, 'readonly', 1) || (return 'Unable to parse: ', 'PPI::Document'->errstr, "\n$args")
'PPI::Document'->new(\$args, 'readonly', 1)
Truth table50%1/2
A
A= 'PPI::Document'->new(\$args, 'readonly', 1)
Aresult
11
00
823 return( "Unable to parse: ", PPI::Document->errstr, "\n$args" );
824 # Nothing found as argument
825 1 ▶ return( () ) if( !scalar( @{$doc->{children}} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless scalar @{$doc->{"children"};} 0 1 1
826 1 ▶ return( $self->error( "Was expecting a statement, but got ", ($doc->elements)[0]->class ) ) if( ($doc->elements)[0]->class ne 'PPI::Statement' );
Branch: 1 branch
BranchTrueFalseTotal
if ($doc->elements)[0]->class ne "PPI::Statement" 0 1 1
827 1 my $st = ($doc->elements)[0];
828 1 my @children = $st->elements;
829 1 my $op_skip =
830 {
831 ',' => 1,
832 };
833 1 my $expect = 0;
834 1 my $recur;
835 $recur = sub
836 1 ▶ {
Subroutine __ANON__: called CC=21 SCAR=52.6
837 1 my @elems = @_;
838 # We need space, so we do not remove them
839 # For example, md5("some string") is not the same as md5, ("some string")
840 1 my $argv = [];
841 1 ▶ for( my $i = 0; $i < scalar( @elems ); $i++ )
Branch: 1 branch
BranchTrueFalseTotal
if ($i < scalar @elems) 1 1 2
842 {
843 1 my $e = $elems[$i];
844 1 my @expr;
845 # Hopefully those below should cover all of our needs
846 1 ▶ if(
Branch: 3 branches
BranchTrueFalseTotal
if ($e->class eq 'PPI::Token::ArrayIndex' or $e->isa('PPI::Token::Number') or $e->class eq 'PPI::Token::Operator' and not exists $$op_skip{$e->content} or $e->isa('PPI::Token::Quote') or $e->isa('PPI::Token::QuoteLike') or $e->isa('PPI::Token::Regexp') or $e->isa('PPI::Token::Symbol') or $e->class eq 'PPI::Token::Word') { } 1 0 1
elsif ($e->class eq 'PPI::Token::Operator' and $e->content eq ',') { } 0 0 0
elsif ($e->class eq 'PPI::Structure::List') { } 0 0 0
Condition33%8/24
$e->class eq "PPI::Token::ArrayIndex" or $e->isa("PPI::Token::Number") or $e->class eq "PPI::Token::Operator" and not exists $$op_skip{$e->content} or $e->isa("PPI::Token::Quote") or $e->isa("PPI::Token::QuoteLike") or $e->isa("PPI::Token::Regexp") or $e->isa("PPI::Token::Symbol") or $e->class eq "PPI::Token::Word"
l!l&&r!l&&!r
100
$e->class eq "PPI::Token::ArrayIndex" or $e->isa("PPI::Token::Number") or $e->class eq "PPI::Token::Operator" and not exists $$op_skip{$e->content} or $e->isa("PPI::Token::Quote") or $e->isa("PPI::Token::QuoteLike") or $e->isa("PPI::Token::Regexp") or $e->isa("PPI::Token::Symbol")
l!l&&r!l&&!r
010
$e->class eq "PPI::Token::ArrayIndex" or $e->isa("PPI::Token::Number") or $e->class eq "PPI::Token::Operator" and not exists $$op_skip{$e->content} or $e->isa("PPI::Token::Quote") or $e->isa("PPI::Token::QuoteLike") or $e->isa("PPI::Token::Regexp")
l!l&&r!l&&!r
001
$e->class eq "PPI::Token::ArrayIndex" or $e->isa("PPI::Token::Number") or $e->class eq "PPI::Token::Operator" and not exists $$op_skip{$e->content} or $e->isa("PPI::Token::Quote") or $e->isa("PPI::Token::QuoteLike")
l!l&&r!l&&!r
001
$e->class eq "PPI::Token::ArrayIndex" or $e->isa("PPI::Token::Number") or $e->class eq "PPI::Token::Operator" and not exists $$op_skip{$e->content} or $e->isa("PPI::Token::Quote")
l!l&&r!l&&!r
001
$e->class eq "PPI::Token::ArrayIndex" or $e->isa("PPI::Token::Number") or $e->class eq "PPI::Token::Operator" and not exists $$op_skip{$e->content}
l!l&&r!l&&!r
001
$e->class eq "PPI::Token::ArrayIndex" or $e->isa("PPI::Token::Number")
l!l&&r!l&&!r
001
$e->class eq "PPI::Token::Operator" and not exists $$op_skip{$e->content}
!ll&&!rl&&r
100
MC/DC0%0/9
$e->class eq "PPI::Token::ArrayIndex" or $e->isa("PPI::Token::Number") or $e->class eq "PPI::Token::Operator" and not exists $$op_skip{$e->content} or $e->isa("PPI::Token::Quote") or $e->isa("PPI::Token::QuoteLike") or $e->isa("PPI::Token::Regexp") or $e->isa("PPI::Token::Symbol") or $e->class eq "PPI::Token::Word"
$e->class eq "PPI::Token::ArrayIndex" $e->isa("PPI::Token::Number") $e->class eq "PPI::Token::Operator" not exists $$op_skip{$e->content} $e->isa("PPI::Token::Quote") $e->isa("PPI::Token::QuoteLike") $e->isa("PPI::Token::Regexp") $e->isa("PPI::Token::Symbol") $e->class eq "PPI::Token::Word"
Truth table6%1/15
A or B or C and not(D) or E or F or G or H or I
A= $e->class eq "PPI::Token::ArrayIndex"B= $e->isa("PPI::Token::Number")C= $e->class eq "PPI::Token::Operator"D= not exists $$op_skip{$e->content}E= $e->isa("PPI::Token::Quote")F= $e->isa("PPI::Token::QuoteLike")G= $e->isa("PPI::Token::Regexp")H= $e->isa("PPI::Token::Symbol")I= $e->class eq "PPI::Token::Word"
ABCDEFGHIresult
1XXXXXXXX1
01XXXXXXX1
0011XXXXX1
000X1XXXX1
00101XXXX1
000X01XXX1
001001XXX1
000X001XX1
0010001XX1
000X0001X1
00100001X1
000X000011
0010000011
000X000000
0010000000
847 $e->class eq 'PPI::Token::ArrayIndex' ||
848 # Including PPI::Token::Number::Float
849 $e->isa( 'PPI::Token::Number' ) ||
850 # operators like ==, !=, =~
851 ( $e->class eq 'PPI::Token::Operator' && !exists( $op_skip->{ $e->content } ) ) ||
852 # including, PPI::Token::Quote::Double, PPI::Token::Quote::Interpolate, PPI::Token::Quote::Literal and PPI::Token::Quote::Single
853 # Example q{foo bar}
854 $e->isa( 'PPI::Token::Quote' ) ||
855 $e->isa( 'PPI::Token::QuoteLike' ) ||
856 # Including PPI::Token::Regexp::Match, PPI::Token::Regexp::Substitute, PPI::Token::Regexp::Transliterate
857 $e->isa( 'PPI::Token::Regexp' ) ||
858 # Including for example PPI::Token::Magic
859 $e->isa( 'PPI::Token::Symbol' ) ||
860 $e->class eq 'PPI::Token::Word'
861 )
862 {
863 1 push( @$argv, [$e] );
864 }
865 ▶ elsif( $e->class eq 'PPI::Token::Operator' && $e->content eq ',' )
Condition0%0/3
$e->class eq "PPI::Token::Operator" and $e->content eq ","
!ll&&!rl&&r
000
MC/DC0%0/2
$e->class eq "PPI::Token::Operator" and $e->content eq ","
$e->class eq "PPI::Token::Operator" $e->content eq ","
Truth table0%0/3
A and B
A= $e->class eq "PPI::Token::Operator"B= $e->content eq ","
ABresult
0X0
100
111
866 {
867 }
868 # Either this is arguments for the previous function found, or this is expressions embedded within parenthesis
869 # NOTE: Need to implement also PPI::Token::Structure, i.e. [], {}
870 elsif( $e->class eq 'PPI::Structure::List' )
871 {
872 0 ▶ if( ref( $elems[$i - 1] ) &&
Branch: 2 branches
BranchTrueFalseTotal
if (ref $elems[$i - 1] and $elems[$i - 1]->class eq 'PPI::Token::Word' and $argv->[-1][0]->class eq 'PPI::Token::Word') { } 0 0 0
elsif (scalar $e->elements and ref(($e->elements)[0]) and @expr = $self->_find_expression($e) and $expr[0]->class eq 'PPI::Statement::Expression') { } 0 0 0
Condition0%0/6
ref $elems[$i - 1] and $elems[$i - 1]->class eq "PPI::Token::Word" and $argv->[-1][0]->class eq "PPI::Token::Word"
!ll&&!rl&&r
000
ref $elems[$i - 1] and $elems[$i - 1]->class eq "PPI::Token::Word"
!ll&&!rl&&r
000
MC/DC0%0/3
ref $elems[$i - 1] and $elems[$i - 1]->class eq "PPI::Token::Word" and $argv->[-1][0]->class eq "PPI::Token::Word"
ref $elems[$i - 1] $elems[$i - 1]->class eq "PPI::Token::Word" $argv->[-1][0]->class eq "PPI::Token::Word"
Truth table0%0/4
A and B and C
A= ref $elems[$i - 1]B= $elems[$i - 1]->class eq "PPI::Token::Word"C= $argv->[-1][0]->class eq "PPI::Token::Word"
ABCresult
0XX0
10X0
1100
1111
873 $elems[$i - 1]->class eq 'PPI::Token::Word' &&
874 $argv->[-1]->[0]->class eq 'PPI::Token::Word' )
875 {
876 0 push( @{$argv->[-1]}, $e );
877 }
878 ▶ elsif( scalar($e->elements) &&
Condition0%0/9
scalar $e->elements and ref(($e->elements)[0]) and @expr = $self->_find_expression($e) and $expr[0]->class eq "PPI::Statement::Expression"
!ll&&!rl&&r
000
scalar $e->elements and ref(($e->elements)[0]) and @expr = $self->_find_expression($e)
!ll&&!rl&&r
000
scalar $e->elements and ref(($e->elements)[0])
!ll&&!rl&&r
000
MC/DC0%0/4
scalar $e->elements and ref(($e->elements)[0]) and @expr = $self->_find_expression($e) and $expr[0]->class eq "PPI::Statement::Expression"
scalar $e->elements ref(($e->elements)[0]) @expr = $self->_find_expression($e) $expr[0]->class eq "PPI::Statement::Expression"
Truth table0%0/5
A and B and C and D
A= scalar $e->elementsB= ref(($e->elements)[0])C= @expr = $self->_find_expression($e)D= $expr[0]->class eq "PPI::Statement::Expression"
ABCDresult
0XXX0
10XX0
110X0
11100
11111
879 ref(($e->elements)[0]) &&
880 ( @expr = $self->_find_expression($e) ) &&
881 $expr[0]->class eq 'PPI::Statement::Expression' )
882 {
883 0 my @list = $self->_trim( $expr[0]->elements );
884 0 my @new = $recur->( @list );
885 0 push( @$argv, [$e->start] );
886 0 push( @$argv, @new );
887 0 push( @$argv, [$e->finish] );
888 }
889 }
890 # else we are not interested
891 else
892 {
893 }
894 }
895 1 return( @$argv );
896 1 };
897 1 my @objects = $recur->( @children );
898 # Stringify result
899 1 my @result = map( join( '', map( $_->content, @$_ ) ), @objects );
900 1 return( @result );
901 }
902  
903 0 ▶sub trunk { return( shift->_set_get_boolean( 'trunk', @_ ) ); }
Subroutine trunk: not called CC=1 SCAR=6.9
Pod documented
904  
905 sub whereami
906 85 ▶{
Subroutine whereami: called CC=2 SCAR=6.9
Pod undocumented
907 85 my $self = shift( @_ );
908 85 my( $ref, $pos ) = @_;
909 # How far back should we look?
910 85 my $lookback = 10;
911 85 ▶ $lookback = $pos if( $pos < $lookback );
Branch: 1 branch
BranchTrueFalseTotal
if $pos < $lookback 25 60 85
912 85 my $lookahead = 20;
913 85 my $start = $pos - $lookback;
914 85 my $first_line = substr( $$ref, $start, $lookback + $lookahead );
915 85 $lookback += () = substr( $$ref, $start, $lookback ) =~ /\n/gs;
916 85 $first_line =~ s/\n/\\n/gs;
917 85 my $sec_line = ( '.' x $lookback ) . '^' . ( '.' x $lookahead );
918 }
919  
920 # PPI object manipulation
921 sub _find_expression
922 0 ▶{
Subroutine _find_expression: not called CC=2 SCAR=17.9
923 0 my $self = shift( @_ );
924 0 my $e = shift( @_ );
925 0 my @found = ();
926 0 foreach my $this ( $e->elements )
927 {
928 0 push( @found, $e );
929 }
930 0 return( @found );
931 }
932  
933 # PPI object manipulation
934 sub _trim
935 0 ▶{
Subroutine _trim: not called CC=3 SCAR=24.8
936 0 my $self = shift( @_ );
937 0 my @elems = @_;
938 0 ▶ for( my $i = 0; $i < scalar( @elems ); $i++ )
Branch: 1 branch
BranchTrueFalseTotal
if ($i < scalar @elems) 0 0 0
939 {
940 0 ▶ if( $elems[$i]->class eq 'PPI::Token::Whitespace' )
Branch: 1 branch
BranchTrueFalseTotal
if ($elems[$i]->class eq "PPI::Token::Whitespace") 0 0 0
941 {
942 0 splice( @elems, $i, 1 );
943 0 $i--;
944 }
945 }
946 0 return( @elems );
947 }
948  
949 9 1;
950 # NOTE: POD
951 __END__
↑ Summary SSI.pm »