lib/Template/Mustache/Parser.pm

filter: Statementstmt 81.4% 2177 / 2673 Branchbran 42.2% 683 / 1618 Conditioncond 42.0% 178 / 423 MC/DCmcdc 13.3% 36 / 269 Subroutinesub 94.9% 113 / 119 Podpod 0.0% 0 / 1 totaltotal 62.4% 3187 / 5103 SCAR 106.5
CC
958
Cov
64%
unescaped_variable
1420.6
unescaped_variable_amp
996.6
close_section
344.3
CRAP 42204.2
↑ Summary lib/Template/Mustache.pm »
1 #
2 # This parser was generated with
3 # Parse::RecDescent version 1.967015
4 #
5  
6 package Template::Mustache::Parser;
7 23 our $AUTHORITY = 'cpan:YANICK';
8 23 $Template::Mustache::Parser::VERSION = '1.3.3';
9  
10 23 ▶use Parse::RecDescent;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 23 { my $ERRORS;
12  
13  
14 package Parse::RecDescent::Template::Mustache::Parser;
15 23 our $AUTHORITY = 'cpan:YANICK';
16 23 $Parse::RecDescent::Template::Mustache::Parser::VERSION = '1.3.3';
17  
18 23 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 23 ▶use vars qw($skip $AUTOLOAD );
Subroutine BEGIN: called CC=1 SCAR=0.0
20 23 @Parse::RecDescent::Template::Mustache::Parser::ISA = ();
21 23 $skip = qr//;
22  
23  
24 {
25 0 ▶local $SIG{__WARN__} = sub {0};
Subroutine __ANON__: not called CC=1 SCAR=0.4
26 # PRETEND TO BE IN Parse::RecDescent NAMESPACE
27 *Parse::RecDescent::Template::Mustache::Parser::AUTOLOAD = sub
28 {
29 23 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
30  
31 0 ▶ ${"AUTOLOAD"} =~ s/^Parse::RecDescent::Template::Mustache::Parser/Parse::RecDescent/;
Subroutine __ANON__: not called CC=1 SCAR=6.9
32 0 goto &{${"AUTOLOAD"}};
33 }
34 23 }
35  
36 23 push @Parse::RecDescent::Template::Mustache::Parser::ISA, 'Parse::RecDescent';
37 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
38 sub Parse::RecDescent::Template::Mustache::Parser::_alternation_1_of_production_1_of_rule_template_item
39 {
40 291 ▶ my $thisparser = $_[0];
Subroutine _alternation_1_of_production_1_of_rule_template_item: called CC=86 SCAR=57.9
41 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
42 291 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
2910
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
43 291 $ERRORS = 0;
44 291 my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_template_item"};
45  
46 291 ▶ Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_template_item]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 291 291
47 Parse::RecDescent::_tracefirst($_[1]),
48 q{_alternation_1_of_production_1_of_rule_template_item},
49 $tracelevel)
50 if defined $::RD_TRACE;
51  
52
53 291 my $err_at = @{$thisparser->{errors}};
54  
55 291 my $score;
56 my $score_return;
57 291 my $_tok;
58 291 my $return = undef;
59 291 my $_matched=0;
60 291 my $commit=0;
61 291 my @item = ();
62 291 my %item = ();
63 291 my $repeating = $_[2];
64 291 my $_noactions = $_[3];
65 291 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 291 0 291
66 291 my $_itempos = $_[5];
67 291 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 264 27 291
68 291 my $text;
69 my $lastsep;
70 291 my $current_match;
71 291 my $expectation = new Parse::RecDescent::Expectation(q{partial, or section, or delimiter_change, or comment, or unescaped_variable_amp, or unescaped_variable, or variable, or verbatim});
72 291 $expectation->at($_[1]);
73
74 291 my $thisoffset;
75 291 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
76
77 291 my $thisline;
78 291 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
79  
80
81  
82 291 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 291 0 291
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00291
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
83 {
84
85 291 ▶ Parse::RecDescent::_trace(q{Trying production: [partial]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 291 291
86 Parse::RecDescent::_tracefirst($_[1]),
87 q{_alternation_1_of_production_1_of_rule_template_item},
88 $tracelevel)
89 if defined $::RD_TRACE;
90 291 my $thisprod = $thisrule->{"prods"}[0];
91 291 $text = $_[1];
92 291 my $_savetext;
93 291 @item = (q{_alternation_1_of_production_1_of_rule_template_item});
94 291 %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_template_item});
95 291 my $repcount = 0;
96  
97  
98 291 ▶ Parse::RecDescent::_trace(q{Trying subrule: [partial]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 291 291
99 Parse::RecDescent::_tracefirst($text),
100 q{_alternation_1_of_production_1_of_rule_template_item},
101 $tracelevel)
102 if defined $::RD_TRACE;
103 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
104 291 $expectation->is(q{})->at($text);
105 291 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::partial($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = partial($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 275 16 291
106 {
107
108 275 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [partial]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
109 Parse::RecDescent::_tracefirst($text),
110 q{_alternation_1_of_production_1_of_rule_template_item},
111 $tracelevel)
112 if defined $::RD_TRACE;
113 275 $expectation->failed();
114 275 last;
115 }
116 16 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [partial]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
117 . $_tok . q{]},
118  
119 Parse::RecDescent::_tracefirst($text),
120 q{_alternation_1_of_production_1_of_rule_template_item},
121 $tracelevel)
122 if defined $::RD_TRACE;
123 16 $item{q{partial}} = $_tok;
124 16 push @item, $_tok;
125
126 }
127  
128 16 ▶ Parse::RecDescent::_trace(q{>>Matched production: [partial]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
129 Parse::RecDescent::_tracefirst($text),
130 q{_alternation_1_of_production_1_of_rule_template_item},
131 $tracelevel)
132 if defined $::RD_TRACE;
133  
134  
135  
136 16 $_matched = 1;
137 16 last;
138 }
139  
140  
141 291 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 275 16 291
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
160275
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
142 {
143
144 275 ▶ Parse::RecDescent::_trace(q{Trying production: [section]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
145 Parse::RecDescent::_tracefirst($_[1]),
146 q{_alternation_1_of_production_1_of_rule_template_item},
147 $tracelevel)
148 if defined $::RD_TRACE;
149 275 my $thisprod = $thisrule->{"prods"}[1];
150 275 $text = $_[1];
151 275 my $_savetext;
152 275 @item = (q{_alternation_1_of_production_1_of_rule_template_item});
153 275 %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_template_item});
154 275 my $repcount = 0;
155  
156  
157 275 ▶ Parse::RecDescent::_trace(q{Trying subrule: [section]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
158 Parse::RecDescent::_tracefirst($text),
159 q{_alternation_1_of_production_1_of_rule_template_item},
160 $tracelevel)
161 if defined $::RD_TRACE;
162 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
163 275 $expectation->is(q{})->at($text);
164 275 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::section($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = section($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 264 11 275
165 {
166
167 264 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [section]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 264 264
168 Parse::RecDescent::_tracefirst($text),
169 q{_alternation_1_of_production_1_of_rule_template_item},
170 $tracelevel)
171 if defined $::RD_TRACE;
172 264 $expectation->failed();
173 264 last;
174 }
175 11 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [section]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
176 . $_tok . q{]},
177  
178 Parse::RecDescent::_tracefirst($text),
179 q{_alternation_1_of_production_1_of_rule_template_item},
180 $tracelevel)
181 if defined $::RD_TRACE;
182 11 $item{q{section}} = $_tok;
183 11 push @item, $_tok;
184
185 }
186  
187 11 ▶ Parse::RecDescent::_trace(q{>>Matched production: [section]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
188 Parse::RecDescent::_tracefirst($text),
189 q{_alternation_1_of_production_1_of_rule_template_item},
190 $tracelevel)
191 if defined $::RD_TRACE;
192  
193  
194  
195 11 $_matched = 1;
196 11 last;
197 }
198  
199  
200 291 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 264 27 291
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
270264
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
201 {
202
203 264 ▶ Parse::RecDescent::_trace(q{Trying production: [delimiter_change]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 264 264
204 Parse::RecDescent::_tracefirst($_[1]),
205 q{_alternation_1_of_production_1_of_rule_template_item},
206 $tracelevel)
207 if defined $::RD_TRACE;
208 264 my $thisprod = $thisrule->{"prods"}[2];
209 264 $text = $_[1];
210 264 my $_savetext;
211 264 @item = (q{_alternation_1_of_production_1_of_rule_template_item});
212 264 %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_template_item});
213 264 my $repcount = 0;
214  
215  
216 264 ▶ Parse::RecDescent::_trace(q{Trying subrule: [delimiter_change]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 264 264
217 Parse::RecDescent::_tracefirst($text),
218 q{_alternation_1_of_production_1_of_rule_template_item},
219 $tracelevel)
220 if defined $::RD_TRACE;
221 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
222 264 $expectation->is(q{})->at($text);
223 264 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::delimiter_change($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = delimiter_change($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 262 0 262
224 {
225
226 262 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [delimiter_change]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 262 262
227 Parse::RecDescent::_tracefirst($text),
228 q{_alternation_1_of_production_1_of_rule_template_item},
229 $tracelevel)
230 if defined $::RD_TRACE;
231 262 $expectation->failed();
232 262 last;
233 }
234 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [delimiter_change]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
235 . $_tok . q{]},
236  
237 Parse::RecDescent::_tracefirst($text),
238 q{_alternation_1_of_production_1_of_rule_template_item},
239 $tracelevel)
240 if defined $::RD_TRACE;
241 0 $item{q{delimiter_change}} = $_tok;
242 0 push @item, $_tok;
243
244 }
245  
246 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [delimiter_change]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
247 Parse::RecDescent::_tracefirst($text),
248 q{_alternation_1_of_production_1_of_rule_template_item},
249 $tracelevel)
250 if defined $::RD_TRACE;
251  
252  
253  
254 0 $_matched = 1;
255 0 last;
256 }
257  
258  
259 289 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 262 27 289
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
270262
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
260 {
261
262 262 ▶ Parse::RecDescent::_trace(q{Trying production: [comment]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 262 262
263 Parse::RecDescent::_tracefirst($_[1]),
264 q{_alternation_1_of_production_1_of_rule_template_item},
265 $tracelevel)
266 if defined $::RD_TRACE;
267 262 my $thisprod = $thisrule->{"prods"}[3];
268 262 $text = $_[1];
269 262 my $_savetext;
270 262 @item = (q{_alternation_1_of_production_1_of_rule_template_item});
271 262 %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_template_item});
272 262 my $repcount = 0;
273  
274  
275 262 ▶ Parse::RecDescent::_trace(q{Trying subrule: [comment]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 262 262
276 Parse::RecDescent::_tracefirst($text),
277 q{_alternation_1_of_production_1_of_rule_template_item},
278 $tracelevel)
279 if defined $::RD_TRACE;
280 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
281 262 $expectation->is(q{})->at($text);
282 262 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::comment($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = comment($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 259 3 262
283 {
284
285 259 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [comment]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
286 Parse::RecDescent::_tracefirst($text),
287 q{_alternation_1_of_production_1_of_rule_template_item},
288 $tracelevel)
289 if defined $::RD_TRACE;
290 259 $expectation->failed();
291 259 last;
292 }
293 3 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [comment]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
294 . $_tok . q{]},
295  
296 Parse::RecDescent::_tracefirst($text),
297 q{_alternation_1_of_production_1_of_rule_template_item},
298 $tracelevel)
299 if defined $::RD_TRACE;
300 3 $item{q{comment}} = $_tok;
301 3 push @item, $_tok;
302
303 }
304  
305 3 ▶ Parse::RecDescent::_trace(q{>>Matched production: [comment]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
306 Parse::RecDescent::_tracefirst($text),
307 q{_alternation_1_of_production_1_of_rule_template_item},
308 $tracelevel)
309 if defined $::RD_TRACE;
310  
311  
312  
313 3 $_matched = 1;
314 3 last;
315 }
316  
317  
318 289 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 259 30 289
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
300259
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
319 {
320
321 259 ▶ Parse::RecDescent::_trace(q{Trying production: [unescaped_variable_amp]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
322 Parse::RecDescent::_tracefirst($_[1]),
323 q{_alternation_1_of_production_1_of_rule_template_item},
324 $tracelevel)
325 if defined $::RD_TRACE;
326 259 my $thisprod = $thisrule->{"prods"}[4];
327 259 $text = $_[1];
328 259 my $_savetext;
329 259 @item = (q{_alternation_1_of_production_1_of_rule_template_item});
330 259 %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_template_item});
331 259 my $repcount = 0;
332  
333  
334 259 ▶ Parse::RecDescent::_trace(q{Trying subrule: [unescaped_variable_amp]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
335 Parse::RecDescent::_tracefirst($text),
336 q{_alternation_1_of_production_1_of_rule_template_item},
337 $tracelevel)
338 if defined $::RD_TRACE;
339 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
340 259 $expectation->is(q{})->at($text);
341 259 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::unescaped_variable_amp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = unescaped_variable_amp($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 259 0 259
342 {
343
344 259 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [unescaped_variable_amp]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
345 Parse::RecDescent::_tracefirst($text),
346 q{_alternation_1_of_production_1_of_rule_template_item},
347 $tracelevel)
348 if defined $::RD_TRACE;
349 259 $expectation->failed();
350 259 last;
351 }
352 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [unescaped_variable_amp]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
353 . $_tok . q{]},
354  
355 Parse::RecDescent::_tracefirst($text),
356 q{_alternation_1_of_production_1_of_rule_template_item},
357 $tracelevel)
358 if defined $::RD_TRACE;
359 0 $item{q{unescaped_variable_amp}} = $_tok;
360 0 push @item, $_tok;
361
362 }
363  
364 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [unescaped_variable_amp]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
365 Parse::RecDescent::_tracefirst($text),
366 q{_alternation_1_of_production_1_of_rule_template_item},
367 $tracelevel)
368 if defined $::RD_TRACE;
369  
370  
371  
372 0 $_matched = 1;
373 0 last;
374 }
375  
376  
377 289 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 259 30 289
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
300259
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
378 {
379
380 259 ▶ Parse::RecDescent::_trace(q{Trying production: [unescaped_variable]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
381 Parse::RecDescent::_tracefirst($_[1]),
382 q{_alternation_1_of_production_1_of_rule_template_item},
383 $tracelevel)
384 if defined $::RD_TRACE;
385 259 my $thisprod = $thisrule->{"prods"}[5];
386 259 $text = $_[1];
387 259 my $_savetext;
388 259 @item = (q{_alternation_1_of_production_1_of_rule_template_item});
389 259 %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_template_item});
390 259 my $repcount = 0;
391  
392  
393 259 ▶ Parse::RecDescent::_trace(q{Trying subrule: [unescaped_variable]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
394 Parse::RecDescent::_tracefirst($text),
395 q{_alternation_1_of_production_1_of_rule_template_item},
396 $tracelevel)
397 if defined $::RD_TRACE;
398 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
399 259 $expectation->is(q{})->at($text);
400 259 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::unescaped_variable($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = unescaped_variable($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 259 0 259
401 {
402
403 259 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [unescaped_variable]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
404 Parse::RecDescent::_tracefirst($text),
405 q{_alternation_1_of_production_1_of_rule_template_item},
406 $tracelevel)
407 if defined $::RD_TRACE;
408 259 $expectation->failed();
409 259 last;
410 }
411 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [unescaped_variable]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
412 . $_tok . q{]},
413  
414 Parse::RecDescent::_tracefirst($text),
415 q{_alternation_1_of_production_1_of_rule_template_item},
416 $tracelevel)
417 if defined $::RD_TRACE;
418 0 $item{q{unescaped_variable}} = $_tok;
419 0 push @item, $_tok;
420
421 }
422  
423 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [unescaped_variable]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
424 Parse::RecDescent::_tracefirst($text),
425 q{_alternation_1_of_production_1_of_rule_template_item},
426 $tracelevel)
427 if defined $::RD_TRACE;
428  
429  
430  
431 0 $_matched = 1;
432 0 last;
433 }
434  
435  
436 289 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 259 30 289
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
300259
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
437 {
438
439 259 ▶ Parse::RecDescent::_trace(q{Trying production: [variable]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
440 Parse::RecDescent::_tracefirst($_[1]),
441 q{_alternation_1_of_production_1_of_rule_template_item},
442 $tracelevel)
443 if defined $::RD_TRACE;
444 259 my $thisprod = $thisrule->{"prods"}[6];
445 259 $text = $_[1];
446 259 my $_savetext;
447 259 @item = (q{_alternation_1_of_production_1_of_rule_template_item});
448 259 %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_template_item});
449 259 my $repcount = 0;
450  
451  
452 259 ▶ Parse::RecDescent::_trace(q{Trying subrule: [variable]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
453 Parse::RecDescent::_tracefirst($text),
454 q{_alternation_1_of_production_1_of_rule_template_item},
455 $tracelevel)
456 if defined $::RD_TRACE;
457 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
458 259 $expectation->is(q{})->at($text);
459 259 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::variable($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = variable($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 195 64 259
460 {
461
462 195 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [variable]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
463 Parse::RecDescent::_tracefirst($text),
464 q{_alternation_1_of_production_1_of_rule_template_item},
465 $tracelevel)
466 if defined $::RD_TRACE;
467 195 $expectation->failed();
468 195 last;
469 }
470 64 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [variable]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
471 . $_tok . q{]},
472  
473 Parse::RecDescent::_tracefirst($text),
474 q{_alternation_1_of_production_1_of_rule_template_item},
475 $tracelevel)
476 if defined $::RD_TRACE;
477 64 $item{q{variable}} = $_tok;
478 64 push @item, $_tok;
479
480 }
481  
482 64 ▶ Parse::RecDescent::_trace(q{>>Matched production: [variable]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
483 Parse::RecDescent::_tracefirst($text),
484 q{_alternation_1_of_production_1_of_rule_template_item},
485 $tracelevel)
486 if defined $::RD_TRACE;
487  
488  
489  
490 64 $_matched = 1;
491 64 last;
492 }
493  
494  
495 289 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 195 94 289
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
940195
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
496 {
497
498 195 ▶ Parse::RecDescent::_trace(q{Trying production: [verbatim]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
499 Parse::RecDescent::_tracefirst($_[1]),
500 q{_alternation_1_of_production_1_of_rule_template_item},
501 $tracelevel)
502 if defined $::RD_TRACE;
503 195 my $thisprod = $thisrule->{"prods"}[7];
504 195 $text = $_[1];
505 195 my $_savetext;
506 195 @item = (q{_alternation_1_of_production_1_of_rule_template_item});
507 195 %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_template_item});
508 195 my $repcount = 0;
509  
510  
511 195 ▶ Parse::RecDescent::_trace(q{Trying subrule: [verbatim]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
512 Parse::RecDescent::_tracefirst($text),
513 q{_alternation_1_of_production_1_of_rule_template_item},
514 $tracelevel)
515 if defined $::RD_TRACE;
516 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
517 195 $expectation->is(q{})->at($text);
518 195 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::verbatim($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = verbatim($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 195 195
519 {
520
521 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [verbatim]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
522 Parse::RecDescent::_tracefirst($text),
523 q{_alternation_1_of_production_1_of_rule_template_item},
524 $tracelevel)
525 if defined $::RD_TRACE;
526 0 $expectation->failed();
527 0 last;
528 }
529 195 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [verbatim]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
530 . $_tok . q{]},
531  
532 Parse::RecDescent::_tracefirst($text),
533 q{_alternation_1_of_production_1_of_rule_template_item},
534 $tracelevel)
535 if defined $::RD_TRACE;
536 195 $item{q{verbatim}} = $_tok;
537 195 push @item, $_tok;
538
539 }
540  
541 195 ▶ Parse::RecDescent::_trace(q{>>Matched production: [verbatim]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
542 Parse::RecDescent::_tracefirst($text),
543 q{_alternation_1_of_production_1_of_rule_template_item},
544 $tracelevel)
545 if defined $::RD_TRACE;
546  
547  
548  
549 195 $_matched = 1;
550 195 last;
551 }
552  
553  
554 289 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 0 289 289
555 {
556
557 0 ▶ Parse::RecDescent::_trace(q{Trying production: [<error...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
558 Parse::RecDescent::_tracefirst($_[1]),
559 q{_alternation_1_of_production_1_of_rule_template_item},
560 $tracelevel)
561 if defined $::RD_TRACE;
562 0 my $thisprod = $thisrule->{"prods"}[8];
563
564 0 my $_savetext;
565 0 @item = (q{_alternation_1_of_production_1_of_rule_template_item});
566 0 %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_template_item});
567 0 my $repcount = 0;
568  
569  
570
571  
572 0 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
573 Parse::RecDescent::_tracefirst($text),
574 q{_alternation_1_of_production_1_of_rule_template_item},
575 $tracelevel)
576 if defined $::RD_TRACE;
577 0 ▶ $_tok = do { if (1) { do {
Branch: 1 branch
BranchTrueFalseTotal
unless ($_noactions) 0 0 0
578 0 my $rule = $item[0];
579 0 $rule =~ s/_/ /g;
580 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
581 0 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
582 0 } unless $_noactions; undef } else {0} };
583 0 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 0 0 0
584 {
585 0 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
586 . $_tok . q{])},
587 Parse::RecDescent::_tracefirst($text))
588 if defined $::RD_TRACE;
589 }
590 else
591 {
592 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
593 Parse::RecDescent::_tracefirst($text))
594 if defined $::RD_TRACE;
595 }
596
597 0 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 0 0
598 0 push @item, $item{__DIRECTIVE1__}=$_tok;
599
600  
601 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error...>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
602 Parse::RecDescent::_tracefirst($text),
603 q{_alternation_1_of_production_1_of_rule_template_item},
604 $tracelevel)
605 if defined $::RD_TRACE;
606  
607  
608  
609 0 $_matched = 1;
610 0 last;
611 }
612  
613  
614 289 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 289 289
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
28900
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
615 {
616
617  
618 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
619 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
620 Parse::RecDescent::_tracefirst($_[1]),
621 q{_alternation_1_of_production_1_of_rule_template_item},
622 $tracelevel)
623 if defined $::RD_TRACE;
624 0 return undef;
625 }
626 289 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 289 289
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
02890
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
627 {
628 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
629 q{_alternation_1_of_production_1_of_rule_template_item},
630 $tracelevel)
631 if defined $::RD_TRACE;
632 0 $return = $score_return;
633 }
634 289 splice @{$thisparser->{errors}}, $err_at;
635 289 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 289 0 289
636 289 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 289 289
637 {
638 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
639 $return . q{])}, "",
640 q{_alternation_1_of_production_1_of_rule_template_item},
641 $tracelevel);
642 0 Parse::RecDescent::_trace(q{(consumed: [} .
643 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
644 Parse::RecDescent::_tracefirst($text),
645 , q{_alternation_1_of_production_1_of_rule_template_item},
646 $tracelevel)
647 }
648 289 $_[1] = $text;
649 289 return $return;
650 }
651  
652 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
653 sub Parse::RecDescent::Template::Mustache::Parser::close_section
654 {
655 56 ▶ my $thisparser = $_[0];
Subroutine close_section: called CC=78 SCAR=58.4
656 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
657 56 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
560
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
658 56 $ERRORS = 0;
659 56 my $thisrule = $thisparser->{"rules"}{"close_section"};
660  
661 56 ▶ Parse::RecDescent::_trace(q{Trying rule: [close_section]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 56 56
662 Parse::RecDescent::_tracefirst($_[1]),
663 q{close_section},
664 $tracelevel)
665 if defined $::RD_TRACE;
666  
667
668 56 my $err_at = @{$thisparser->{errors}};
669  
670 56 my $score;
671 my $score_return;
672 56 my $_tok;
673 56 my $return = undef;
674 56 my $_matched=0;
675 56 my $commit=0;
676 56 my @item = ();
677 56 my %item = ();
678 56 my $repeating = $_[2];
679 56 my $_noactions = $_[3];
680 56 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 56 0 56
681 56 my $_itempos = $_[5];
682 56 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 56 56
683 56 my $text;
684 my $lastsep;
685 56 my $current_match;
686 56 my $expectation = new Parse::RecDescent::Expectation(q{/\\s*/});
687 56 $expectation->at($_[1]);
688
689 56 my $thisoffset;
690 56 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
691
692 56 my $thisline;
693 56 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
694  
695
696  
697 56 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 56 0 56
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0056
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
698 {
699
700 56 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\s*/ opening_tag '/' /\\s*/ '$arg[0]' /\\s*/ closing_tag /\\s*/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 56 56
701 Parse::RecDescent::_tracefirst($_[1]),
702 q{close_section},
703 $tracelevel)
704 if defined $::RD_TRACE;
705 56 my $thisprod = $thisrule->{"prods"}[0];
706 56 $text = $_[1];
707 56 my $_savetext;
708 56 @item = (q{close_section});
709 56 %item = (__RULE__ => q{close_section});
710 56 my $repcount = 0;
711  
712  
713 56 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 56 56
714 q{close_section},
715 $tracelevel)
716 if defined $::RD_TRACE;
717 56 undef $lastsep;
718 56 $expectation->is(q{})->at($text);
719
720  
721 56 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 56 56
$lastsep = $1 and "" 0 56 56
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0056
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
722 {
723 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
724 0 $expectation->failed();
725 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
726 Parse::RecDescent::_tracefirst($text))
727 if defined $::RD_TRACE;
728  
729 0 last;
730 }
731 56 $current_match = substr($text, $-[0], $+[0] - $-[0]);
732 56 substr($text,0,length($current_match),q{});
733 56 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 56 56
734 . $current_match . q{])},
735 Parse::RecDescent::_tracefirst($text))
736 if defined $::RD_TRACE;
737 56 push @item, $item{__PATTERN1__}=$current_match;
738
739  
740 56 ▶ Parse::RecDescent::_trace(q{Trying subrule: [opening_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 56 56
741 Parse::RecDescent::_tracefirst($text),
742 q{close_section},
743 $tracelevel)
744 if defined $::RD_TRACE;
745 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
746 56 $expectation->is(q{opening_tag})->at($text);
747 56 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::opening_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = opening_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 5 51 56
748 {
749
750 5 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [opening_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
751 Parse::RecDescent::_tracefirst($text),
752 q{close_section},
753 $tracelevel)
754 if defined $::RD_TRACE;
755 5 $expectation->failed();
756 5 last;
757 }
758 51 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [opening_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 51 51
759 . $_tok . q{]},
760  
761 Parse::RecDescent::_tracefirst($text),
762 q{close_section},
763 $tracelevel)
764 if defined $::RD_TRACE;
765 51 $item{q{opening_tag}} = $_tok;
766 51 push @item, $_tok;
767
768 }
769  
770 51 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['/']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 51 51
771 Parse::RecDescent::_tracefirst($text),
772 q{close_section},
773 $tracelevel)
774 if defined $::RD_TRACE;
775 51 undef $lastsep;
776 51 $expectation->is(q{'/'})->at($text);
777
778  
779 51 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\//)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A/]) 19 32 51
$lastsep = $1 and "" 0 51 51
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A/]
!ll&&!rl&&r
01932
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A/]
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ m[\A/]
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ m[\A/]
ABresult
0X0
100
111
780 {
781 19 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 19 0 19
782
783 19 $expectation->failed();
784 19 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 19 19
785 Parse::RecDescent::_tracefirst($text))
786 if defined $::RD_TRACE;
787 19 last;
788 }
789 32 $current_match = substr($text, $-[0], $+[0] - $-[0]);
790 32 substr($text,0,length($current_match),q{});
791 32 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
792 . $current_match . q{])},
793 Parse::RecDescent::_tracefirst($text))
794 if defined $::RD_TRACE;
795 32 push @item, $item{__STRING1__}=$current_match;
796
797  
798 32 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
799 q{close_section},
800 $tracelevel)
801 if defined $::RD_TRACE;
802 32 undef $lastsep;
803 32 $expectation->is(q{/\\s*/})->at($text);
804
805  
806 32 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 32 32
$lastsep = $1 and "" 0 32 32
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0032
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
807 {
808 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
809 0 $expectation->failed();
810 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
811 Parse::RecDescent::_tracefirst($text))
812 if defined $::RD_TRACE;
813  
814 0 last;
815 }
816 32 $current_match = substr($text, $-[0], $+[0] - $-[0]);
817 32 substr($text,0,length($current_match),q{});
818 32 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
819 . $current_match . q{])},
820 Parse::RecDescent::_tracefirst($text))
821 if defined $::RD_TRACE;
822 32 push @item, $item{__PATTERN2__}=$current_match;
823
824  
825 32 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['$arg[0]']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
826 Parse::RecDescent::_tracefirst($text),
827 q{close_section},
828 $tracelevel)
829 if defined $::RD_TRACE;
830 32 undef $lastsep;
831 32 $expectation->is(q{'$arg[0]'})->at($text);
832
833  
834 32 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "$arg[0]"; 1 } and
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "$arg[0]"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 10 22 32
$lastsep = $1 and "" 0 32 32
Condition55%5/9
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { and do {
!ll&&!rl&&r
10022
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
01022
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do {
!ll&&!rl&&r
0032
MC/DC25%1/4
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "$arg[0]"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e do { $_tok = "$arg[0]"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
Truth table40%2/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= do { $_tok = "$arg[0]"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
835 substr($text,0,length($_tok)) eq $_tok and
836 22 do { substr($text,0,length($_tok)) = ""; 1; }
837 )
838 {
839 10 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 10 0 10
840
841 10 $expectation->failed();
842 10 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
843 Parse::RecDescent::_tracefirst($text))
844 if defined $::RD_TRACE;
845 10 last;
846 }
847 22 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
848 . $_tok . q{])},
849 Parse::RecDescent::_tracefirst($text))
850 if defined $::RD_TRACE;
851 22 push @item, $item{__STRING2__}=$_tok;
852
853  
854 22 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
855 q{close_section},
856 $tracelevel)
857 if defined $::RD_TRACE;
858 22 undef $lastsep;
859 22 $expectation->is(q{/\\s*/})->at($text);
860
861  
862 22 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 22 22
$lastsep = $1 and "" 0 22 22
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0022
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
863 {
864 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
865 0 $expectation->failed();
866 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
867 Parse::RecDescent::_tracefirst($text))
868 if defined $::RD_TRACE;
869  
870 0 last;
871 }
872 22 $current_match = substr($text, $-[0], $+[0] - $-[0]);
873 22 substr($text,0,length($current_match),q{});
874 22 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
875 . $current_match . q{])},
876 Parse::RecDescent::_tracefirst($text))
877 if defined $::RD_TRACE;
878 22 push @item, $item{__PATTERN3__}=$current_match;
879
880  
881 22 ▶ Parse::RecDescent::_trace(q{Trying subrule: [closing_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
882 Parse::RecDescent::_tracefirst($text),
883 q{close_section},
884 $tracelevel)
885 if defined $::RD_TRACE;
886 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
887 22 $expectation->is(q{closing_tag})->at($text);
888 22 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::closing_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = closing_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 22 22
889 {
890
891 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [closing_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
892 Parse::RecDescent::_tracefirst($text),
893 q{close_section},
894 $tracelevel)
895 if defined $::RD_TRACE;
896 0 $expectation->failed();
897 0 last;
898 }
899 22 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [closing_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
900 . $_tok . q{]},
901  
902 Parse::RecDescent::_tracefirst($text),
903 q{close_section},
904 $tracelevel)
905 if defined $::RD_TRACE;
906 22 $item{q{closing_tag}} = $_tok;
907 22 push @item, $_tok;
908
909 }
910  
911 22 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
912 q{close_section},
913 $tracelevel)
914 if defined $::RD_TRACE;
915 22 undef $lastsep;
916 22 $expectation->is(q{/\\s*/})->at($text);
917
918  
919 22 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 22 22
$lastsep = $1 and "" 0 22 22
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0022
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
920 {
921 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
922 0 $expectation->failed();
923 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
924 Parse::RecDescent::_tracefirst($text))
925 if defined $::RD_TRACE;
926  
927 0 last;
928 }
929 22 $current_match = substr($text, $-[0], $+[0] - $-[0]);
930 22 substr($text,0,length($current_match),q{});
931 22 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
932 . $current_match . q{])},
933 Parse::RecDescent::_tracefirst($text))
934 if defined $::RD_TRACE;
935 22 push @item, $item{__PATTERN4__}=$current_match;
936
937  
938 22 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
939 Parse::RecDescent::_tracefirst($text),
940 q{close_section},
941 $tracelevel)
942 if defined $::RD_TRACE;
943
944  
945 22 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 11 11 22
946 11 my $prev = $thisparser->{prev_is_standalone};
947 11 $thisparser->{prev_is_standalone} = 0;
948 11 ▶ if ( $item[1] =~ /\n/ or $prev) {
Branch: 1 branch
BranchTrueFalseTotal
if ($item[1] =~ /\n/ or $prev) 0 11 11
Condition33%1/3
$item[1] =~ /\n/ or $prev
l!l&&r!l&&!r
0011
MC/DC0%0/2
$item[1] =~ /\n/ or $prev
$item[1] =~ /\n/ $prev
Truth table33%1/3
A or B
A= $item[1] =~ /\n/B= $prev
ABresult
1X1
011
000
949 0 ▶ if ( $item[8] =~ /\n/ or length $text == 0 ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($item[8] =~ /\n/ or length $text == 0) 0 0 0
Condition0%0/3
$item[8] =~ /\n/ or length $text == 0
l!l&&r!l&&!r
000
MC/DC0%0/2
$item[8] =~ /\n/ or length $text == 0
$item[8] =~ /\n/ length $text == 0
Truth table0%0/3
A or B
A= $item[8] =~ /\n/B= length $text == 0
ABresult
1X1
011
000
950 0 $item[1] =~ s/(^|\n)[ \t]*?$/$1/;
951 0 $item[8] =~ s/^.*?\n//;
952 0 $thisparser->{prev_is_standalone} = 1;
953 }
954 }
955 [
956 11 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
957 Template::Mustache::Token::Verbatim->new( content => $item[8] ),
958 ]
959 };
960 22 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 22 22
961 {
962 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
963 if defined $::RD_TRACE;
964 0 last;
965 }
966 22 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
967 . $_tok . q{])},
968 Parse::RecDescent::_tracefirst($text))
969 if defined $::RD_TRACE;
970 22 push @item, $_tok;
971 22 $item{__ACTION1__}=$_tok;
972
973  
974 22 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\s*/ opening_tag '/' /\\s*/ '$arg[0]' /\\s*/ closing_tag /\\s*/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
975 Parse::RecDescent::_tracefirst($text),
976 q{close_section},
977 $tracelevel)
978 if defined $::RD_TRACE;
979  
980  
981  
982 22 $_matched = 1;
983 22 last;
984 }
985  
986  
987 56 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 34 22 56
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
22034
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
988 {
989
990  
991 34 $_[1] = $text; # NOT SURE THIS IS NEEDED
992 34 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
993 Parse::RecDescent::_tracefirst($_[1]),
994 q{close_section},
995 $tracelevel)
996 if defined $::RD_TRACE;
997 34 return undef;
998 }
999 22 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 22 22
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0220
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
1000 {
1001 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1002 q{close_section},
1003 $tracelevel)
1004 if defined $::RD_TRACE;
1005 0 $return = $score_return;
1006 }
1007 22 splice @{$thisparser->{errors}}, $err_at;
1008 22 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 22 0 22
1009 22 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 22 22
1010 {
1011 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1012 $return . q{])}, "",
1013 q{close_section},
1014 $tracelevel);
1015 0 Parse::RecDescent::_trace(q{(consumed: [} .
1016 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1017 Parse::RecDescent::_tracefirst($text),
1018 , q{close_section},
1019 $tracelevel)
1020 }
1021 22 $_[1] = $text;
1022 22 return $return;
1023 }
1024  
1025 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1026 sub Parse::RecDescent::Template::Mustache::Parser::closing_tag
1027 {
1028 125 ▶ my $thisparser = $_[0];
Subroutine closing_tag: called CC=26 SCAR=40.0
1029 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1030 125 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
1250
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
1031 125 $ERRORS = 0;
1032 125 my $thisrule = $thisparser->{"rules"}{"closing_tag"};
1033  
1034 125 ▶ Parse::RecDescent::_trace(q{Trying rule: [closing_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
1035 Parse::RecDescent::_tracefirst($_[1]),
1036 q{closing_tag},
1037 $tracelevel)
1038 if defined $::RD_TRACE;
1039  
1040
1041 125 my $err_at = @{$thisparser->{errors}};
1042  
1043 125 my $score;
1044 my $score_return;
1045 125 my $_tok;
1046 125 my $return = undef;
1047 125 my $_matched=0;
1048 125 my $commit=0;
1049 125 my @item = ();
1050 125 my %item = ();
1051 125 my $repeating = $_[2];
1052 125 my $_noactions = $_[3];
1053 125 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 125 0 125
1054 125 my $_itempos = $_[5];
1055 125 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 83 42 125
1056 125 my $text;
1057 my $lastsep;
1058 125 my $current_match;
1059 125 my $expectation = new Parse::RecDescent::Expectation(q{'$thisparser->\{closing_tag\}'});
1060 125 $expectation->at($_[1]);
1061
1062 125 my $thisoffset;
1063 125 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
1064
1065 125 my $thisline;
1066 125 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1067  
1068
1069  
1070 125 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 125 0 125
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00125
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1071 {
1072
1073 125 ▶ Parse::RecDescent::_trace(q{Trying production: ['$thisparser->\{closing_tag\}']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
1074 Parse::RecDescent::_tracefirst($_[1]),
1075 q{closing_tag},
1076 $tracelevel)
1077 if defined $::RD_TRACE;
1078 125 my $thisprod = $thisrule->{"prods"}[0];
1079 125 $text = $_[1];
1080 125 my $_savetext;
1081 125 @item = (q{closing_tag});
1082 125 %item = (__RULE__ => q{closing_tag});
1083 125 my $repcount = 0;
1084  
1085  
1086 125 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['$thisparser->\{closing_tag\}']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
1087 Parse::RecDescent::_tracefirst($text),
1088 q{closing_tag},
1089 $tracelevel)
1090 if defined $::RD_TRACE;
1091 125 undef $lastsep;
1092 125 $expectation->is(q{})->at($text);
1093
1094  
1095 125 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "$thisparser->{closing_tag}"; 1 } and
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = qq[$thisparser->{"closing_tag"}]; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 125 125
$lastsep = $1 and "" 0 125 125
Condition33%3/9
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { and do {
!ll&&!rl&&r
00125
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
00125
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do {
!ll&&!rl&&r
00125
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = qq[$thisparser->{"closing_tag"}]; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e do { $_tok = qq[$thisparser->{"closing_tag"}]; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
Truth table20%1/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= do { $_tok = qq[$thisparser->{"closing_tag"}]; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
1096 substr($text,0,length($_tok)) eq $_tok and
1097 125 do { substr($text,0,length($_tok)) = ""; 1; }
1098 )
1099 {
1100 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
1101
1102 0 $expectation->failed();
1103 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1104 Parse::RecDescent::_tracefirst($text))
1105 if defined $::RD_TRACE;
1106 0 last;
1107 }
1108 125 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
1109 . $_tok . q{])},
1110 Parse::RecDescent::_tracefirst($text))
1111 if defined $::RD_TRACE;
1112 125 push @item, $item{__STRING1__}=$_tok;
1113
1114  
1115 125 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['$thisparser->\{closing_tag\}']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
1116 Parse::RecDescent::_tracefirst($text),
1117 q{closing_tag},
1118 $tracelevel)
1119 if defined $::RD_TRACE;
1120  
1121  
1122  
1123 125 $_matched = 1;
1124 125 last;
1125 }
1126  
1127  
1128 125 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 125 125
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
12500
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
1129 {
1130
1131  
1132 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
1133 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1134 Parse::RecDescent::_tracefirst($_[1]),
1135 q{closing_tag},
1136 $tracelevel)
1137 if defined $::RD_TRACE;
1138 0 return undef;
1139 }
1140 125 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 125 125
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
01250
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
1141 {
1142 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1143 q{closing_tag},
1144 $tracelevel)
1145 if defined $::RD_TRACE;
1146 0 $return = $score_return;
1147 }
1148 125 splice @{$thisparser->{errors}}, $err_at;
1149 125 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 125 0 125
1150 125 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 125 125
1151 {
1152 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1153 $return . q{])}, "",
1154 q{closing_tag},
1155 $tracelevel);
1156 0 Parse::RecDescent::_trace(q{(consumed: [} .
1157 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1158 Parse::RecDescent::_tracefirst($text),
1159 , q{closing_tag},
1160 $tracelevel)
1161 }
1162 125 $_[1] = $text;
1163 125 return $return;
1164 }
1165  
1166 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1167 sub Parse::RecDescent::Template::Mustache::Parser::comment
1168 {
1169 262 ▶ my $thisparser = $_[0];
Subroutine comment: called CC=26 SCAR=35.6
1170 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1171 262 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
2620
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
1172 262 $ERRORS = 0;
1173 262 my $thisrule = $thisparser->{"rules"}{"comment"};
1174  
1175 262 ▶ Parse::RecDescent::_trace(q{Trying rule: [comment]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 262 262
1176 Parse::RecDescent::_tracefirst($_[1]),
1177 q{comment},
1178 $tracelevel)
1179 if defined $::RD_TRACE;
1180  
1181
1182 262 my $err_at = @{$thisparser->{errors}};
1183  
1184 262 my $score;
1185 my $score_return;
1186 262 my $_tok;
1187 262 my $return = undef;
1188 262 my $_matched=0;
1189 262 my $commit=0;
1190 262 my @item = ();
1191 262 my %item = ();
1192 262 my $repeating = $_[2];
1193 262 my $_noactions = $_[3];
1194 262 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 262 0 262
1195 262 my $_itempos = $_[5];
1196 262 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 236 26 262
1197 262 my $text;
1198 my $lastsep;
1199 262 my $current_match;
1200 262 my $expectation = new Parse::RecDescent::Expectation(q{standalone_surround});
1201 262 $expectation->at($_[1]);
1202
1203 262 my $thisoffset;
1204 262 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
1205
1206 262 my $thisline;
1207 262 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1208  
1209
1210  
1211 262 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 262 0 262
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00262
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1212 {
1213
1214 262 ▶ Parse::RecDescent::_trace(q{Trying production: [standalone_surround]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 262 262
1215 Parse::RecDescent::_tracefirst($_[1]),
1216 q{comment},
1217 $tracelevel)
1218 if defined $::RD_TRACE;
1219 262 my $thisprod = $thisrule->{"prods"}[0];
1220 262 $text = $_[1];
1221 262 my $_savetext;
1222 262 @item = (q{comment});
1223 262 %item = (__RULE__ => q{comment});
1224 262 my $repcount = 0;
1225  
1226  
1227 262 ▶ Parse::RecDescent::_trace(q{Trying subrule: [standalone_surround]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 262 262
1228 Parse::RecDescent::_tracefirst($text),
1229 q{comment},
1230 $tracelevel)
1231 if defined $::RD_TRACE;
1232 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
1233 262 $expectation->is(q{})->at($text);
1234 262 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::standalone_surround($thisparser,$text,$repeating,$_noactions,sub { return [$item[0]] },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = standalone_surround($thisparser, $text, $repeating, $_noactions, sub { return [$item[0]]; } , undef))) 259 3 262
1235 {
1236
1237 259 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [standalone_surround]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
1238 Parse::RecDescent::_tracefirst($text),
1239 q{comment},
1240 $tracelevel)
1241 if defined $::RD_TRACE;
1242 259 $expectation->failed();
1243 259 last;
1244 }
1245 3 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [standalone_surround]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1246 . $_tok . q{]},
1247  
1248 Parse::RecDescent::_tracefirst($text),
1249 q{comment},
1250 $tracelevel)
1251 if defined $::RD_TRACE;
1252 3 $item{q{standalone_surround}} = $_tok;
1253 3 push @item, $_tok;
1254
1255 }
1256  
1257 3 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1258 Parse::RecDescent::_tracefirst($text),
1259 q{comment},
1260 $tracelevel)
1261 if defined $::RD_TRACE;
1262
1263  
1264 3 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 3 3
1265 3 Template::Mustache::Token::Verbatim->new(
1266 content => $item[1][0] . $item[1][1]
1267 ),
1268 };
1269 3 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 3 3
1270 {
1271 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1272 if defined $::RD_TRACE;
1273 0 last;
1274 }
1275 3 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1276 . $_tok . q{])},
1277 Parse::RecDescent::_tracefirst($text))
1278 if defined $::RD_TRACE;
1279 3 push @item, $_tok;
1280 3 $item{__ACTION1__}=$_tok;
1281
1282  
1283 3 ▶ Parse::RecDescent::_trace(q{>>Matched production: [standalone_surround]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1284 Parse::RecDescent::_tracefirst($text),
1285 q{comment},
1286 $tracelevel)
1287 if defined $::RD_TRACE;
1288  
1289  
1290  
1291 3 $_matched = 1;
1292 3 last;
1293 }
1294  
1295  
1296 262 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 259 3 262
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
30259
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
1297 {
1298
1299  
1300 259 $_[1] = $text; # NOT SURE THIS IS NEEDED
1301 259 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
1302 Parse::RecDescent::_tracefirst($_[1]),
1303 q{comment},
1304 $tracelevel)
1305 if defined $::RD_TRACE;
1306 259 return undef;
1307 }
1308 3 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 3 3
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
030
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
1309 {
1310 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1311 q{comment},
1312 $tracelevel)
1313 if defined $::RD_TRACE;
1314 0 $return = $score_return;
1315 }
1316 3 splice @{$thisparser->{errors}}, $err_at;
1317 3 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 3 0 3
1318 3 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 3 3
1319 {
1320 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1321 $return . q{])}, "",
1322 q{comment},
1323 $tracelevel);
1324 0 Parse::RecDescent::_trace(q{(consumed: [} .
1325 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1326 Parse::RecDescent::_tracefirst($text),
1327 , q{comment},
1328 $tracelevel)
1329 }
1330 3 $_[1] = $text;
1331 3 return $return;
1332 }
1333  
1334 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1335 sub Parse::RecDescent::Template::Mustache::Parser::comment_inner
1336 {
1337 84 ▶ my $thisparser = $_[0];
Subroutine comment_inner: called CC=36 SCAR=42.5
1338 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1339 84 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
840
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
1340 84 $ERRORS = 0;
1341 84 my $thisrule = $thisparser->{"rules"}{"comment_inner"};
1342  
1343 84 ▶ Parse::RecDescent::_trace(q{Trying rule: [comment_inner]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
1344 Parse::RecDescent::_tracefirst($_[1]),
1345 q{comment_inner},
1346 $tracelevel)
1347 if defined $::RD_TRACE;
1348  
1349
1350 84 my $err_at = @{$thisparser->{errors}};
1351  
1352 84 my $score;
1353 my $score_return;
1354 84 my $_tok;
1355 84 my $return = undef;
1356 84 my $_matched=0;
1357 84 my $commit=0;
1358 84 my @item = ();
1359 84 my %item = ();
1360 84 my $repeating = $_[2];
1361 84 my $_noactions = $_[3];
1362 84 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 84 0 84
1363 84 my $_itempos = $_[5];
1364 84 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 84 84
1365 84 my $text;
1366 my $lastsep;
1367 84 my $current_match;
1368 84 my $expectation = new Parse::RecDescent::Expectation(q{'!'});
1369 84 $expectation->at($_[1]);
1370
1371 84 my $thisoffset;
1372 84 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
1373
1374 84 my $thisline;
1375 84 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1376  
1377
1378  
1379 84 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 84 0 84
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0084
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1380 {
1381
1382 84 ▶ Parse::RecDescent::_trace(q{Trying production: ['!' /.*?(?=\\Q$item[2]\\E)/s]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
1383 Parse::RecDescent::_tracefirst($_[1]),
1384 q{comment_inner},
1385 $tracelevel)
1386 if defined $::RD_TRACE;
1387 84 my $thisprod = $thisrule->{"prods"}[0];
1388 84 $text = $_[1];
1389 84 my $_savetext;
1390 84 @item = (q{comment_inner});
1391 84 %item = (__RULE__ => q{comment_inner});
1392 84 my $repcount = 0;
1393  
1394  
1395 84 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['!']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
1396 Parse::RecDescent::_tracefirst($text),
1397 q{comment_inner},
1398 $tracelevel)
1399 if defined $::RD_TRACE;
1400 84 undef $lastsep;
1401 84 $expectation->is(q{})->at($text);
1402
1403  
1404 84 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\!/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\!/) 81 3 84
$lastsep = $1 and "" 0 84 84
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\!/
!ll&&!rl&&r
0813
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\!/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\!/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\!/
ABresult
0X0
100
111
1405 {
1406 81 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 81 0 81
1407
1408 81 $expectation->failed();
1409 81 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
1410 Parse::RecDescent::_tracefirst($text))
1411 if defined $::RD_TRACE;
1412 81 last;
1413 }
1414 3 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1415 3 substr($text,0,length($current_match),q{});
1416 3 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1417 . $current_match . q{])},
1418 Parse::RecDescent::_tracefirst($text))
1419 if defined $::RD_TRACE;
1420 3 push @item, $item{__STRING1__}=$current_match;
1421
1422  
1423 3 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1424 Parse::RecDescent::_tracefirst($text),
1425 q{comment_inner},
1426 $tracelevel)
1427 if defined $::RD_TRACE;
1428
1429  
1430 3 ▶ $_tok = ($_noactions) ? 0 : do { $thisparser->{closing_tag} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 3 3
1431 3 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 3 3
1432 {
1433 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1434 if defined $::RD_TRACE;
1435 0 last;
1436 }
1437 3 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1438 . $_tok . q{])},
1439 Parse::RecDescent::_tracefirst($text))
1440 if defined $::RD_TRACE;
1441 3 push @item, $_tok;
1442 3 $item{__ACTION1__}=$_tok;
1443
1444  
1445 3 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/.*?(?=\\Q$item[2]\\E)/s]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1446 q{comment_inner},
1447 $tracelevel)
1448 if defined $::RD_TRACE;
1449 3 undef $lastsep;
1450 3 $expectation->is(q{/.*?(?=\\Q$item[2]\\E)/s})->at($text);
1451
1452  
1453 3 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:.*?(?=\Q$item[2]\E))/s)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?(?=\Q$item[2]\E))/s) 0 3 3
$lastsep = $1 and "" 0 3 3
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?(?=\Q$item[2]\E))/s
!ll&&!rl&&r
003
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?(?=\Q$item[2]\E))/s
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:.*?(?=\Q$item[2]\E))/s
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:.*?(?=\Q$item[2]\E))/s
ABresult
0X0
100
111
1454 {
1455 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
1456 0 $expectation->failed();
1457 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1458 Parse::RecDescent::_tracefirst($text))
1459 if defined $::RD_TRACE;
1460  
1461 0 last;
1462 }
1463 3 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1464 3 substr($text,0,length($current_match),q{});
1465 3 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1466 . $current_match . q{])},
1467 Parse::RecDescent::_tracefirst($text))
1468 if defined $::RD_TRACE;
1469 3 push @item, $item{__PATTERN1__}=$current_match;
1470
1471  
1472 3 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['!' /.*?(?=\\Q$item[2]\\E)/s]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1473 Parse::RecDescent::_tracefirst($text),
1474 q{comment_inner},
1475 $tracelevel)
1476 if defined $::RD_TRACE;
1477  
1478  
1479  
1480 3 $_matched = 1;
1481 3 last;
1482 }
1483  
1484  
1485 84 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 81 3 84
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
3081
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
1486 {
1487
1488  
1489 81 $_[1] = $text; # NOT SURE THIS IS NEEDED
1490 81 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
1491 Parse::RecDescent::_tracefirst($_[1]),
1492 q{comment_inner},
1493 $tracelevel)
1494 if defined $::RD_TRACE;
1495 81 return undef;
1496 }
1497 3 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 3 3
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
030
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
1498 {
1499 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1500 q{comment_inner},
1501 $tracelevel)
1502 if defined $::RD_TRACE;
1503 0 $return = $score_return;
1504 }
1505 3 splice @{$thisparser->{errors}}, $err_at;
1506 3 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 3 0 3
1507 3 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 3 3
1508 {
1509 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1510 $return . q{])}, "",
1511 q{comment_inner},
1512 $tracelevel);
1513 0 Parse::RecDescent::_trace(q{(consumed: [} .
1514 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1515 Parse::RecDescent::_tracefirst($text),
1516 , q{comment_inner},
1517 $tracelevel)
1518 }
1519 3 $_[1] = $text;
1520 3 return $return;
1521 }
1522  
1523 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1524 sub Parse::RecDescent::Template::Mustache::Parser::delimiter_change
1525 {
1526 264 ▶ my $thisparser = $_[0];
Subroutine delimiter_change: called CC=27 SCAR=44.0
1527 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1528 264 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
2640
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
1529 264 $ERRORS = 0;
1530 264 my $thisrule = $thisparser->{"rules"}{"delimiter_change"};
1531  
1532 264 ▶ Parse::RecDescent::_trace(q{Trying rule: [delimiter_change]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 264 264
1533 Parse::RecDescent::_tracefirst($_[1]),
1534 q{delimiter_change},
1535 $tracelevel)
1536 if defined $::RD_TRACE;
1537  
1538
1539 264 my $err_at = @{$thisparser->{errors}};
1540  
1541 264 my $score;
1542 my $score_return;
1543 264 my $_tok;
1544 264 my $return = undef;
1545 264 my $_matched=0;
1546 264 my $commit=0;
1547 264 my @item = ();
1548 264 my %item = ();
1549 264 my $repeating = $_[2];
1550 264 my $_noactions = $_[3];
1551 264 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 264 0 264
1552 264 my $_itempos = $_[5];
1553 264 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 238 26 264
1554 264 my $text;
1555 my $lastsep;
1556 264 my $current_match;
1557 264 my $expectation = new Parse::RecDescent::Expectation(q{standalone_surround});
1558 264 $expectation->at($_[1]);
1559
1560 264 my $thisoffset;
1561 264 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
1562
1563 264 my $thisline;
1564 264 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1565  
1566
1567  
1568 264 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 264 0 264
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00264
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1569 {
1570
1571 264 ▶ Parse::RecDescent::_trace(q{Trying production: [standalone_surround]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 264 264
1572 Parse::RecDescent::_tracefirst($_[1]),
1573 q{delimiter_change},
1574 $tracelevel)
1575 if defined $::RD_TRACE;
1576 264 my $thisprod = $thisrule->{"prods"}[0];
1577 264 $text = $_[1];
1578 264 my $_savetext;
1579 264 @item = (q{delimiter_change});
1580 264 %item = (__RULE__ => q{delimiter_change});
1581 264 my $repcount = 0;
1582  
1583  
1584 264 ▶ Parse::RecDescent::_trace(q{Trying subrule: [standalone_surround]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 264 264
1585 Parse::RecDescent::_tracefirst($text),
1586 q{delimiter_change},
1587 $tracelevel)
1588 if defined $::RD_TRACE;
1589 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
1590 264 $expectation->is(q{})->at($text);
1591 264 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::standalone_surround($thisparser,$text,$repeating,$_noactions,sub { return [$item[0]] },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = standalone_surround($thisparser, $text, $repeating, $_noactions, sub { return [$item[0]]; } , undef))) 262 2 264
1592 {
1593
1594 262 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [standalone_surround]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 262 262
1595 Parse::RecDescent::_tracefirst($text),
1596 q{delimiter_change},
1597 $tracelevel)
1598 if defined $::RD_TRACE;
1599 262 $expectation->failed();
1600 262 last;
1601 }
1602 2 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [standalone_surround]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1603 . $_tok . q{]},
1604  
1605 Parse::RecDescent::_tracefirst($text),
1606 q{delimiter_change},
1607 $tracelevel)
1608 if defined $::RD_TRACE;
1609 2 $item{q{standalone_surround}} = $_tok;
1610 2 push @item, $_tok;
1611
1612 }
1613  
1614 2 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1615 Parse::RecDescent::_tracefirst($text),
1616 q{delimiter_change},
1617 $tracelevel)
1618 if defined $::RD_TRACE;
1619
1620  
1621 2 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 2 2
1622 2 ▶ die "needs two delimiters\n" unless @{ $item[1][2] } == 2;
Branch: 1 branch
BranchTrueFalseTotal
unless @{$item[1][2];} == 2 2 0 2
1623 ( $thisparser->{opening_tag},
1624 0 $thisparser->{closing_tag} ) = @{ $item[1][2] };
1625  
1626 0 Template::Mustache::Token::Verbatim->new( content =>
1627 $item[1][0] . $item[1][1]
1628 );
1629 };
1630 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
1631 {
1632 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1633 if defined $::RD_TRACE;
1634 0 last;
1635 }
1636 0 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1637 . $_tok . q{])},
1638 Parse::RecDescent::_tracefirst($text))
1639 if defined $::RD_TRACE;
1640 0 push @item, $_tok;
1641 0 $item{__ACTION1__}=$_tok;
1642
1643  
1644 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [standalone_surround]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1645 Parse::RecDescent::_tracefirst($text),
1646 q{delimiter_change},
1647 $tracelevel)
1648 if defined $::RD_TRACE;
1649  
1650  
1651  
1652 0 $_matched = 1;
1653 0 last;
1654 }
1655  
1656  
1657 262 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 262 0 262
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
00262
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
1658 {
1659
1660  
1661 262 $_[1] = $text; # NOT SURE THIS IS NEEDED
1662 262 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 262 262
1663 Parse::RecDescent::_tracefirst($_[1]),
1664 q{delimiter_change},
1665 $tracelevel)
1666 if defined $::RD_TRACE;
1667 262 return undef;
1668 }
1669 0 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 0 0
Condition0%0/3
not defined $return and defined $score
!ll&&!rl&&r
000
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
1670 {
1671 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1672 q{delimiter_change},
1673 $tracelevel)
1674 if defined $::RD_TRACE;
1675 0 $return = $score_return;
1676 }
1677 0 splice @{$thisparser->{errors}}, $err_at;
1678 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
1679 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
1680 {
1681 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1682 $return . q{])}, "",
1683 q{delimiter_change},
1684 $tracelevel);
1685 0 Parse::RecDescent::_trace(q{(consumed: [} .
1686 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1687 Parse::RecDescent::_tracefirst($text),
1688 , q{delimiter_change},
1689 $tracelevel)
1690 }
1691 0 $_[1] = $text;
1692 0 return $return;
1693 }
1694  
1695 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1696 sub Parse::RecDescent::Template::Mustache::Parser::delimiter_change_inner
1697 {
1698 86 ▶ my $thisparser = $_[0];
Subroutine delimiter_change_inner: called CC=55 SCAR=52.4
1699 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1700 86 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
860
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
1701 86 $ERRORS = 0;
1702 86 my $thisrule = $thisparser->{"rules"}{"delimiter_change_inner"};
1703  
1704 86 ▶ Parse::RecDescent::_trace(q{Trying rule: [delimiter_change_inner]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
1705 Parse::RecDescent::_tracefirst($_[1]),
1706 q{delimiter_change_inner},
1707 $tracelevel)
1708 if defined $::RD_TRACE;
1709  
1710
1711 86 my $err_at = @{$thisparser->{errors}};
1712  
1713 86 my $score;
1714 my $score_return;
1715 86 my $_tok;
1716 86 my $return = undef;
1717 86 my $_matched=0;
1718 86 my $commit=0;
1719 86 my @item = ();
1720 86 my %item = ();
1721 86 my $repeating = $_[2];
1722 86 my $_noactions = $_[3];
1723 86 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 86 0 86
1724 86 my $_itempos = $_[5];
1725 86 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 86 86
1726 86 my $text;
1727 my $lastsep;
1728 86 my $current_match;
1729 86 my $expectation = new Parse::RecDescent::Expectation(q{'='});
1730 86 $expectation->at($_[1]);
1731
1732 86 my $thisoffset;
1733 86 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
1734
1735 86 my $thisline;
1736 86 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1737  
1738
1739  
1740 86 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 86 0 86
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0086
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1741 {
1742
1743 86 ▶ Parse::RecDescent::_trace(q{Trying production: ['=' /\\s*/ /.*?(?=\\=\\Q$item[2]\\E)/s '=']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
1744 Parse::RecDescent::_tracefirst($_[1]),
1745 q{delimiter_change_inner},
1746 $tracelevel)
1747 if defined $::RD_TRACE;
1748 86 my $thisprod = $thisrule->{"prods"}[0];
1749 86 $text = $_[1];
1750 86 my $_savetext;
1751 86 @item = (q{delimiter_change_inner});
1752 86 %item = (__RULE__ => q{delimiter_change_inner});
1753 86 my $repcount = 0;
1754  
1755  
1756 86 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['=']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
1757 Parse::RecDescent::_tracefirst($text),
1758 q{delimiter_change_inner},
1759 $tracelevel)
1760 if defined $::RD_TRACE;
1761 86 undef $lastsep;
1762 86 $expectation->is(q{})->at($text);
1763
1764  
1765 86 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\=/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/) 84 2 86
$lastsep = $1 and "" 0 86 86
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
!ll&&!rl&&r
0842
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\=/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\=/
ABresult
0X0
100
111
1766 {
1767 84 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 84 0 84
1768
1769 84 $expectation->failed();
1770 84 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
1771 Parse::RecDescent::_tracefirst($text))
1772 if defined $::RD_TRACE;
1773 84 last;
1774 }
1775 2 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1776 2 substr($text,0,length($current_match),q{});
1777 2 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1778 . $current_match . q{])},
1779 Parse::RecDescent::_tracefirst($text))
1780 if defined $::RD_TRACE;
1781 2 push @item, $item{__STRING1__}=$current_match;
1782
1783  
1784 2 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1785 Parse::RecDescent::_tracefirst($text),
1786 q{delimiter_change_inner},
1787 $tracelevel)
1788 if defined $::RD_TRACE;
1789
1790  
1791 2 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 2 2
1792 $thisparser->{closing_tag}
1793 2 };
1794 2 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 2 2
1795 {
1796 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1797 if defined $::RD_TRACE;
1798 0 last;
1799 }
1800 2 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1801 . $_tok . q{])},
1802 Parse::RecDescent::_tracefirst($text))
1803 if defined $::RD_TRACE;
1804 2 push @item, $_tok;
1805 2 $item{__ACTION1__}=$_tok;
1806
1807  
1808 2 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1809 q{delimiter_change_inner},
1810 $tracelevel)
1811 if defined $::RD_TRACE;
1812 2 undef $lastsep;
1813 2 $expectation->is(q{/\\s*/})->at($text);
1814
1815  
1816 2 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 2 2
$lastsep = $1 and "" 0 2 2
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
002
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
1817 {
1818 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
1819 0 $expectation->failed();
1820 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1821 Parse::RecDescent::_tracefirst($text))
1822 if defined $::RD_TRACE;
1823  
1824 0 last;
1825 }
1826 2 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1827 2 substr($text,0,length($current_match),q{});
1828 2 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1829 . $current_match . q{])},
1830 Parse::RecDescent::_tracefirst($text))
1831 if defined $::RD_TRACE;
1832 2 push @item, $item{__PATTERN1__}=$current_match;
1833
1834  
1835 2 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/.*?(?=\\=\\Q$item[2]\\E)/s]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1836 q{delimiter_change_inner},
1837 $tracelevel)
1838 if defined $::RD_TRACE;
1839 2 undef $lastsep;
1840 2 $expectation->is(q{/.*?(?=\\=\\Q$item[2]\\E)/s})->at($text);
1841
1842  
1843 2 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:.*?(?=\=\Q$item[2]\E))/s)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?(?=\=\Q$item[2]\E))/s) 0 2 2
$lastsep = $1 and "" 0 2 2
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?(?=\=\Q$item[2]\E))/s
!ll&&!rl&&r
002
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?(?=\=\Q$item[2]\E))/s
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:.*?(?=\=\Q$item[2]\E))/s
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:.*?(?=\=\Q$item[2]\E))/s
ABresult
0X0
100
111
1844 {
1845 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
1846 0 $expectation->failed();
1847 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1848 Parse::RecDescent::_tracefirst($text))
1849 if defined $::RD_TRACE;
1850  
1851 0 last;
1852 }
1853 2 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1854 2 substr($text,0,length($current_match),q{});
1855 2 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1856 . $current_match . q{])},
1857 Parse::RecDescent::_tracefirst($text))
1858 if defined $::RD_TRACE;
1859 2 push @item, $item{__PATTERN2__}=$current_match;
1860
1861  
1862 2 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['=']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1863 Parse::RecDescent::_tracefirst($text),
1864 q{delimiter_change_inner},
1865 $tracelevel)
1866 if defined $::RD_TRACE;
1867 2 undef $lastsep;
1868 2 $expectation->is(q{'='})->at($text);
1869
1870  
1871 2 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\=/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/) 0 2 2
$lastsep = $1 and "" 0 2 2
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
!ll&&!rl&&r
002
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\=/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\=/
ABresult
0X0
100
111
1872 {
1873 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
1874
1875 0 $expectation->failed();
1876 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1877 Parse::RecDescent::_tracefirst($text))
1878 if defined $::RD_TRACE;
1879 0 last;
1880 }
1881 2 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1882 2 substr($text,0,length($current_match),q{});
1883 2 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1884 . $current_match . q{])},
1885 Parse::RecDescent::_tracefirst($text))
1886 if defined $::RD_TRACE;
1887 2 push @item, $item{__STRING2__}=$current_match;
1888
1889  
1890 2 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1891 Parse::RecDescent::_tracefirst($text),
1892 q{delimiter_change_inner},
1893 $tracelevel)
1894 if defined $::RD_TRACE;
1895
1896  
1897 2 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 2 2
1898 2 [ split ' ', $item[4] ]
1899 };
1900 2 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 2 2
1901 {
1902 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1903 if defined $::RD_TRACE;
1904 0 last;
1905 }
1906 2 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1907 . $_tok . q{])},
1908 Parse::RecDescent::_tracefirst($text))
1909 if defined $::RD_TRACE;
1910 2 push @item, $_tok;
1911 2 $item{__ACTION2__}=$_tok;
1912
1913  
1914 2 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['=' /\\s*/ /.*?(?=\\=\\Q$item[2]\\E)/s '=']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1915 Parse::RecDescent::_tracefirst($text),
1916 q{delimiter_change_inner},
1917 $tracelevel)
1918 if defined $::RD_TRACE;
1919  
1920  
1921  
1922 2 $_matched = 1;
1923 2 last;
1924 }
1925  
1926  
1927 86 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 84 2 86
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
2084
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
1928 {
1929
1930  
1931 84 $_[1] = $text; # NOT SURE THIS IS NEEDED
1932 84 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
1933 Parse::RecDescent::_tracefirst($_[1]),
1934 q{delimiter_change_inner},
1935 $tracelevel)
1936 if defined $::RD_TRACE;
1937 84 return undef;
1938 }
1939 2 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 2 2
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
020
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
1940 {
1941 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1942 q{delimiter_change_inner},
1943 $tracelevel)
1944 if defined $::RD_TRACE;
1945 0 $return = $score_return;
1946 }
1947 2 splice @{$thisparser->{errors}}, $err_at;
1948 2 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 2 0 2
1949 2 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 2 2
1950 {
1951 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1952 $return . q{])}, "",
1953 q{delimiter_change_inner},
1954 $tracelevel);
1955 0 Parse::RecDescent::_trace(q{(consumed: [} .
1956 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1957 Parse::RecDescent::_tracefirst($text),
1958 , q{delimiter_change_inner},
1959 $tracelevel)
1960 }
1961 2 $_[1] = $text;
1962 2 return $return;
1963 }
1964  
1965 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1966 sub Parse::RecDescent::Template::Mustache::Parser::eofile
1967 {
1968 71 ▶ my $thisparser = $_[0];
Subroutine eofile: called CC=24 SCAR=34.4
1969 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1970 71 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
710
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
1971 71 $ERRORS = 0;
1972 71 my $thisrule = $thisparser->{"rules"}{"eofile"};
1973  
1974 71 ▶ Parse::RecDescent::_trace(q{Trying rule: [eofile]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
1975 Parse::RecDescent::_tracefirst($_[1]),
1976 q{eofile},
1977 $tracelevel)
1978 if defined $::RD_TRACE;
1979  
1980
1981 71 my $err_at = @{$thisparser->{errors}};
1982  
1983 71 my $score;
1984 my $score_return;
1985 71 my $_tok;
1986 71 my $return = undef;
1987 71 my $_matched=0;
1988 71 my $commit=0;
1989 71 my @item = ();
1990 71 my %item = ();
1991 71 my $repeating = $_[2];
1992 71 my $_noactions = $_[3];
1993 71 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 71 0 71
1994 71 my $_itempos = $_[5];
1995 71 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 71 0 71
1996 71 my $text;
1997 my $lastsep;
1998 71 my $current_match;
1999 71 my $expectation = new Parse::RecDescent::Expectation(q{/^\\Z/});
2000 71 $expectation->at($_[1]);
2001
2002 71 my $thisoffset;
2003 71 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
2004
2005 71 my $thisline;
2006 71 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2007  
2008
2009  
2010 71 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 71 0 71
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0071
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2011 {
2012
2013 71 ▶ Parse::RecDescent::_trace(q{Trying production: [/^\\Z/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
2014 Parse::RecDescent::_tracefirst($_[1]),
2015 q{eofile},
2016 $tracelevel)
2017 if defined $::RD_TRACE;
2018 71 my $thisprod = $thisrule->{"prods"}[0];
2019 71 $text = $_[1];
2020 71 my $_savetext;
2021 71 @item = (q{eofile});
2022 71 %item = (__RULE__ => q{eofile});
2023 71 my $repcount = 0;
2024  
2025  
2026 71 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^\\Z/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
2027 q{eofile},
2028 $tracelevel)
2029 if defined $::RD_TRACE;
2030 71 undef $lastsep;
2031 71 $expectation->is(q{})->at($text);
2032
2033  
2034 71 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^\Z)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/) 5 66 71
$lastsep = $1 and "" 0 71 71
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/
!ll&&!rl&&r
0566
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^\Z)/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^\Z)/
ABresult
0X0
100
111
2035 {
2036 5 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 5 0 5
2037 5 $expectation->failed();
2038 5 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
2039 Parse::RecDescent::_tracefirst($text))
2040 if defined $::RD_TRACE;
2041  
2042 5 last;
2043 }
2044 66 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2045 66 substr($text,0,length($current_match),q{});
2046 66 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
2047 . $current_match . q{])},
2048 Parse::RecDescent::_tracefirst($text))
2049 if defined $::RD_TRACE;
2050 66 push @item, $item{__PATTERN1__}=$current_match;
2051
2052  
2053 66 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/^\\Z/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
2054 Parse::RecDescent::_tracefirst($text),
2055 q{eofile},
2056 $tracelevel)
2057 if defined $::RD_TRACE;
2058  
2059  
2060  
2061 66 $_matched = 1;
2062 66 last;
2063 }
2064  
2065  
2066 71 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 5 66 71
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
6605
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
2067 {
2068
2069  
2070 5 $_[1] = $text; # NOT SURE THIS IS NEEDED
2071 5 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
2072 Parse::RecDescent::_tracefirst($_[1]),
2073 q{eofile},
2074 $tracelevel)
2075 if defined $::RD_TRACE;
2076 5 return undef;
2077 }
2078 66 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 66 66
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0660
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
2079 {
2080 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2081 q{eofile},
2082 $tracelevel)
2083 if defined $::RD_TRACE;
2084 0 $return = $score_return;
2085 }
2086 66 splice @{$thisparser->{errors}}, $err_at;
2087 66 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 66 0 66
2088 66 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 66 66
2089 {
2090 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2091 $return . q{])}, "",
2092 q{eofile},
2093 $tracelevel);
2094 0 Parse::RecDescent::_trace(q{(consumed: [} .
2095 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2096 Parse::RecDescent::_tracefirst($text),
2097 , q{eofile},
2098 $tracelevel)
2099 }
2100 66 $_[1] = $text;
2101 66 return $return;
2102 }
2103  
2104 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
2105 sub Parse::RecDescent::Template::Mustache::Parser::inner_section
2106 {
2107 38 ▶ my $thisparser = $_[0];
Subroutine inner_section: called CC=25 SCAR=35.0
2108 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
2109 38 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
380
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
2110 38 $ERRORS = 0;
2111 38 my $thisrule = $thisparser->{"rules"}{"inner_section"};
2112  
2113 38 ▶ Parse::RecDescent::_trace(q{Trying rule: [inner_section]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
2114 Parse::RecDescent::_tracefirst($_[1]),
2115 q{inner_section},
2116 $tracelevel)
2117 if defined $::RD_TRACE;
2118  
2119
2120 38 my $err_at = @{$thisparser->{errors}};
2121  
2122 38 my $score;
2123 my $score_return;
2124 38 my $_tok;
2125 38 my $return = undef;
2126 38 my $_matched=0;
2127 38 my $commit=0;
2128 38 my @item = ();
2129 38 my %item = ();
2130 38 my $repeating = $_[2];
2131 38 my $_noactions = $_[3];
2132 38 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 38 0 38
2133 38 my $_itempos = $_[5];
2134 38 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 38 38
2135 38 my $text;
2136 my $lastsep;
2137 38 my $current_match;
2138 38 my $expectation = new Parse::RecDescent::Expectation(q{close_section});
2139 38 $expectation->at($_[1]);
2140
2141 38 my $thisoffset;
2142 38 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
2143
2144 38 my $thisline;
2145 38 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2146  
2147
2148  
2149 38 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 38 0 38
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0038
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2150 {
2151
2152 38 ▶ Parse::RecDescent::_trace(q{Trying production: [close_section template_item]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
2153 Parse::RecDescent::_tracefirst($_[1]),
2154 q{inner_section},
2155 $tracelevel)
2156 if defined $::RD_TRACE;
2157 38 my $thisprod = $thisrule->{"prods"}[0];
2158 38 $text = $_[1];
2159 38 my $_savetext;
2160 38 @item = (q{inner_section});
2161 38 %item = (__RULE__ => q{inner_section});
2162 38 my $repcount = 0;
2163  
2164  
2165 38 ▶ Parse::RecDescent::_trace(q{Trying subrule: [close_section]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
2166 Parse::RecDescent::_tracefirst($text),
2167 q{inner_section},
2168 $tracelevel)
2169 if defined $::RD_TRACE;
2170 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
2171 38 $expectation->is(q{})->at($text);
2172 38 ▶ $_savetext = $text;if (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::close_section($thisparser,$text,$repeating,1,sub { return [ $arg[0] ] },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_tok = close_section($thisparser, $text, $repeating, 1, sub { return [$arg[0]]; } , undef))) 11 27 38
2173 {
2174 11 $text = $_savetext;
2175 11 ▶ Parse::RecDescent::_trace(q{<<...!Matched(reject) subrule: [close_section]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
2176 Parse::RecDescent::_tracefirst($text),
2177 q{inner_section},
2178 $tracelevel)
2179 if defined $::RD_TRACE;
2180 11 $expectation->failed();
2181 11 last;
2182 }
2183 27 ▶ Parse::RecDescent::_trace(q{>>...!Didn't match(keep) subrule: [close_section]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 27 27
2184 . $_tok . q{]},
2185  
2186 Parse::RecDescent::_tracefirst($text),
2187 q{inner_section},
2188 $tracelevel)
2189 if defined $::RD_TRACE;
2190 27 $item{q{close_section}} = $_tok;
2191 27 push @item, $_tok;
2192 27 $text = $_savetext;
2193 }
2194  
2195 27 ▶ Parse::RecDescent::_trace(q{Trying subrule: [template_item]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 27 27
2196 Parse::RecDescent::_tracefirst($text),
2197 q{inner_section},
2198 $tracelevel)
2199 if defined $::RD_TRACE;
2200 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
2201 27 $expectation->is(q{template_item})->at($text);
2202 27 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::template_item($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = template_item($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 27 27
2203 {
2204
2205 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [template_item]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2206 Parse::RecDescent::_tracefirst($text),
2207 q{inner_section},
2208 $tracelevel)
2209 if defined $::RD_TRACE;
2210 0 $expectation->failed();
2211 0 last;
2212 }
2213 27 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [template_item]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 27 27
2214 . $_tok . q{]},
2215  
2216 Parse::RecDescent::_tracefirst($text),
2217 q{inner_section},
2218 $tracelevel)
2219 if defined $::RD_TRACE;
2220 27 $item{q{template_item}} = $_tok;
2221 27 push @item, $_tok;
2222
2223 }
2224  
2225 27 ▶ Parse::RecDescent::_trace(q{>>Matched production: [close_section template_item]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 27 27
2226 Parse::RecDescent::_tracefirst($text),
2227 q{inner_section},
2228 $tracelevel)
2229 if defined $::RD_TRACE;
2230  
2231  
2232  
2233 27 $_matched = 1;
2234 27 last;
2235 }
2236  
2237  
2238 38 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 11 27 38
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
27011
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
2239 {
2240
2241  
2242 11 $_[1] = $text; # NOT SURE THIS IS NEEDED
2243 11 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
2244 Parse::RecDescent::_tracefirst($_[1]),
2245 q{inner_section},
2246 $tracelevel)
2247 if defined $::RD_TRACE;
2248 11 return undef;
2249 }
2250 27 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 27 27
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0270
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
2251 {
2252 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2253 q{inner_section},
2254 $tracelevel)
2255 if defined $::RD_TRACE;
2256 0 $return = $score_return;
2257 }
2258 27 splice @{$thisparser->{errors}}, $err_at;
2259 27 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 27 0 27
2260 27 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 27 27
2261 {
2262 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2263 $return . q{])}, "",
2264 q{inner_section},
2265 $tracelevel);
2266 0 Parse::RecDescent::_trace(q{(consumed: [} .
2267 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2268 Parse::RecDescent::_tracefirst($text),
2269 , q{inner_section},
2270 $tracelevel)
2271 }
2272 27 $_[1] = $text;
2273 27 return $return;
2274 }
2275  
2276 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
2277 sub Parse::RecDescent::Template::Mustache::Parser::open_section
2278 {
2279 275 ▶ my $thisparser = $_[0];
Subroutine open_section: called CC=75 SCAR=55.5
2280 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
2281 275 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
2750
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
2282 275 $ERRORS = 0;
2283 275 my $thisrule = $thisparser->{"rules"}{"open_section"};
2284  
2285 275 ▶ Parse::RecDescent::_trace(q{Trying rule: [open_section]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
2286 Parse::RecDescent::_tracefirst($_[1]),
2287 q{open_section},
2288 $tracelevel)
2289 if defined $::RD_TRACE;
2290  
2291
2292 275 my $err_at = @{$thisparser->{errors}};
2293  
2294 275 my $score;
2295 my $score_return;
2296 275 my $_tok;
2297 275 my $return = undef;
2298 275 my $_matched=0;
2299 275 my $commit=0;
2300 275 my @item = ();
2301 275 my %item = ();
2302 275 my $repeating = $_[2];
2303 275 my $_noactions = $_[3];
2304 275 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 275 0 275
2305 275 my $_itempos = $_[5];
2306 275 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 248 27 275
2307 275 my $text;
2308 my $lastsep;
2309 275 my $current_match;
2310 275 my $expectation = new Parse::RecDescent::Expectation(q{/\\s*/});
2311 275 $expectation->at($_[1]);
2312
2313 275 my $thisoffset;
2314 275 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
2315
2316 275 my $thisline;
2317 275 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2318  
2319
2320  
2321 275 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 275 0 275
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00275
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2322 {
2323
2324 275 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\s*/ opening_tag /[#^]/ /\\s*/ /[-\\w.]+/ /\\s*/ closing_tag /\\s*/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
2325 Parse::RecDescent::_tracefirst($_[1]),
2326 q{open_section},
2327 $tracelevel)
2328 if defined $::RD_TRACE;
2329 275 my $thisprod = $thisrule->{"prods"}[0];
2330 275 $text = $_[1];
2331 275 my $_savetext;
2332 275 @item = (q{open_section});
2333 275 %item = (__RULE__ => q{open_section});
2334 275 my $repcount = 0;
2335  
2336  
2337 275 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
2338 q{open_section},
2339 $tracelevel)
2340 if defined $::RD_TRACE;
2341 275 undef $lastsep;
2342 275 $expectation->is(q{})->at($text);
2343
2344  
2345 275 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 275 275
$lastsep = $1 and "" 0 275 275
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
00275
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
2346 {
2347 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
2348 0 $expectation->failed();
2349 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2350 Parse::RecDescent::_tracefirst($text))
2351 if defined $::RD_TRACE;
2352  
2353 0 last;
2354 }
2355 275 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2356 275 substr($text,0,length($current_match),q{});
2357 275 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
2358 . $current_match . q{])},
2359 Parse::RecDescent::_tracefirst($text))
2360 if defined $::RD_TRACE;
2361 275 push @item, $item{__PATTERN1__}=$current_match;
2362
2363  
2364 275 ▶ Parse::RecDescent::_trace(q{Trying subrule: [opening_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
2365 Parse::RecDescent::_tracefirst($text),
2366 q{open_section},
2367 $tracelevel)
2368 if defined $::RD_TRACE;
2369 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
2370 275 $expectation->is(q{opening_tag})->at($text);
2371 275 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::opening_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = opening_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 178 97 275
2372 {
2373
2374 178 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [opening_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 178 178
2375 Parse::RecDescent::_tracefirst($text),
2376 q{open_section},
2377 $tracelevel)
2378 if defined $::RD_TRACE;
2379 178 $expectation->failed();
2380 178 last;
2381 }
2382 97 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [opening_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 97 97
2383 . $_tok . q{]},
2384  
2385 Parse::RecDescent::_tracefirst($text),
2386 q{open_section},
2387 $tracelevel)
2388 if defined $::RD_TRACE;
2389 97 $item{q{opening_tag}} = $_tok;
2390 97 push @item, $_tok;
2391
2392 }
2393  
2394 97 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/[#^]/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 97 97
2395 q{open_section},
2396 $tracelevel)
2397 if defined $::RD_TRACE;
2398 97 undef $lastsep;
2399 97 $expectation->is(q{/[#^]/})->at($text);
2400
2401  
2402 97 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[#^])/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[#^])/) 78 19 97
$lastsep = $1 and "" 0 97 97
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[#^])/
!ll&&!rl&&r
07819
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[#^])/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[#^])/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[#^])/
ABresult
0X0
100
111
2403 {
2404 78 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 78 0 78
2405 78 $expectation->failed();
2406 78 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 78 78
2407 Parse::RecDescent::_tracefirst($text))
2408 if defined $::RD_TRACE;
2409  
2410 78 last;
2411 }
2412 19 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2413 19 substr($text,0,length($current_match),q{});
2414 19 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 19 19
2415 . $current_match . q{])},
2416 Parse::RecDescent::_tracefirst($text))
2417 if defined $::RD_TRACE;
2418 19 push @item, $item{__PATTERN2__}=$current_match;
2419
2420  
2421 19 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 19 19
2422 q{open_section},
2423 $tracelevel)
2424 if defined $::RD_TRACE;
2425 19 undef $lastsep;
2426 19 $expectation->is(q{/\\s*/})->at($text);
2427
2428  
2429 19 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 19 19
$lastsep = $1 and "" 0 19 19
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0019
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
2430 {
2431 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
2432 0 $expectation->failed();
2433 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2434 Parse::RecDescent::_tracefirst($text))
2435 if defined $::RD_TRACE;
2436  
2437 0 last;
2438 }
2439 19 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2440 19 substr($text,0,length($current_match),q{});
2441 19 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 19 19
2442 . $current_match . q{])},
2443 Parse::RecDescent::_tracefirst($text))
2444 if defined $::RD_TRACE;
2445 19 push @item, $item{__PATTERN3__}=$current_match;
2446
2447  
2448 19 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/[-\\w.]+/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 19 19
2449 q{open_section},
2450 $tracelevel)
2451 if defined $::RD_TRACE;
2452 19 undef $lastsep;
2453 19 $expectation->is(q{/[-\\w.]+/})->at($text);
2454
2455  
2456 19 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[-\w.]+)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[-\w.]+)/) 1 18 19
$lastsep = $1 and "" 0 19 19
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[-\w.]+)/
!ll&&!rl&&r
0118
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[-\w.]+)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[-\w.]+)/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[-\w.]+)/
ABresult
0X0
100
111
2457 {
2458 1 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 1 0 1
2459 1 $expectation->failed();
2460 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2461 Parse::RecDescent::_tracefirst($text))
2462 if defined $::RD_TRACE;
2463  
2464 1 last;
2465 }
2466 18 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2467 18 substr($text,0,length($current_match),q{});
2468 18 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
2469 . $current_match . q{])},
2470 Parse::RecDescent::_tracefirst($text))
2471 if defined $::RD_TRACE;
2472 18 push @item, $item{__PATTERN4__}=$current_match;
2473
2474  
2475 18 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
2476 q{open_section},
2477 $tracelevel)
2478 if defined $::RD_TRACE;
2479 18 undef $lastsep;
2480 18 $expectation->is(q{/\\s*/})->at($text);
2481
2482  
2483 18 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 18 18
$lastsep = $1 and "" 0 18 18
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0018
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
2484 {
2485 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
2486 0 $expectation->failed();
2487 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2488 Parse::RecDescent::_tracefirst($text))
2489 if defined $::RD_TRACE;
2490  
2491 0 last;
2492 }
2493 18 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2494 18 substr($text,0,length($current_match),q{});
2495 18 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
2496 . $current_match . q{])},
2497 Parse::RecDescent::_tracefirst($text))
2498 if defined $::RD_TRACE;
2499 18 push @item, $item{__PATTERN5__}=$current_match;
2500
2501  
2502 18 ▶ Parse::RecDescent::_trace(q{Trying subrule: [closing_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
2503 Parse::RecDescent::_tracefirst($text),
2504 q{open_section},
2505 $tracelevel)
2506 if defined $::RD_TRACE;
2507 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
2508 18 $expectation->is(q{closing_tag})->at($text);
2509 18 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::closing_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = closing_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 18 18
2510 {
2511
2512 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [closing_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2513 Parse::RecDescent::_tracefirst($text),
2514 q{open_section},
2515 $tracelevel)
2516 if defined $::RD_TRACE;
2517 0 $expectation->failed();
2518 0 last;
2519 }
2520 18 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [closing_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
2521 . $_tok . q{]},
2522  
2523 Parse::RecDescent::_tracefirst($text),
2524 q{open_section},
2525 $tracelevel)
2526 if defined $::RD_TRACE;
2527 18 $item{q{closing_tag}} = $_tok;
2528 18 push @item, $_tok;
2529
2530 }
2531  
2532 18 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
2533 q{open_section},
2534 $tracelevel)
2535 if defined $::RD_TRACE;
2536 18 undef $lastsep;
2537 18 $expectation->is(q{/\\s*/})->at($text);
2538
2539  
2540 18 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 18 18
$lastsep = $1 and "" 0 18 18
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0018
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
2541 {
2542 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
2543 0 $expectation->failed();
2544 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2545 Parse::RecDescent::_tracefirst($text))
2546 if defined $::RD_TRACE;
2547  
2548 0 last;
2549 }
2550 18 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2551 18 substr($text,0,length($current_match),q{});
2552 18 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
2553 . $current_match . q{])},
2554 Parse::RecDescent::_tracefirst($text))
2555 if defined $::RD_TRACE;
2556 18 push @item, $item{__PATTERN6__}=$current_match;
2557
2558  
2559 18 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
2560 Parse::RecDescent::_tracefirst($text),
2561 q{open_section},
2562 $tracelevel)
2563 if defined $::RD_TRACE;
2564
2565  
2566 18 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 18 18
2567 18 my $prev = $thisparser->{prev_is_standalone};
2568 18 $thisparser->{prev_is_standalone} = 0;
2569 18 ▶ if ( $item[1] =~ /\n/ or $prev ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($item[1] =~ /\n/ or $prev) 11 7 18
Condition100%3/3
$item[1] =~ /\n/ or $prev
l!l&&r!l&&!r
297
MC/DC100%2/2
$item[1] =~ /\n/ or $prev
$item[1] =~ /\n/ $prev
Truth table100%3/3
A or B
A= $item[1] =~ /\n/B= $prev
ABresult
1X1
011
000
2570 11 ▶ if ( $item[8] =~ /\n/ ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($item[8] =~ /\n/) 3 8 11
2571 3 $item[1] =~ s/(^|\n)[ \t]*?$/$1/;
2572 3 $item[8] =~ s/^.*?\n//;
2573 3 $thisparser->{prev_is_standalone} = 1;
2574 }
2575 }
2576  
2577 18 [ $item[5], $item[3] eq '^',
2578 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
2579 Template::Mustache::Token::Verbatim->new( content => $item[8] )
2580 ];
2581 };
2582 18 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 18 18
2583 {
2584 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2585 if defined $::RD_TRACE;
2586 0 last;
2587 }
2588 18 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
2589 . $_tok . q{])},
2590 Parse::RecDescent::_tracefirst($text))
2591 if defined $::RD_TRACE;
2592 18 push @item, $_tok;
2593 18 $item{__ACTION1__}=$_tok;
2594
2595  
2596 18 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\s*/ opening_tag /[#^]/ /\\s*/ /[-\\w.]+/ /\\s*/ closing_tag /\\s*/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
2597 Parse::RecDescent::_tracefirst($text),
2598 q{open_section},
2599 $tracelevel)
2600 if defined $::RD_TRACE;
2601  
2602  
2603  
2604 18 $_matched = 1;
2605 18 last;
2606 }
2607  
2608  
2609 275 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 257 18 275
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
180257
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
2610 {
2611
2612  
2613 257 $_[1] = $text; # NOT SURE THIS IS NEEDED
2614 257 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 257 257
2615 Parse::RecDescent::_tracefirst($_[1]),
2616 q{open_section},
2617 $tracelevel)
2618 if defined $::RD_TRACE;
2619 257 return undef;
2620 }
2621 18 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 18 18
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0180
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
2622 {
2623 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2624 q{open_section},
2625 $tracelevel)
2626 if defined $::RD_TRACE;
2627 0 $return = $score_return;
2628 }
2629 18 splice @{$thisparser->{errors}}, $err_at;
2630 18 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 18 0 18
2631 18 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 18 18
2632 {
2633 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2634 $return . q{])}, "",
2635 q{open_section},
2636 $tracelevel);
2637 0 Parse::RecDescent::_trace(q{(consumed: [} .
2638 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2639 Parse::RecDescent::_tracefirst($text),
2640 , q{open_section},
2641 $tracelevel)
2642 }
2643 18 $_[1] = $text;
2644 18 return $return;
2645 }
2646  
2647 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
2648 sub Parse::RecDescent::Template::Mustache::Parser::opening_tag
2649 {
2650 1925 ▶ my $thisparser = $_[0];
Subroutine opening_tag: called CC=26 SCAR=35.4
2651 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
2652 1925 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
19250
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
2653 1925 $ERRORS = 0;
2654 1925 my $thisrule = $thisparser->{"rules"}{"opening_tag"};
2655  
2656 1925 ▶ Parse::RecDescent::_trace(q{Trying rule: [opening_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1925 1925
2657 Parse::RecDescent::_tracefirst($_[1]),
2658 q{opening_tag},
2659 $tracelevel)
2660 if defined $::RD_TRACE;
2661  
2662
2663 1925 my $err_at = @{$thisparser->{errors}};
2664  
2665 1925 my $score;
2666 my $score_return;
2667 1925 my $_tok;
2668 1925 my $return = undef;
2669 1925 my $_matched=0;
2670 1925 my $commit=0;
2671 1925 my @item = ();
2672 1925 my %item = ();
2673 1925 my $repeating = $_[2];
2674 1925 my $_noactions = $_[3];
2675 1925 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 1925 0 1925
2676 1925 my $_itempos = $_[5];
2677 1925 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 1211 714 1925
2678 1925 my $text;
2679 my $lastsep;
2680 1925 my $current_match;
2681 1925 my $expectation = new Parse::RecDescent::Expectation(q{'$thisparser->\{opening_tag\}'});
2682 1925 $expectation->at($_[1]);
2683
2684 1925 my $thisoffset;
2685 1925 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
2686
2687 1925 my $thisline;
2688 1925 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2689  
2690
2691  
2692 1925 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 1925 0 1925
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
001925
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2693 {
2694
2695 1925 ▶ Parse::RecDescent::_trace(q{Trying production: ['$thisparser->\{opening_tag\}']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1925 1925
2696 Parse::RecDescent::_tracefirst($_[1]),
2697 q{opening_tag},
2698 $tracelevel)
2699 if defined $::RD_TRACE;
2700 1925 my $thisprod = $thisrule->{"prods"}[0];
2701 1925 $text = $_[1];
2702 1925 my $_savetext;
2703 1925 @item = (q{opening_tag});
2704 1925 %item = (__RULE__ => q{opening_tag});
2705 1925 my $repcount = 0;
2706  
2707  
2708 1925 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['$thisparser->\{opening_tag\}']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1925 1925
2709 Parse::RecDescent::_tracefirst($text),
2710 q{opening_tag},
2711 $tracelevel)
2712 if defined $::RD_TRACE;
2713 1925 undef $lastsep;
2714 1925 $expectation->is(q{})->at($text);
2715
2716  
2717 1925 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "$thisparser->{opening_tag}"; 1 } and
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = qq[$thisparser->{"opening_tag"}]; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 1251 674 1925
$lastsep = $1 and "" 0 1925 1925
Condition55%5/9
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { and do {
!ll&&!rl&&r
12510674
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
01251674
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do {
!ll&&!rl&&r
001925
MC/DC25%1/4
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = qq[$thisparser->{"opening_tag"}]; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e do { $_tok = qq[$thisparser->{"opening_tag"}]; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
Truth table40%2/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= do { $_tok = qq[$thisparser->{"opening_tag"}]; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
2718 substr($text,0,length($_tok)) eq $_tok and
2719 674 do { substr($text,0,length($_tok)) = ""; 1; }
2720 )
2721 {
2722 1251 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 1251 0 1251
2723
2724 1251 $expectation->failed();
2725 1251 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1251 1251
2726 Parse::RecDescent::_tracefirst($text))
2727 if defined $::RD_TRACE;
2728 1251 last;
2729 }
2730 674 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 674 674
2731 . $_tok . q{])},
2732 Parse::RecDescent::_tracefirst($text))
2733 if defined $::RD_TRACE;
2734 674 push @item, $item{__STRING1__}=$_tok;
2735
2736  
2737 674 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['$thisparser->\{opening_tag\}']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 674 674
2738 Parse::RecDescent::_tracefirst($text),
2739 q{opening_tag},
2740 $tracelevel)
2741 if defined $::RD_TRACE;
2742  
2743  
2744  
2745 674 $_matched = 1;
2746 674 last;
2747 }
2748  
2749  
2750 1925 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 1251 674 1925
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
67401251
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
2751 {
2752
2753  
2754 1251 $_[1] = $text; # NOT SURE THIS IS NEEDED
2755 1251 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1251 1251
2756 Parse::RecDescent::_tracefirst($_[1]),
2757 q{opening_tag},
2758 $tracelevel)
2759 if defined $::RD_TRACE;
2760 1251 return undef;
2761 }
2762 674 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 674 674
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
06740
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
2763 {
2764 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2765 q{opening_tag},
2766 $tracelevel)
2767 if defined $::RD_TRACE;
2768 0 $return = $score_return;
2769 }
2770 674 splice @{$thisparser->{errors}}, $err_at;
2771 674 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 674 0 674
2772 674 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 674 674
2773 {
2774 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2775 $return . q{])}, "",
2776 q{opening_tag},
2777 $tracelevel);
2778 0 Parse::RecDescent::_trace(q{(consumed: [} .
2779 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2780 Parse::RecDescent::_tracefirst($text),
2781 , q{opening_tag},
2782 $tracelevel)
2783 }
2784 674 $_[1] = $text;
2785 674 return $return;
2786 }
2787  
2788 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
2789 sub Parse::RecDescent::Template::Mustache::Parser::partial
2790 {
2791 291 ▶ my $thisparser = $_[0];
Subroutine partial: called CC=76 SCAR=57.8
2792 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
2793 291 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
2910
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
2794 291 $ERRORS = 0;
2795 291 my $thisrule = $thisparser->{"rules"}{"partial"};
2796  
2797 291 ▶ Parse::RecDescent::_trace(q{Trying rule: [partial]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 291 291
2798 Parse::RecDescent::_tracefirst($_[1]),
2799 q{partial},
2800 $tracelevel)
2801 if defined $::RD_TRACE;
2802  
2803
2804 291 my $err_at = @{$thisparser->{errors}};
2805  
2806 291 my $score;
2807 my $score_return;
2808 291 my $_tok;
2809 291 my $return = undef;
2810 291 my $_matched=0;
2811 291 my $commit=0;
2812 291 my @item = ();
2813 291 my %item = ();
2814 291 my $repeating = $_[2];
2815 291 my $_noactions = $_[3];
2816 291 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 291 0 291
2817 291 my $_itempos = $_[5];
2818 291 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 264 27 291
2819 291 my $text;
2820 my $lastsep;
2821 291 my $current_match;
2822 291 my $expectation = new Parse::RecDescent::Expectation(q{/\\s*/});
2823 291 $expectation->at($_[1]);
2824
2825 291 my $thisoffset;
2826 291 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
2827
2828 291 my $thisline;
2829 291 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2830  
2831
2832  
2833 291 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 291 0 291
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00291
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2834 {
2835
2836 291 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\s*/ opening_tag '>' /\\s*/ /[\\/-\\w.]+/ /\\s*/ closing_tag /\\s*/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 291 291
2837 Parse::RecDescent::_tracefirst($_[1]),
2838 q{partial},
2839 $tracelevel)
2840 if defined $::RD_TRACE;
2841 291 my $thisprod = $thisrule->{"prods"}[0];
2842 291 $text = $_[1];
2843 291 my $_savetext;
2844 291 @item = (q{partial});
2845 291 %item = (__RULE__ => q{partial});
2846 291 my $repcount = 0;
2847  
2848  
2849 291 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 291 291
2850 q{partial},
2851 $tracelevel)
2852 if defined $::RD_TRACE;
2853 291 undef $lastsep;
2854 291 $expectation->is(q{})->at($text);
2855
2856  
2857 291 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 291 291
$lastsep = $1 and "" 0 291 291
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
00291
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
2858 {
2859 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
2860 0 $expectation->failed();
2861 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2862 Parse::RecDescent::_tracefirst($text))
2863 if defined $::RD_TRACE;
2864  
2865 0 last;
2866 }
2867 291 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2868 291 substr($text,0,length($current_match),q{});
2869 291 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 291 291
2870 . $current_match . q{])},
2871 Parse::RecDescent::_tracefirst($text))
2872 if defined $::RD_TRACE;
2873 291 push @item, $item{__PATTERN1__}=$current_match;
2874
2875  
2876 291 ▶ Parse::RecDescent::_trace(q{Trying subrule: [opening_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 291 291
2877 Parse::RecDescent::_tracefirst($text),
2878 q{partial},
2879 $tracelevel)
2880 if defined $::RD_TRACE;
2881 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
2882 291 $expectation->is(q{opening_tag})->at($text);
2883 291 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::opening_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = opening_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 178 113 291
2884 {
2885
2886 178 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [opening_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 178 178
2887 Parse::RecDescent::_tracefirst($text),
2888 q{partial},
2889 $tracelevel)
2890 if defined $::RD_TRACE;
2891 178 $expectation->failed();
2892 178 last;
2893 }
2894 113 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [opening_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 113 113
2895 . $_tok . q{]},
2896  
2897 Parse::RecDescent::_tracefirst($text),
2898 q{partial},
2899 $tracelevel)
2900 if defined $::RD_TRACE;
2901 113 $item{q{opening_tag}} = $_tok;
2902 113 push @item, $_tok;
2903
2904 }
2905  
2906 113 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['>']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 113 113
2907 Parse::RecDescent::_tracefirst($text),
2908 q{partial},
2909 $tracelevel)
2910 if defined $::RD_TRACE;
2911 113 undef $lastsep;
2912 113 $expectation->is(q{'>'})->at($text);
2913
2914  
2915 113 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\>/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\>/) 97 16 113
$lastsep = $1 and "" 0 113 113
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\>/
!ll&&!rl&&r
09716
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\>/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\>/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\>/
ABresult
0X0
100
111
2916 {
2917 97 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 97 0 97
2918
2919 97 $expectation->failed();
2920 97 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 97 97
2921 Parse::RecDescent::_tracefirst($text))
2922 if defined $::RD_TRACE;
2923 97 last;
2924 }
2925 16 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2926 16 substr($text,0,length($current_match),q{});
2927 16 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
2928 . $current_match . q{])},
2929 Parse::RecDescent::_tracefirst($text))
2930 if defined $::RD_TRACE;
2931 16 push @item, $item{__STRING1__}=$current_match;
2932
2933  
2934 16 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
2935 q{partial},
2936 $tracelevel)
2937 if defined $::RD_TRACE;
2938 16 undef $lastsep;
2939 16 $expectation->is(q{/\\s*/})->at($text);
2940
2941  
2942 16 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 16 16
$lastsep = $1 and "" 0 16 16
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0016
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
2943 {
2944 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
2945 0 $expectation->failed();
2946 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2947 Parse::RecDescent::_tracefirst($text))
2948 if defined $::RD_TRACE;
2949  
2950 0 last;
2951 }
2952 16 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2953 16 substr($text,0,length($current_match),q{});
2954 16 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
2955 . $current_match . q{])},
2956 Parse::RecDescent::_tracefirst($text))
2957 if defined $::RD_TRACE;
2958 16 push @item, $item{__PATTERN2__}=$current_match;
2959
2960  
2961 16 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/[\\/-\\w.]+/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
2962 q{partial},
2963 $tracelevel)
2964 if defined $::RD_TRACE;
2965 16 undef $lastsep;
2966 16 $expectation->is(q{/[\\/-\\w.]+/})->at($text);
2967
2968  
2969 16 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[\/-\w.]+)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:[/-\w.]+)]) 0 16 16
$lastsep = $1 and "" 0 16 16
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:[/-\w.]+)]
!ll&&!rl&&r
0016
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:[/-\w.]+)]
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ m[\A(?:[/-\w.]+)]
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ m[\A(?:[/-\w.]+)]
ABresult
0X0
100
111
2970 {
2971 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
2972 0 $expectation->failed();
2973 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2974 Parse::RecDescent::_tracefirst($text))
2975 if defined $::RD_TRACE;
2976  
2977 0 last;
2978 }
2979 16 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2980 16 substr($text,0,length($current_match),q{});
2981 16 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
2982 . $current_match . q{])},
2983 Parse::RecDescent::_tracefirst($text))
2984 if defined $::RD_TRACE;
2985 16 push @item, $item{__PATTERN3__}=$current_match;
2986
2987  
2988 16 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
2989 q{partial},
2990 $tracelevel)
2991 if defined $::RD_TRACE;
2992 16 undef $lastsep;
2993 16 $expectation->is(q{/\\s*/})->at($text);
2994
2995  
2996 16 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 16 16
$lastsep = $1 and "" 0 16 16
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0016
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
2997 {
2998 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
2999 0 $expectation->failed();
3000 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3001 Parse::RecDescent::_tracefirst($text))
3002 if defined $::RD_TRACE;
3003  
3004 0 last;
3005 }
3006 16 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3007 16 substr($text,0,length($current_match),q{});
3008 16 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
3009 . $current_match . q{])},
3010 Parse::RecDescent::_tracefirst($text))
3011 if defined $::RD_TRACE;
3012 16 push @item, $item{__PATTERN4__}=$current_match;
3013
3014  
3015 16 ▶ Parse::RecDescent::_trace(q{Trying subrule: [closing_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
3016 Parse::RecDescent::_tracefirst($text),
3017 q{partial},
3018 $tracelevel)
3019 if defined $::RD_TRACE;
3020 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3021 16 $expectation->is(q{closing_tag})->at($text);
3022 16 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::closing_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = closing_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 16 16
3023 {
3024
3025 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [closing_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3026 Parse::RecDescent::_tracefirst($text),
3027 q{partial},
3028 $tracelevel)
3029 if defined $::RD_TRACE;
3030 0 $expectation->failed();
3031 0 last;
3032 }
3033 16 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [closing_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
3034 . $_tok . q{]},
3035  
3036 Parse::RecDescent::_tracefirst($text),
3037 q{partial},
3038 $tracelevel)
3039 if defined $::RD_TRACE;
3040 16 $item{q{closing_tag}} = $_tok;
3041 16 push @item, $_tok;
3042
3043 }
3044  
3045 16 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
3046 q{partial},
3047 $tracelevel)
3048 if defined $::RD_TRACE;
3049 16 undef $lastsep;
3050 16 $expectation->is(q{/\\s*/})->at($text);
3051
3052  
3053 16 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 16 16
$lastsep = $1 and "" 0 16 16
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0016
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
3054 {
3055 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
3056 0 $expectation->failed();
3057 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3058 Parse::RecDescent::_tracefirst($text))
3059 if defined $::RD_TRACE;
3060  
3061 0 last;
3062 }
3063 16 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3064 16 substr($text,0,length($current_match),q{});
3065 16 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
3066 . $current_match . q{])},
3067 Parse::RecDescent::_tracefirst($text))
3068 if defined $::RD_TRACE;
3069 16 push @item, $item{__PATTERN5__}=$current_match;
3070
3071  
3072 16 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
3073 Parse::RecDescent::_tracefirst($text),
3074 q{partial},
3075 $tracelevel)
3076 if defined $::RD_TRACE;
3077
3078  
3079 16 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 16 16
3080 16 my $prev = $thisparser->{prev_is_standalone};
3081 16 $thisparser->{prev_is_standalone} = 0;
3082 16 my $indent = '';
3083 16 ▶ if ( $item[1] =~ /\n/ or $prev ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($item[1] =~ /\n/ or $prev) 2 14 16
Condition66%2/3
$item[1] =~ /\n/ or $prev
l!l&&r!l&&!r
0214
MC/DC50%1/2
$item[1] =~ /\n/ or $prev
$item[1] =~ /\n/ $prev
Truth table66%2/3
A or B
A= $item[1] =~ /\n/B= $prev
ABresult
1X1
011
000
3084 2 ▶ if ( $item[8] =~ /\n/ or length $text == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($item[8] =~ /\n/ or length $text == 0) 2 0 2
Condition33%1/3
$item[8] =~ /\n/ or length $text == 0
l!l&&r!l&&!r
020
MC/DC0%0/2
$item[8] =~ /\n/ or length $text == 0
$item[8] =~ /\n/ length $text == 0
Truth table33%1/3
A or B
A= $item[8] =~ /\n/B= length $text == 0
ABresult
1X1
011
000
3085 2 $item[1] =~ /(^|\n)([ \t]*?)$/;
3086 2 $indent = $2;
3087 2 $item[8] =~ s/^.*?\n//;
3088 2 $thisparser->{prev_is_standalone} = 1;
3089 }
3090 }
3091 Template::Mustache::Token::Template->new(
3092 16 items => [
3093 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
3094 Template::Mustache::Token::Partial->new( name => $item[5],
3095 indent => $indent ),
3096 Template::Mustache::Token::Verbatim->new( content => $item[8] ),
3097 ],
3098 )
3099 };
3100 16 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 16 16
3101 {
3102 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3103 if defined $::RD_TRACE;
3104 0 last;
3105 }
3106 16 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
3107 . $_tok . q{])},
3108 Parse::RecDescent::_tracefirst($text))
3109 if defined $::RD_TRACE;
3110 16 push @item, $_tok;
3111 16 $item{__ACTION1__}=$_tok;
3112
3113  
3114 16 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\s*/ opening_tag '>' /\\s*/ /[\\/-\\w.]+/ /\\s*/ closing_tag /\\s*/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
3115 Parse::RecDescent::_tracefirst($text),
3116 q{partial},
3117 $tracelevel)
3118 if defined $::RD_TRACE;
3119  
3120  
3121  
3122 16 $_matched = 1;
3123 16 last;
3124 }
3125  
3126  
3127 291 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 275 16 291
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
160275
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
3128 {
3129
3130  
3131 275 $_[1] = $text; # NOT SURE THIS IS NEEDED
3132 275 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
3133 Parse::RecDescent::_tracefirst($_[1]),
3134 q{partial},
3135 $tracelevel)
3136 if defined $::RD_TRACE;
3137 275 return undef;
3138 }
3139 16 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 16 16
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0160
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
3140 {
3141 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3142 q{partial},
3143 $tracelevel)
3144 if defined $::RD_TRACE;
3145 0 $return = $score_return;
3146 }
3147 16 splice @{$thisparser->{errors}}, $err_at;
3148 16 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 16 0 16
3149 16 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 16 16
3150 {
3151 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3152 $return . q{])}, "",
3153 q{partial},
3154 $tracelevel);
3155 0 Parse::RecDescent::_trace(q{(consumed: [} .
3156 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3157 Parse::RecDescent::_tracefirst($text),
3158 , q{partial},
3159 $tracelevel)
3160 }
3161 16 $_[1] = $text;
3162 16 return $return;
3163 }
3164  
3165 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3166 sub Parse::RecDescent::Template::Mustache::Parser::section
3167 {
3168 275 ▶ my $thisparser = $_[0];
Subroutine section: called CC=44 SCAR=44.1
3169 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3170 275 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
2750
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
3171 275 $ERRORS = 0;
3172 275 my $thisrule = $thisparser->{"rules"}{"section"};
3173  
3174 275 ▶ Parse::RecDescent::_trace(q{Trying rule: [section]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
3175 Parse::RecDescent::_tracefirst($_[1]),
3176 q{section},
3177 $tracelevel)
3178 if defined $::RD_TRACE;
3179  
3180
3181 275 my $err_at = @{$thisparser->{errors}};
3182  
3183 275 my $score;
3184 my $score_return;
3185 275 my $_tok;
3186 275 my $return = undef;
3187 275 my $_matched=0;
3188 275 my $commit=0;
3189 275 my @item = ();
3190 275 my %item = ();
3191 275 my $repeating = $_[2];
3192 275 my $_noactions = $_[3];
3193 275 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 275 0 275
3194 275 my $_itempos = $_[5];
3195 275 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 248 27 275
3196 275 my $text;
3197 my $lastsep;
3198 275 my $current_match;
3199 275 my $expectation = new Parse::RecDescent::Expectation(q{open_section});
3200 275 $expectation->at($_[1]);
3201
3202 275 my $thisoffset;
3203 275 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
3204
3205 275 my $thisline;
3206 275 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
3207  
3208
3209  
3210 275 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 275 0 275
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00275
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3211 {
3212
3213 275 ▶ Parse::RecDescent::_trace(q{Trying production: [open_section inner_section close_section]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
3214 Parse::RecDescent::_tracefirst($_[1]),
3215 q{section},
3216 $tracelevel)
3217 if defined $::RD_TRACE;
3218 275 my $thisprod = $thisrule->{"prods"}[0];
3219 275 $text = $_[1];
3220 275 my $_savetext;
3221 275 @item = (q{section});
3222 275 %item = (__RULE__ => q{section});
3223 275 my $repcount = 0;
3224  
3225  
3226 275 ▶ Parse::RecDescent::_trace(q{Trying subrule: [open_section]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 275 275
3227 Parse::RecDescent::_tracefirst($text),
3228 q{section},
3229 $tracelevel)
3230 if defined $::RD_TRACE;
3231 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3232 275 $expectation->is(q{})->at($text);
3233 275 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::open_section($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = open_section($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 257 18 275
3234 {
3235
3236 257 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [open_section]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 257 257
3237 Parse::RecDescent::_tracefirst($text),
3238 q{section},
3239 $tracelevel)
3240 if defined $::RD_TRACE;
3241 257 $expectation->failed();
3242 257 last;
3243 }
3244 18 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [open_section]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
3245 . $_tok . q{]},
3246  
3247 Parse::RecDescent::_tracefirst($text),
3248 q{section},
3249 $tracelevel)
3250 if defined $::RD_TRACE;
3251 18 $item{q{open_section}} = $_tok;
3252 18 push @item, $_tok;
3253
3254 }
3255  
3256 18 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
3257 Parse::RecDescent::_tracefirst($text),
3258 q{section},
3259 $tracelevel)
3260 if defined $::RD_TRACE;
3261
3262  
3263 18 ▶ $_tok = ($_noactions) ? 0 : do {$thisoffset};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 18 18
3264 18 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 18 18
3265 {
3266 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3267 if defined $::RD_TRACE;
3268 0 last;
3269 }
3270 18 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
3271 . $_tok . q{])},
3272 Parse::RecDescent::_tracefirst($text))
3273 if defined $::RD_TRACE;
3274 18 push @item, $_tok;
3275 18 $item{__ACTION1__}=$_tok;
3276
3277  
3278 18 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [inner_section]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
3279 Parse::RecDescent::_tracefirst($text),
3280 q{section},
3281 $tracelevel)
3282 if defined $::RD_TRACE;
3283 18 $expectation->is(q{inner_section})->at($text);
3284
3285 18 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Template::Mustache::Parser::inner_section, 0, 100000000, $_noactions,$expectation,sub { return [ $item[1][0] ] },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Template::Mustache::Parser::inner_section, 0, 100000000, $_noactions, $expectation, sub { return [$item[1][0]]; } , undef))) 0 18 18
3286 {
3287 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [inner_section]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3288 Parse::RecDescent::_tracefirst($text),
3289 q{section},
3290 $tracelevel)
3291 if defined $::RD_TRACE;
3292 0 last;
3293 }
3294 18 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [inner_section]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
3295 . @$_tok . q{ times)},
3296  
3297 Parse::RecDescent::_tracefirst($text),
3298 q{section},
3299 $tracelevel)
3300 if defined $::RD_TRACE;
3301 18 $item{q{inner_section(s?)}} = $_tok;
3302 18 push @item, $_tok;
3303
3304  
3305  
3306 18 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
3307 Parse::RecDescent::_tracefirst($text),
3308 q{section},
3309 $tracelevel)
3310 if defined $::RD_TRACE;
3311
3312  
3313 18 ▶ $_tok = ($_noactions) ? 0 : do {$thisoffset
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 18 18
3314 - $item[2]
3315 };
3316 18 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 18 18
3317 {
3318 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3319 if defined $::RD_TRACE;
3320 0 last;
3321 }
3322 18 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
3323 . $_tok . q{])},
3324 Parse::RecDescent::_tracefirst($text))
3325 if defined $::RD_TRACE;
3326 18 push @item, $_tok;
3327 18 $item{__ACTION2__}=$_tok;
3328
3329  
3330 18 ▶ Parse::RecDescent::_trace(q{Trying subrule: [close_section]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
3331 Parse::RecDescent::_tracefirst($text),
3332 q{section},
3333 $tracelevel)
3334 if defined $::RD_TRACE;
3335 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3336 18 $expectation->is(q{close_section})->at($text);
3337 18 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::close_section($thisparser,$text,$repeating,$_noactions,sub { return [ $item[1][0] ] },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = close_section($thisparser, $text, $repeating, $_noactions, sub { return [$item[1][0]]; } , undef))) 7 11 18
3338 {
3339
3340 7 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [close_section]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 7 7
3341 Parse::RecDescent::_tracefirst($text),
3342 q{section},
3343 $tracelevel)
3344 if defined $::RD_TRACE;
3345 7 $expectation->failed();
3346 7 last;
3347 }
3348 11 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [close_section]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
3349 . $_tok . q{]},
3350  
3351 Parse::RecDescent::_tracefirst($text),
3352 q{section},
3353 $tracelevel)
3354 if defined $::RD_TRACE;
3355 11 $item{q{close_section}} = $_tok;
3356 11 push @item, $_tok;
3357
3358 }
3359  
3360 11 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
3361 Parse::RecDescent::_tracefirst($text),
3362 q{section},
3363 $tracelevel)
3364 if defined $::RD_TRACE;
3365
3366  
3367 11 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 11 11
3368 11 my $raw = substr( $thisparser->{fulltext}, $item[2], $item[4] );
3369 Template::Mustache::Token::Template->new( items => [
3370 $item[1]->[2],
3371 Template::Mustache::Token::Section->new(
3372 22 delimiters => [ map { $thisparser->{$_} } qw/ opening_tag closing_tag / ],
3373 variable => $item[1][0],
3374 inverse => $item[1][1],
3375 raw => $raw,
3376 template => Template::Mustache::Token::Template->new(
3377 items => [
3378 11 $item[1][3], @{$item[3]}, $item[5][0] ],
3379 )
3380 ),
3381 $item[5][1]
3382 ]
3383 );
3384 };
3385 11 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 11 11
3386 {
3387 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3388 if defined $::RD_TRACE;
3389 0 last;
3390 }
3391 11 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
3392 . $_tok . q{])},
3393 Parse::RecDescent::_tracefirst($text))
3394 if defined $::RD_TRACE;
3395 11 push @item, $_tok;
3396 11 $item{__ACTION3__}=$_tok;
3397
3398  
3399 11 ▶ Parse::RecDescent::_trace(q{>>Matched production: [open_section inner_section close_section]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
3400 Parse::RecDescent::_tracefirst($text),
3401 q{section},
3402 $tracelevel)
3403 if defined $::RD_TRACE;
3404  
3405  
3406  
3407 11 $_matched = 1;
3408 11 last;
3409 }
3410  
3411  
3412 275 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 264 11 275
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
110264
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
3413 {
3414
3415  
3416 264 $_[1] = $text; # NOT SURE THIS IS NEEDED
3417 264 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 264 264
3418 Parse::RecDescent::_tracefirst($_[1]),
3419 q{section},
3420 $tracelevel)
3421 if defined $::RD_TRACE;
3422 264 return undef;
3423 }
3424 11 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 11 11
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0110
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
3425 {
3426 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3427 q{section},
3428 $tracelevel)
3429 if defined $::RD_TRACE;
3430 0 $return = $score_return;
3431 }
3432 11 splice @{$thisparser->{errors}}, $err_at;
3433 11 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 11 0 11
3434 11 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 11 11
3435 {
3436 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3437 $return . q{])}, "",
3438 q{section},
3439 $tracelevel);
3440 0 Parse::RecDescent::_trace(q{(consumed: [} .
3441 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3442 Parse::RecDescent::_tracefirst($text),
3443 , q{section},
3444 $tracelevel)
3445 }
3446 11 $_[1] = $text;
3447 11 return $return;
3448 }
3449  
3450 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3451 sub Parse::RecDescent::Template::Mustache::Parser::standalone_surround
3452 {
3453 526 ▶ my $thisparser = $_[0];
Subroutine standalone_surround: called CC=59 SCAR=51.2
3454 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3455 526 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
5260
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
3456 526 $ERRORS = 0;
3457 526 my $thisrule = $thisparser->{"rules"}{"standalone_surround"};
3458  
3459 526 ▶ Parse::RecDescent::_trace(q{Trying rule: [standalone_surround]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 526 526
3460 Parse::RecDescent::_tracefirst($_[1]),
3461 q{standalone_surround},
3462 $tracelevel)
3463 if defined $::RD_TRACE;
3464  
3465
3466 526 my $err_at = @{$thisparser->{errors}};
3467  
3468 526 my $score;
3469 my $score_return;
3470 526 my $_tok;
3471 526 my $return = undef;
3472 526 my $_matched=0;
3473 526 my $commit=0;
3474 526 my @item = ();
3475 526 my %item = ();
3476 526 my $repeating = $_[2];
3477 526 my $_noactions = $_[3];
3478 526 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 526 0 526
3479 526 my $_itempos = $_[5];
3480 526 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 526 526
3481 526 my $text;
3482 my $lastsep;
3483 526 my $current_match;
3484 526 my $expectation = new Parse::RecDescent::Expectation(q{/\\s*/});
3485 526 $expectation->at($_[1]);
3486
3487 526 my $thisoffset;
3488 526 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
3489
3490 526 my $thisline;
3491 526 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
3492  
3493
3494  
3495 526 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 526 0 526
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00526
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3496 {
3497
3498 526 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\s*/ opening_tag /\\s*/ <matchrule:$arg[0]_inner> closing_tag /\\s*/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 526 526
3499 Parse::RecDescent::_tracefirst($_[1]),
3500 q{standalone_surround},
3501 $tracelevel)
3502 if defined $::RD_TRACE;
3503 526 my $thisprod = $thisrule->{"prods"}[0];
3504 526 $text = $_[1];
3505 526 my $_savetext;
3506 526 @item = (q{standalone_surround});
3507 526 %item = (__RULE__ => q{standalone_surround});
3508 526 my $repcount = 0;
3509  
3510  
3511 526 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 526 526
3512 q{standalone_surround},
3513 $tracelevel)
3514 if defined $::RD_TRACE;
3515 526 undef $lastsep;
3516 526 $expectation->is(q{})->at($text);
3517
3518  
3519 526 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 526 526
$lastsep = $1 and "" 0 526 526
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
00526
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
3520 {
3521 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
3522 0 $expectation->failed();
3523 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3524 Parse::RecDescent::_tracefirst($text))
3525 if defined $::RD_TRACE;
3526  
3527 0 last;
3528 }
3529 526 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3530 526 substr($text,0,length($current_match),q{});
3531 526 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 526 526
3532 . $current_match . q{])},
3533 Parse::RecDescent::_tracefirst($text))
3534 if defined $::RD_TRACE;
3535 526 push @item, $item{__PATTERN1__}=$current_match;
3536
3537  
3538 526 ▶ Parse::RecDescent::_trace(q{Trying subrule: [opening_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 526 526
3539 Parse::RecDescent::_tracefirst($text),
3540 q{standalone_surround},
3541 $tracelevel)
3542 if defined $::RD_TRACE;
3543 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3544 526 $expectation->is(q{opening_tag})->at($text);
3545 526 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::opening_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = opening_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 356 170 526
3546 {
3547
3548 356 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [opening_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 356 356
3549 Parse::RecDescent::_tracefirst($text),
3550 q{standalone_surround},
3551 $tracelevel)
3552 if defined $::RD_TRACE;
3553 356 $expectation->failed();
3554 356 last;
3555 }
3556 170 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [opening_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 170 170
3557 . $_tok . q{]},
3558  
3559 Parse::RecDescent::_tracefirst($text),
3560 q{standalone_surround},
3561 $tracelevel)
3562 if defined $::RD_TRACE;
3563 170 $item{q{opening_tag}} = $_tok;
3564 170 push @item, $_tok;
3565
3566 }
3567  
3568 170 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 170 170
3569 q{standalone_surround},
3570 $tracelevel)
3571 if defined $::RD_TRACE;
3572 170 undef $lastsep;
3573 170 $expectation->is(q{/\\s*/})->at($text);
3574
3575  
3576 170 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 170 170
$lastsep = $1 and "" 0 170 170
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
00170
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
3577 {
3578 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
3579 0 $expectation->failed();
3580 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3581 Parse::RecDescent::_tracefirst($text))
3582 if defined $::RD_TRACE;
3583  
3584 0 last;
3585 }
3586 170 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3587 170 substr($text,0,length($current_match),q{});
3588 170 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 170 170
3589 . $current_match . q{])},
3590 Parse::RecDescent::_tracefirst($text))
3591 if defined $::RD_TRACE;
3592 170 push @item, $item{__PATTERN2__}=$current_match;
3593
3594  
3595 170 ▶ Parse::RecDescent::_trace(q{Trying subrule: [$arg[0]_inner]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 170 170
3596 Parse::RecDescent::_tracefirst($text),
3597 q{standalone_surround},
3598 $tracelevel)
3599 if defined $::RD_TRACE;
3600 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3601 170 $expectation->is(q{<matchrule:$arg[0]_inner>})->at($text);
3602 170 ▶ unless (defined ($_tok = &{'Parse::RecDescent::Template::Mustache::Parser::'.qq{$arg[0]_inner}}($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = &{'Parse::RecDescent::Template::Mustache::Parser::' . "$arg[0]_inner";}($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 165 5 170
3603 {
3604
3605 165 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [$arg[0]_inner]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 165 165
3606 Parse::RecDescent::_tracefirst($text),
3607 q{standalone_surround},
3608 $tracelevel)
3609 if defined $::RD_TRACE;
3610 165 $expectation->failed();
3611 165 last;
3612 }
3613 5 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [$arg[0]_inner]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3614 . $_tok . q{]},
3615  
3616 Parse::RecDescent::_tracefirst($text),
3617 q{standalone_surround},
3618 $tracelevel)
3619 if defined $::RD_TRACE;
3620 5 $item{q{$arg[0]_inner}} = $_tok;
3621 5 push @item, $_tok;
3622
3623 }
3624  
3625 5 ▶ Parse::RecDescent::_trace(q{Trying subrule: [closing_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3626 Parse::RecDescent::_tracefirst($text),
3627 q{standalone_surround},
3628 $tracelevel)
3629 if defined $::RD_TRACE;
3630 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3631 5 $expectation->is(q{closing_tag})->at($text);
3632 5 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::closing_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = closing_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 5 5
3633 {
3634
3635 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [closing_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3636 Parse::RecDescent::_tracefirst($text),
3637 q{standalone_surround},
3638 $tracelevel)
3639 if defined $::RD_TRACE;
3640 0 $expectation->failed();
3641 0 last;
3642 }
3643 5 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [closing_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3644 . $_tok . q{]},
3645  
3646 Parse::RecDescent::_tracefirst($text),
3647 q{standalone_surround},
3648 $tracelevel)
3649 if defined $::RD_TRACE;
3650 5 $item{q{closing_tag}} = $_tok;
3651 5 push @item, $_tok;
3652
3653 }
3654  
3655 5 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3656 q{standalone_surround},
3657 $tracelevel)
3658 if defined $::RD_TRACE;
3659 5 undef $lastsep;
3660 5 $expectation->is(q{/\\s*/})->at($text);
3661
3662  
3663 5 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 5 5
$lastsep = $1 and "" 0 5 5
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
005
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
3664 {
3665 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
3666 0 $expectation->failed();
3667 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3668 Parse::RecDescent::_tracefirst($text))
3669 if defined $::RD_TRACE;
3670  
3671 0 last;
3672 }
3673 5 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3674 5 substr($text,0,length($current_match),q{});
3675 5 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3676 . $current_match . q{])},
3677 Parse::RecDescent::_tracefirst($text))
3678 if defined $::RD_TRACE;
3679 5 push @item, $item{__PATTERN3__}=$current_match;
3680
3681  
3682 5 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3683 Parse::RecDescent::_tracefirst($text),
3684 q{standalone_surround},
3685 $tracelevel)
3686 if defined $::RD_TRACE;
3687
3688  
3689 5 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 5 5
3690 5 my $prev = $thisparser->{prev_is_standalone};
3691 5 $thisparser->{prev_is_standalone} = 0;
3692  
3693 5 ▶ if ( $item[1] =~ /\n/ or $prev) {
Branch: 1 branch
BranchTrueFalseTotal
if ($item[1] =~ /\n/ or $prev) 4 1 5
Condition100%3/3
$item[1] =~ /\n/ or $prev
l!l&&r!l&&!r
131
MC/DC100%2/2
$item[1] =~ /\n/ or $prev
$item[1] =~ /\n/ $prev
Truth table100%3/3
A or B
A= $item[1] =~ /\n/B= $prev
ABresult
1X1
011
000
3694 4 ▶ if ( $item[6] =~ /\n/ or length $text == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if ($item[6] =~ /\n/ or length $text == 0) 4 0 4
Condition66%2/3
$item[6] =~ /\n/ or length $text == 0
l!l&&r!l&&!r
220
MC/DC0%0/2
$item[6] =~ /\n/ or length $text == 0
$item[6] =~ /\n/ length $text == 0
Truth table66%2/3
A or B
A= $item[6] =~ /\n/B= length $text == 0
ABresult
1X1
011
000
3695 4 $item[1] =~ s/(\r?\n?)\s*?$/$1/;
3696 4 $item[6] =~ s/^.*?\n//;
3697 4 $thisparser->{prev_is_standalone} = 1;
3698 }
3699 }
3700  
3701 5 [ @item[1,6,4] ],
3702 };
3703 5 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 5 5
3704 {
3705 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3706 if defined $::RD_TRACE;
3707 0 last;
3708 }
3709 5 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3710 . $_tok . q{])},
3711 Parse::RecDescent::_tracefirst($text))
3712 if defined $::RD_TRACE;
3713 5 push @item, $_tok;
3714 5 $item{__ACTION1__}=$_tok;
3715
3716  
3717 5 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\s*/ opening_tag /\\s*/ <matchrule:$arg[0]_inner> closing_tag /\\s*/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3718 Parse::RecDescent::_tracefirst($text),
3719 q{standalone_surround},
3720 $tracelevel)
3721 if defined $::RD_TRACE;
3722  
3723  
3724  
3725 5 $_matched = 1;
3726 5 last;
3727 }
3728  
3729  
3730 526 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 521 5 526
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
50521
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
3731 {
3732
3733  
3734 521 $_[1] = $text; # NOT SURE THIS IS NEEDED
3735 521 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 521 521
3736 Parse::RecDescent::_tracefirst($_[1]),
3737 q{standalone_surround},
3738 $tracelevel)
3739 if defined $::RD_TRACE;
3740 521 return undef;
3741 }
3742 5 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 5 5
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
050
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
3743 {
3744 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3745 q{standalone_surround},
3746 $tracelevel)
3747 if defined $::RD_TRACE;
3748 0 $return = $score_return;
3749 }
3750 5 splice @{$thisparser->{errors}}, $err_at;
3751 5 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 5 0 5
3752 5 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 5 5
3753 {
3754 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3755 $return . q{])}, "",
3756 q{standalone_surround},
3757 $tracelevel);
3758 0 Parse::RecDescent::_trace(q{(consumed: [} .
3759 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3760 Parse::RecDescent::_tracefirst($text),
3761 , q{standalone_surround},
3762 $tracelevel)
3763 }
3764 5 $_[1] = $text;
3765 5 return $return;
3766 }
3767  
3768 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3769 sub Parse::RecDescent::Template::Mustache::Parser::template
3770 {
3771 73 ▶ my $thisparser = $_[0];
Subroutine template: called CC=45 SCAR=45.7
3772 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3773 73 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
073
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
3774 73 $ERRORS = 0;
3775 73 my $thisrule = $thisparser->{"rules"}{"template"};
3776  
3777 73 ▶ Parse::RecDescent::_trace(q{Trying rule: [template]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 73 73
3778 Parse::RecDescent::_tracefirst($_[1]),
3779 q{template},
3780 $tracelevel)
3781 if defined $::RD_TRACE;
3782  
3783
3784 73 my $err_at = @{$thisparser->{errors}};
3785  
3786 73 my $score;
3787 my $score_return;
3788 73 my $_tok;
3789 73 my $return = undef;
3790 73 my $_matched=0;
3791 73 my $commit=0;
3792 73 my @item = ();
3793 73 my %item = ();
3794 73 my $repeating = $_[2];
3795 73 my $_noactions = $_[3];
3796 73 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 73 0 73
3797 73 my $_itempos = $_[5];
3798 73 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 73 0 73
3799 73 my $text;
3800 my $lastsep;
3801 73 my $current_match;
3802 73 my $expectation = new Parse::RecDescent::Expectation(q{});
3803 73 $expectation->at($_[1]);
3804
3805 73 my $thisoffset;
3806 73 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
3807
3808 73 my $thisline;
3809 73 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
3810  
3811
3812  
3813 73 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 73 0 73
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0073
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3814 {
3815
3816 73 ▶ Parse::RecDescent::_trace(q{Trying production: [template_item eofile]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 73 73
3817 Parse::RecDescent::_tracefirst($_[1]),
3818 q{template},
3819 $tracelevel)
3820 if defined $::RD_TRACE;
3821 73 my $thisprod = $thisrule->{"prods"}[0];
3822 73 $text = $_[1];
3823 73 my $_savetext;
3824 73 @item = (q{template});
3825 73 %item = (__RULE__ => q{template});
3826 73 my $repcount = 0;
3827  
3828  
3829 73 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 73 73
3830 Parse::RecDescent::_tracefirst($text),
3831 q{template},
3832 $tracelevel)
3833 if defined $::RD_TRACE;
3834
3835  
3836 73 ▶ $_tok = ($_noactions) ? 0 : do { my ($otag,$ctag) = @arg ? @arg : ( qw/ {{ }} / );
Branch: 2 branches
BranchTrueFalseTotal
$_noactions ? : 0 73 73
@arg ? : 73 0 73
3837 73 $thisparser->{opening_tag} = $otag;
3838 73 $thisparser->{closing_tag} = $ctag;
3839 73 $thisparser->{prev_is_standalone} = 1;
3840 73 1;
3841 };
3842 73 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 73 73
3843 {
3844 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3845 if defined $::RD_TRACE;
3846 0 last;
3847 }
3848 73 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 73 73
3849 . $_tok . q{])},
3850 Parse::RecDescent::_tracefirst($text))
3851 if defined $::RD_TRACE;
3852 73 push @item, $_tok;
3853 73 $item{__ACTION1__}=$_tok;
3854
3855  
3856 73 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [template_item]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 73 73
3857 Parse::RecDescent::_tracefirst($text),
3858 q{template},
3859 $tracelevel)
3860 if defined $::RD_TRACE;
3861 73 $expectation->is(q{template_item})->at($text);
3862
3863 73 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Template::Mustache::Parser::template_item, 0, 100000000, $_noactions,$expectation,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Template::Mustache::Parser::template_item, 0, 100000000, $_noactions, $expectation, sub { \@arg; } , undef))) 0 71 71
3864 {
3865 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [template_item]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3866 Parse::RecDescent::_tracefirst($text),
3867 q{template},
3868 $tracelevel)
3869 if defined $::RD_TRACE;
3870 0 last;
3871 }
3872 71 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [template_item]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
3873 . @$_tok . q{ times)},
3874  
3875 Parse::RecDescent::_tracefirst($text),
3876 q{template},
3877 $tracelevel)
3878 if defined $::RD_TRACE;
3879 71 $item{q{template_item(s?)}} = $_tok;
3880 71 push @item, $_tok;
3881
3882  
3883  
3884 71 ▶ Parse::RecDescent::_trace(q{Trying subrule: [eofile]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
3885 Parse::RecDescent::_tracefirst($text),
3886 q{template},
3887 $tracelevel)
3888 if defined $::RD_TRACE;
3889 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3890 71 $expectation->is(q{eofile})->at($text);
3891 71 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::eofile($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = eofile($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 5 66 71
3892 {
3893
3894 5 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [eofile]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3895 Parse::RecDescent::_tracefirst($text),
3896 q{template},
3897 $tracelevel)
3898 if defined $::RD_TRACE;
3899 5 $expectation->failed();
3900 5 last;
3901 }
3902 66 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [eofile]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
3903 . $_tok . q{]},
3904  
3905 Parse::RecDescent::_tracefirst($text),
3906 q{template},
3907 $tracelevel)
3908 if defined $::RD_TRACE;
3909 66 $item{q{eofile}} = $_tok;
3910 66 push @item, $_tok;
3911
3912 }
3913  
3914 66 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
3915 Parse::RecDescent::_tracefirst($text),
3916 q{template},
3917 $tracelevel)
3918 if defined $::RD_TRACE;
3919
3920  
3921 66 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 66 66
3922 66 Template::Mustache::Token::Template->new(
3923 items => $item[2]
3924 );
3925 };
3926 66 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 66 66
3927 {
3928 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3929 if defined $::RD_TRACE;
3930 0 last;
3931 }
3932 66 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
3933 . $_tok . q{])},
3934 Parse::RecDescent::_tracefirst($text))
3935 if defined $::RD_TRACE;
3936 66 push @item, $_tok;
3937 66 $item{__ACTION2__}=$_tok;
3938
3939  
3940 66 ▶ Parse::RecDescent::_trace(q{>>Matched production: [template_item eofile]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
3941 Parse::RecDescent::_tracefirst($text),
3942 q{template},
3943 $tracelevel)
3944 if defined $::RD_TRACE;
3945  
3946  
3947  
3948 66 $_matched = 1;
3949 66 last;
3950 }
3951  
3952  
3953 71 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 5 66 71
3954 {
3955
3956 5 ▶ Parse::RecDescent::_trace(q{Trying production: [<error...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3957 Parse::RecDescent::_tracefirst($_[1]),
3958 q{template},
3959 $tracelevel)
3960 if defined $::RD_TRACE;
3961 5 my $thisprod = $thisrule->{"prods"}[1];
3962
3963 5 my $_savetext;
3964 5 @item = (q{template});
3965 5 %item = (__RULE__ => q{template});
3966 5 my $repcount = 0;
3967  
3968  
3969
3970  
3971 5 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3972 Parse::RecDescent::_tracefirst($text),
3973 q{template},
3974 $tracelevel)
3975 if defined $::RD_TRACE;
3976 5 ▶ $_tok = do { if (1) { do {
Branch: 1 branch
BranchTrueFalseTotal
unless ($_noactions) 5 0 5
3977 5 my $rule = $item[0];
3978 5 $rule =~ s/_/ /g;
3979 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
3980 5 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
3981 5 } unless $_noactions; undef } else {0} };
3982 5 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 0 5 5
3983 {
3984 0 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3985 . $_tok . q{])},
3986 Parse::RecDescent::_tracefirst($text))
3987 if defined $::RD_TRACE;
3988 }
3989 else
3990 {
3991 5 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3992 Parse::RecDescent::_tracefirst($text))
3993 if defined $::RD_TRACE;
3994 }
3995
3996 5 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 5 0 5
3997 0 push @item, $item{__DIRECTIVE1__}=$_tok;
3998
3999  
4000 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error...>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4001 Parse::RecDescent::_tracefirst($text),
4002 q{template},
4003 $tracelevel)
4004 if defined $::RD_TRACE;
4005  
4006  
4007  
4008 0 $_matched = 1;
4009 0 last;
4010 }
4011  
4012  
4013 71 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 5 66 71
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
6605
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
4014 {
4015
4016  
4017 5 $_[1] = $text; # NOT SURE THIS IS NEEDED
4018 5 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
4019 Parse::RecDescent::_tracefirst($_[1]),
4020 q{template},
4021 $tracelevel)
4022 if defined $::RD_TRACE;
4023 5 return undef;
4024 }
4025 66 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 66 66
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0660
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
4026 {
4027 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4028 q{template},
4029 $tracelevel)
4030 if defined $::RD_TRACE;
4031 0 $return = $score_return;
4032 }
4033 66 splice @{$thisparser->{errors}}, $err_at;
4034 66 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 66 0 66
4035 66 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 66 66
4036 {
4037 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
4038 $return . q{])}, "",
4039 q{template},
4040 $tracelevel);
4041 0 Parse::RecDescent::_trace(q{(consumed: [} .
4042 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
4043 Parse::RecDescent::_tracefirst($text),
4044 , q{template},
4045 $tracelevel)
4046 }
4047 66 $_[1] = $text;
4048 66 return $return;
4049 }
4050  
4051 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4052 sub Parse::RecDescent::Template::Mustache::Parser::template_item
4053 {
4054 291 ▶ my $thisparser = $_[0];
Subroutine template_item: called CC=26 SCAR=38.8
4055 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4056 291 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
2910
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
4057 291 $ERRORS = 0;
4058 291 my $thisrule = $thisparser->{"rules"}{"template_item"};
4059  
4060 291 ▶ Parse::RecDescent::_trace(q{Trying rule: [template_item]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 291 291
4061 Parse::RecDescent::_tracefirst($_[1]),
4062 q{template_item},
4063 $tracelevel)
4064 if defined $::RD_TRACE;
4065  
4066
4067 291 my $err_at = @{$thisparser->{errors}};
4068  
4069 291 my $score;
4070 my $score_return;
4071 291 my $_tok;
4072 291 my $return = undef;
4073 291 my $_matched=0;
4074 291 my $commit=0;
4075 291 my @item = ();
4076 291 my %item = ();
4077 291 my $repeating = $_[2];
4078 291 my $_noactions = $_[3];
4079 291 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 291 0 291
4080 291 my $_itempos = $_[5];
4081 291 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 264 27 291
4082 291 my $text;
4083 my $lastsep;
4084 291 my $current_match;
4085 291 my $expectation = new Parse::RecDescent::Expectation(q{partial, or section, or delimiter_change, or comment, or unescaped_variable_amp, or unescaped_variable, or variable, or verbatim});
4086 291 $expectation->at($_[1]);
4087
4088 291 my $thisoffset;
4089 291 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
4090
4091 291 my $thisline;
4092 291 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4093  
4094
4095  
4096 291 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 291 0 291
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00291
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4097 {
4098
4099 291 ▶ Parse::RecDescent::_trace(q{Trying production: [partial, or section, or delimiter_change, or comment, or unescaped_variable_amp, or unescaped_variable, or variable, or verbatim]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 291 291
4100 Parse::RecDescent::_tracefirst($_[1]),
4101 q{template_item},
4102 $tracelevel)
4103 if defined $::RD_TRACE;
4104 291 my $thisprod = $thisrule->{"prods"}[0];
4105 291 $text = $_[1];
4106 291 my $_savetext;
4107 291 @item = (q{template_item});
4108 291 %item = (__RULE__ => q{template_item});
4109 291 my $repcount = 0;
4110  
4111  
4112 291 ▶ Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_template_item]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 291 291
4113 Parse::RecDescent::_tracefirst($text),
4114 q{template_item},
4115 $tracelevel)
4116 if defined $::RD_TRACE;
4117 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4118 291 $expectation->is(q{})->at($text);
4119 291 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::_alternation_1_of_production_1_of_rule_template_item($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = _alternation_1_of_production_1_of_rule_template_item($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 289 289
4120 {
4121
4122 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [_alternation_1_of_production_1_of_rule_template_item]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4123 Parse::RecDescent::_tracefirst($text),
4124 q{template_item},
4125 $tracelevel)
4126 if defined $::RD_TRACE;
4127 0 $expectation->failed();
4128 0 last;
4129 }
4130 289 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_template_item]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 289 289
4131 . $_tok . q{]},
4132  
4133 Parse::RecDescent::_tracefirst($text),
4134 q{template_item},
4135 $tracelevel)
4136 if defined $::RD_TRACE;
4137 289 $item{q{_alternation_1_of_production_1_of_rule_template_item}} = $_tok;
4138 289 push @item, $_tok;
4139
4140 }
4141  
4142 289 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 289 289
4143 Parse::RecDescent::_tracefirst($text),
4144 q{template_item},
4145 $tracelevel)
4146 if defined $::RD_TRACE;
4147
4148  
4149 289 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 289 289
4150 289 $item[1]
4151 };
4152 289 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 289 289
4153 {
4154 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4155 if defined $::RD_TRACE;
4156 0 last;
4157 }
4158 289 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 289 289
4159 . $_tok . q{])},
4160 Parse::RecDescent::_tracefirst($text))
4161 if defined $::RD_TRACE;
4162 289 push @item, $_tok;
4163 289 $item{__ACTION1__}=$_tok;
4164
4165  
4166 289 ▶ Parse::RecDescent::_trace(q{>>Matched production: [partial, or section, or delimiter_change, or comment, or unescaped_variable_amp, or unescaped_variable, or variable, or verbatim]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 289 289
4167 Parse::RecDescent::_tracefirst($text),
4168 q{template_item},
4169 $tracelevel)
4170 if defined $::RD_TRACE;
4171  
4172  
4173  
4174 289 $_matched = 1;
4175 289 last;
4176 }
4177  
4178  
4179 289 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 289 289
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
28900
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
4180 {
4181
4182  
4183 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
4184 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4185 Parse::RecDescent::_tracefirst($_[1]),
4186 q{template_item},
4187 $tracelevel)
4188 if defined $::RD_TRACE;
4189 0 return undef;
4190 }
4191 289 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 289 289
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
02890
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
4192 {
4193 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4194 q{template_item},
4195 $tracelevel)
4196 if defined $::RD_TRACE;
4197 0 $return = $score_return;
4198 }
4199 289 splice @{$thisparser->{errors}}, $err_at;
4200 289 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 289 0 289
4201 289 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 289 289
4202 {
4203 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
4204 $return . q{])}, "",
4205 q{template_item},
4206 $tracelevel);
4207 0 Parse::RecDescent::_trace(q{(consumed: [} .
4208 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
4209 Parse::RecDescent::_tracefirst($text),
4210 , q{template_item},
4211 $tracelevel)
4212 }
4213 289 $_[1] = $text;
4214 289 return $return;
4215 }
4216  
4217 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4218 sub Parse::RecDescent::Template::Mustache::Parser::unescaped_variable
4219 {
4220 259 ▶ my $thisparser = $_[0];
Subroutine unescaped_variable: called CC=69 SCAR=72.6
4221 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4222 259 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
2590
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
4223 259 $ERRORS = 0;
4224 259 my $thisrule = $thisparser->{"rules"}{"unescaped_variable"};
4225  
4226 259 ▶ Parse::RecDescent::_trace(q{Trying rule: [unescaped_variable]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4227 Parse::RecDescent::_tracefirst($_[1]),
4228 q{unescaped_variable},
4229 $tracelevel)
4230 if defined $::RD_TRACE;
4231  
4232
4233 259 my $err_at = @{$thisparser->{errors}};
4234  
4235 259 my $score;
4236 my $score_return;
4237 259 my $_tok;
4238 259 my $return = undef;
4239 259 my $_matched=0;
4240 259 my $commit=0;
4241 259 my @item = ();
4242 259 my %item = ();
4243 259 my $repeating = $_[2];
4244 259 my $_noactions = $_[3];
4245 259 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 259 0 259
4246 259 my $_itempos = $_[5];
4247 259 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 233 26 259
4248 259 my $text;
4249 my $lastsep;
4250 259 my $current_match;
4251 259 my $expectation = new Parse::RecDescent::Expectation(q{/\\s*/});
4252 259 $expectation->at($_[1]);
4253
4254 259 my $thisoffset;
4255 259 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
4256
4257 259 my $thisline;
4258 259 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4259  
4260
4261  
4262 259 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 259 0 259
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00259
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4263 {
4264
4265 259 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\s*/ opening_tag '\{' /\\s*/ variable_name /\\s*/ '\}' closing_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4266 Parse::RecDescent::_tracefirst($_[1]),
4267 q{unescaped_variable},
4268 $tracelevel)
4269 if defined $::RD_TRACE;
4270 259 my $thisprod = $thisrule->{"prods"}[0];
4271 259 $text = $_[1];
4272 259 my $_savetext;
4273 259 @item = (q{unescaped_variable});
4274 259 %item = (__RULE__ => q{unescaped_variable});
4275 259 my $repcount = 0;
4276  
4277  
4278 259 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4279 q{unescaped_variable},
4280 $tracelevel)
4281 if defined $::RD_TRACE;
4282 259 undef $lastsep;
4283 259 $expectation->is(q{})->at($text);
4284
4285  
4286 259 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 259 259
$lastsep = $1 and "" 0 259 259
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
00259
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
4287 {
4288 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4289 0 $expectation->failed();
4290 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4291 Parse::RecDescent::_tracefirst($text))
4292 if defined $::RD_TRACE;
4293  
4294 0 last;
4295 }
4296 259 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4297 259 substr($text,0,length($current_match),q{});
4298 259 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4299 . $current_match . q{])},
4300 Parse::RecDescent::_tracefirst($text))
4301 if defined $::RD_TRACE;
4302 259 push @item, $item{__PATTERN1__}=$current_match;
4303
4304  
4305 259 ▶ Parse::RecDescent::_trace(q{Trying subrule: [opening_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4306 Parse::RecDescent::_tracefirst($text),
4307 q{unescaped_variable},
4308 $tracelevel)
4309 if defined $::RD_TRACE;
4310 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4311 259 $expectation->is(q{opening_tag})->at($text);
4312 259 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::opening_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = opening_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 178 81 259
4313 {
4314
4315 178 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [opening_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 178 178
4316 Parse::RecDescent::_tracefirst($text),
4317 q{unescaped_variable},
4318 $tracelevel)
4319 if defined $::RD_TRACE;
4320 178 $expectation->failed();
4321 178 last;
4322 }
4323 81 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [opening_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
4324 . $_tok . q{]},
4325  
4326 Parse::RecDescent::_tracefirst($text),
4327 q{unescaped_variable},
4328 $tracelevel)
4329 if defined $::RD_TRACE;
4330 81 $item{q{opening_tag}} = $_tok;
4331 81 push @item, $_tok;
4332
4333 }
4334  
4335 81 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['\{']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
4336 Parse::RecDescent::_tracefirst($text),
4337 q{unescaped_variable},
4338 $tracelevel)
4339 if defined $::RD_TRACE;
4340 81 undef $lastsep;
4341 81 $expectation->is(q{'\{'})->at($text);
4342
4343  
4344 81 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\{/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\{/) 81 0 81
$lastsep = $1 and "" 0 81 81
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\{/
!ll&&!rl&&r
0810
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\{/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\{/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\{/
ABresult
0X0
100
111
4345 {
4346 81 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 81 0 81
4347
4348 81 $expectation->failed();
4349 81 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
4350 Parse::RecDescent::_tracefirst($text))
4351 if defined $::RD_TRACE;
4352 81 last;
4353 }
4354 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4355 0 substr($text,0,length($current_match),q{});
4356 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4357 . $current_match . q{])},
4358 Parse::RecDescent::_tracefirst($text))
4359 if defined $::RD_TRACE;
4360 0 push @item, $item{__STRING1__}=$current_match;
4361
4362  
4363 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4364 q{unescaped_variable},
4365 $tracelevel)
4366 if defined $::RD_TRACE;
4367 0 undef $lastsep;
4368 0 $expectation->is(q{/\\s*/})->at($text);
4369
4370  
4371 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 0 0
$lastsep = $1 and "" 0 0 0
Condition0%0/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
000
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
4372 {
4373 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4374 0 $expectation->failed();
4375 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4376 Parse::RecDescent::_tracefirst($text))
4377 if defined $::RD_TRACE;
4378  
4379 0 last;
4380 }
4381 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4382 0 substr($text,0,length($current_match),q{});
4383 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4384 . $current_match . q{])},
4385 Parse::RecDescent::_tracefirst($text))
4386 if defined $::RD_TRACE;
4387 0 push @item, $item{__PATTERN2__}=$current_match;
4388
4389  
4390 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [variable_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4391 Parse::RecDescent::_tracefirst($text),
4392 q{unescaped_variable},
4393 $tracelevel)
4394 if defined $::RD_TRACE;
4395 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
4396 0 $expectation->is(q{variable_name})->at($text);
4397 0 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::variable_name($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = variable_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 0 0
4398 {
4399
4400 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [variable_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4401 Parse::RecDescent::_tracefirst($text),
4402 q{unescaped_variable},
4403 $tracelevel)
4404 if defined $::RD_TRACE;
4405 0 $expectation->failed();
4406 0 last;
4407 }
4408 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [variable_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4409 . $_tok . q{]},
4410  
4411 Parse::RecDescent::_tracefirst($text),
4412 q{unescaped_variable},
4413 $tracelevel)
4414 if defined $::RD_TRACE;
4415 0 $item{q{variable_name}} = $_tok;
4416 0 push @item, $_tok;
4417
4418 }
4419  
4420 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4421 q{unescaped_variable},
4422 $tracelevel)
4423 if defined $::RD_TRACE;
4424 0 undef $lastsep;
4425 0 $expectation->is(q{/\\s*/})->at($text);
4426
4427  
4428 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 0 0
$lastsep = $1 and "" 0 0 0
Condition0%0/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
000
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
4429 {
4430 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4431 0 $expectation->failed();
4432 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4433 Parse::RecDescent::_tracefirst($text))
4434 if defined $::RD_TRACE;
4435  
4436 0 last;
4437 }
4438 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4439 0 substr($text,0,length($current_match),q{});
4440 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4441 . $current_match . q{])},
4442 Parse::RecDescent::_tracefirst($text))
4443 if defined $::RD_TRACE;
4444 0 push @item, $item{__PATTERN3__}=$current_match;
4445
4446  
4447 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['\}']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4448 Parse::RecDescent::_tracefirst($text),
4449 q{unescaped_variable},
4450 $tracelevel)
4451 if defined $::RD_TRACE;
4452 0 undef $lastsep;
4453 0 $expectation->is(q{'\}'})->at($text);
4454
4455  
4456 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\}/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\}/) 0 0 0
$lastsep = $1 and "" 0 0 0
Condition0%0/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\}/
!ll&&!rl&&r
000
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\}/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\}/
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\}/
ABresult
0X0
100
111
4457 {
4458 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4459
4460 0 $expectation->failed();
4461 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4462 Parse::RecDescent::_tracefirst($text))
4463 if defined $::RD_TRACE;
4464 0 last;
4465 }
4466 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4467 0 substr($text,0,length($current_match),q{});
4468 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4469 . $current_match . q{])},
4470 Parse::RecDescent::_tracefirst($text))
4471 if defined $::RD_TRACE;
4472 0 push @item, $item{__STRING2__}=$current_match;
4473
4474  
4475 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [closing_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4476 Parse::RecDescent::_tracefirst($text),
4477 q{unescaped_variable},
4478 $tracelevel)
4479 if defined $::RD_TRACE;
4480 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
4481 0 $expectation->is(q{closing_tag})->at($text);
4482 0 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::closing_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = closing_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 0 0
4483 {
4484
4485 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [closing_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4486 Parse::RecDescent::_tracefirst($text),
4487 q{unescaped_variable},
4488 $tracelevel)
4489 if defined $::RD_TRACE;
4490 0 $expectation->failed();
4491 0 last;
4492 }
4493 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [closing_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4494 . $_tok . q{]},
4495  
4496 Parse::RecDescent::_tracefirst($text),
4497 q{unescaped_variable},
4498 $tracelevel)
4499 if defined $::RD_TRACE;
4500 0 $item{q{closing_tag}} = $_tok;
4501 0 push @item, $_tok;
4502
4503 }
4504  
4505 0 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4506 Parse::RecDescent::_tracefirst($text),
4507 q{unescaped_variable},
4508 $tracelevel)
4509 if defined $::RD_TRACE;
4510
4511  
4512 0 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
4513 Template::Mustache::Token::Template->new(
4514 items => [
4515 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
4516 Template::Mustache::Token::Variable->new(
4517 name => $item{variable_name},
4518 0 escape => 0,
4519 ),
4520 ]
4521 );
4522 };
4523 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
4524 {
4525 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4526 if defined $::RD_TRACE;
4527 0 last;
4528 }
4529 0 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4530 . $_tok . q{])},
4531 Parse::RecDescent::_tracefirst($text))
4532 if defined $::RD_TRACE;
4533 0 push @item, $_tok;
4534 0 $item{__ACTION1__}=$_tok;
4535
4536  
4537 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\s*/ opening_tag '\{' /\\s*/ variable_name /\\s*/ '\}' closing_tag]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4538 Parse::RecDescent::_tracefirst($text),
4539 q{unescaped_variable},
4540 $tracelevel)
4541 if defined $::RD_TRACE;
4542  
4543  
4544  
4545 0 $_matched = 1;
4546 0 last;
4547 }
4548  
4549  
4550 259 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 259 0 259
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
00259
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
4551 {
4552
4553  
4554 259 $_[1] = $text; # NOT SURE THIS IS NEEDED
4555 259 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4556 Parse::RecDescent::_tracefirst($_[1]),
4557 q{unescaped_variable},
4558 $tracelevel)
4559 if defined $::RD_TRACE;
4560 259 return undef;
4561 }
4562 0 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 0 0
Condition0%0/3
not defined $return and defined $score
!ll&&!rl&&r
000
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
4563 {
4564 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4565 q{unescaped_variable},
4566 $tracelevel)
4567 if defined $::RD_TRACE;
4568 0 $return = $score_return;
4569 }
4570 0 splice @{$thisparser->{errors}}, $err_at;
4571 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
4572 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
4573 {
4574 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
4575 $return . q{])}, "",
4576 q{unescaped_variable},
4577 $tracelevel);
4578 0 Parse::RecDescent::_trace(q{(consumed: [} .
4579 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
4580 Parse::RecDescent::_tracefirst($text),
4581 , q{unescaped_variable},
4582 $tracelevel)
4583 }
4584 0 $_[1] = $text;
4585 0 return $return;
4586 }
4587  
4588 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4589 sub Parse::RecDescent::Template::Mustache::Parser::unescaped_variable_amp
4590 {
4591 259 ▶ my $thisparser = $_[0];
Subroutine unescaped_variable_amp: called CC=62 SCAR=69.0
4592 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4593 259 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
2590
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
4594 259 $ERRORS = 0;
4595 259 my $thisrule = $thisparser->{"rules"}{"unescaped_variable_amp"};
4596  
4597 259 ▶ Parse::RecDescent::_trace(q{Trying rule: [unescaped_variable_amp]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4598 Parse::RecDescent::_tracefirst($_[1]),
4599 q{unescaped_variable_amp},
4600 $tracelevel)
4601 if defined $::RD_TRACE;
4602  
4603
4604 259 my $err_at = @{$thisparser->{errors}};
4605  
4606 259 my $score;
4607 my $score_return;
4608 259 my $_tok;
4609 259 my $return = undef;
4610 259 my $_matched=0;
4611 259 my $commit=0;
4612 259 my @item = ();
4613 259 my %item = ();
4614 259 my $repeating = $_[2];
4615 259 my $_noactions = $_[3];
4616 259 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 259 0 259
4617 259 my $_itempos = $_[5];
4618 259 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 233 26 259
4619 259 my $text;
4620 my $lastsep;
4621 259 my $current_match;
4622 259 my $expectation = new Parse::RecDescent::Expectation(q{/\\s*/});
4623 259 $expectation->at($_[1]);
4624
4625 259 my $thisoffset;
4626 259 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
4627
4628 259 my $thisline;
4629 259 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4630  
4631
4632  
4633 259 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 259 0 259
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00259
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4634 {
4635
4636 259 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\s*/ opening_tag '&' /\\s*/ variable_name /\\s*/ closing_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4637 Parse::RecDescent::_tracefirst($_[1]),
4638 q{unescaped_variable_amp},
4639 $tracelevel)
4640 if defined $::RD_TRACE;
4641 259 my $thisprod = $thisrule->{"prods"}[0];
4642 259 $text = $_[1];
4643 259 my $_savetext;
4644 259 @item = (q{unescaped_variable_amp});
4645 259 %item = (__RULE__ => q{unescaped_variable_amp});
4646 259 my $repcount = 0;
4647  
4648  
4649 259 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4650 q{unescaped_variable_amp},
4651 $tracelevel)
4652 if defined $::RD_TRACE;
4653 259 undef $lastsep;
4654 259 $expectation->is(q{})->at($text);
4655
4656  
4657 259 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 259 259
$lastsep = $1 and "" 0 259 259
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
00259
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
4658 {
4659 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4660 0 $expectation->failed();
4661 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4662 Parse::RecDescent::_tracefirst($text))
4663 if defined $::RD_TRACE;
4664  
4665 0 last;
4666 }
4667 259 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4668 259 substr($text,0,length($current_match),q{});
4669 259 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4670 . $current_match . q{])},
4671 Parse::RecDescent::_tracefirst($text))
4672 if defined $::RD_TRACE;
4673 259 push @item, $item{__PATTERN1__}=$current_match;
4674
4675  
4676 259 ▶ Parse::RecDescent::_trace(q{Trying subrule: [opening_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4677 Parse::RecDescent::_tracefirst($text),
4678 q{unescaped_variable_amp},
4679 $tracelevel)
4680 if defined $::RD_TRACE;
4681 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4682 259 $expectation->is(q{opening_tag})->at($text);
4683 259 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::opening_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = opening_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 178 81 259
4684 {
4685
4686 178 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [opening_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 178 178
4687 Parse::RecDescent::_tracefirst($text),
4688 q{unescaped_variable_amp},
4689 $tracelevel)
4690 if defined $::RD_TRACE;
4691 178 $expectation->failed();
4692 178 last;
4693 }
4694 81 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [opening_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
4695 . $_tok . q{]},
4696  
4697 Parse::RecDescent::_tracefirst($text),
4698 q{unescaped_variable_amp},
4699 $tracelevel)
4700 if defined $::RD_TRACE;
4701 81 $item{q{opening_tag}} = $_tok;
4702 81 push @item, $_tok;
4703
4704 }
4705  
4706 81 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['&']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
4707 Parse::RecDescent::_tracefirst($text),
4708 q{unescaped_variable_amp},
4709 $tracelevel)
4710 if defined $::RD_TRACE;
4711 81 undef $lastsep;
4712 81 $expectation->is(q{'&'})->at($text);
4713
4714  
4715 81 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\&/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\&/) 81 0 81
$lastsep = $1 and "" 0 81 81
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\&/
!ll&&!rl&&r
0810
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\&/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\&/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\&/
ABresult
0X0
100
111
4716 {
4717 81 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 81 0 81
4718
4719 81 $expectation->failed();
4720 81 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
4721 Parse::RecDescent::_tracefirst($text))
4722 if defined $::RD_TRACE;
4723 81 last;
4724 }
4725 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4726 0 substr($text,0,length($current_match),q{});
4727 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4728 . $current_match . q{])},
4729 Parse::RecDescent::_tracefirst($text))
4730 if defined $::RD_TRACE;
4731 0 push @item, $item{__STRING1__}=$current_match;
4732
4733  
4734 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4735 q{unescaped_variable_amp},
4736 $tracelevel)
4737 if defined $::RD_TRACE;
4738 0 undef $lastsep;
4739 0 $expectation->is(q{/\\s*/})->at($text);
4740
4741  
4742 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 0 0
$lastsep = $1 and "" 0 0 0
Condition0%0/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
000
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
4743 {
4744 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4745 0 $expectation->failed();
4746 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4747 Parse::RecDescent::_tracefirst($text))
4748 if defined $::RD_TRACE;
4749  
4750 0 last;
4751 }
4752 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4753 0 substr($text,0,length($current_match),q{});
4754 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4755 . $current_match . q{])},
4756 Parse::RecDescent::_tracefirst($text))
4757 if defined $::RD_TRACE;
4758 0 push @item, $item{__PATTERN2__}=$current_match;
4759
4760  
4761 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [variable_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4762 Parse::RecDescent::_tracefirst($text),
4763 q{unescaped_variable_amp},
4764 $tracelevel)
4765 if defined $::RD_TRACE;
4766 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
4767 0 $expectation->is(q{variable_name})->at($text);
4768 0 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::variable_name($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = variable_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 0 0
4769 {
4770
4771 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [variable_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4772 Parse::RecDescent::_tracefirst($text),
4773 q{unescaped_variable_amp},
4774 $tracelevel)
4775 if defined $::RD_TRACE;
4776 0 $expectation->failed();
4777 0 last;
4778 }
4779 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [variable_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4780 . $_tok . q{]},
4781  
4782 Parse::RecDescent::_tracefirst($text),
4783 q{unescaped_variable_amp},
4784 $tracelevel)
4785 if defined $::RD_TRACE;
4786 0 $item{q{variable_name}} = $_tok;
4787 0 push @item, $_tok;
4788
4789 }
4790  
4791 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4792 q{unescaped_variable_amp},
4793 $tracelevel)
4794 if defined $::RD_TRACE;
4795 0 undef $lastsep;
4796 0 $expectation->is(q{/\\s*/})->at($text);
4797
4798  
4799 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 0 0
$lastsep = $1 and "" 0 0 0
Condition0%0/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
000
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
4800 {
4801 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4802 0 $expectation->failed();
4803 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4804 Parse::RecDescent::_tracefirst($text))
4805 if defined $::RD_TRACE;
4806  
4807 0 last;
4808 }
4809 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4810 0 substr($text,0,length($current_match),q{});
4811 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4812 . $current_match . q{])},
4813 Parse::RecDescent::_tracefirst($text))
4814 if defined $::RD_TRACE;
4815 0 push @item, $item{__PATTERN3__}=$current_match;
4816
4817  
4818 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [closing_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4819 Parse::RecDescent::_tracefirst($text),
4820 q{unescaped_variable_amp},
4821 $tracelevel)
4822 if defined $::RD_TRACE;
4823 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
4824 0 $expectation->is(q{closing_tag})->at($text);
4825 0 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::closing_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = closing_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 0 0
4826 {
4827
4828 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [closing_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4829 Parse::RecDescent::_tracefirst($text),
4830 q{unescaped_variable_amp},
4831 $tracelevel)
4832 if defined $::RD_TRACE;
4833 0 $expectation->failed();
4834 0 last;
4835 }
4836 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [closing_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4837 . $_tok . q{]},
4838  
4839 Parse::RecDescent::_tracefirst($text),
4840 q{unescaped_variable_amp},
4841 $tracelevel)
4842 if defined $::RD_TRACE;
4843 0 $item{q{closing_tag}} = $_tok;
4844 0 push @item, $_tok;
4845
4846 }
4847  
4848 0 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4849 Parse::RecDescent::_tracefirst($text),
4850 q{unescaped_variable_amp},
4851 $tracelevel)
4852 if defined $::RD_TRACE;
4853
4854  
4855 0 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
4856 Template::Mustache::Token::Template->new(
4857 items => [
4858 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
4859 Template::Mustache::Token::Variable->new(
4860 name => $item{variable_name},
4861 0 escape => 0,
4862 ),
4863 ]
4864 );
4865 };
4866 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
4867 {
4868 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4869 if defined $::RD_TRACE;
4870 0 last;
4871 }
4872 0 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4873 . $_tok . q{])},
4874 Parse::RecDescent::_tracefirst($text))
4875 if defined $::RD_TRACE;
4876 0 push @item, $_tok;
4877 0 $item{__ACTION1__}=$_tok;
4878
4879  
4880 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\s*/ opening_tag '&' /\\s*/ variable_name /\\s*/ closing_tag]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4881 Parse::RecDescent::_tracefirst($text),
4882 q{unescaped_variable_amp},
4883 $tracelevel)
4884 if defined $::RD_TRACE;
4885  
4886  
4887  
4888 0 $_matched = 1;
4889 0 last;
4890 }
4891  
4892  
4893 259 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 259 0 259
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
00259
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
4894 {
4895
4896  
4897 259 $_[1] = $text; # NOT SURE THIS IS NEEDED
4898 259 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4899 Parse::RecDescent::_tracefirst($_[1]),
4900 q{unescaped_variable_amp},
4901 $tracelevel)
4902 if defined $::RD_TRACE;
4903 259 return undef;
4904 }
4905 0 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 0 0
Condition0%0/3
not defined $return and defined $score
!ll&&!rl&&r
000
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
4906 {
4907 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4908 q{unescaped_variable_amp},
4909 $tracelevel)
4910 if defined $::RD_TRACE;
4911 0 $return = $score_return;
4912 }
4913 0 splice @{$thisparser->{errors}}, $err_at;
4914 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
4915 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
4916 {
4917 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
4918 $return . q{])}, "",
4919 q{unescaped_variable_amp},
4920 $tracelevel);
4921 0 Parse::RecDescent::_trace(q{(consumed: [} .
4922 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
4923 Parse::RecDescent::_tracefirst($text),
4924 , q{unescaped_variable_amp},
4925 $tracelevel)
4926 }
4927 0 $_[1] = $text;
4928 0 return $return;
4929 }
4930  
4931 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4932 sub Parse::RecDescent::Template::Mustache::Parser::variable
4933 {
4934 259 ▶ my $thisparser = $_[0];
Subroutine variable: called CC=55 SCAR=50.6
4935 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4936 259 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
2590
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
4937 259 $ERRORS = 0;
4938 259 my $thisrule = $thisparser->{"rules"}{"variable"};
4939  
4940 259 ▶ Parse::RecDescent::_trace(q{Trying rule: [variable]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4941 Parse::RecDescent::_tracefirst($_[1]),
4942 q{variable},
4943 $tracelevel)
4944 if defined $::RD_TRACE;
4945  
4946
4947 259 my $err_at = @{$thisparser->{errors}};
4948  
4949 259 my $score;
4950 my $score_return;
4951 259 my $_tok;
4952 259 my $return = undef;
4953 259 my $_matched=0;
4954 259 my $commit=0;
4955 259 my @item = ();
4956 259 my %item = ();
4957 259 my $repeating = $_[2];
4958 259 my $_noactions = $_[3];
4959 259 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 259 0 259
4960 259 my $_itempos = $_[5];
4961 259 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 233 26 259
4962 259 my $text;
4963 my $lastsep;
4964 259 my $current_match;
4965 259 my $expectation = new Parse::RecDescent::Expectation(q{/\\s*/});
4966 259 $expectation->at($_[1]);
4967
4968 259 my $thisoffset;
4969 259 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
4970
4971 259 my $thisline;
4972 259 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4973  
4974
4975  
4976 259 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 259 0 259
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00259
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4977 {
4978
4979 259 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\s*/ opening_tag /\\s*/ variable_name /\\s*/ closing_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4980 Parse::RecDescent::_tracefirst($_[1]),
4981 q{variable},
4982 $tracelevel)
4983 if defined $::RD_TRACE;
4984 259 my $thisprod = $thisrule->{"prods"}[0];
4985 259 $text = $_[1];
4986 259 my $_savetext;
4987 259 @item = (q{variable});
4988 259 %item = (__RULE__ => q{variable});
4989 259 my $repcount = 0;
4990  
4991  
4992 259 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
4993 q{variable},
4994 $tracelevel)
4995 if defined $::RD_TRACE;
4996 259 undef $lastsep;
4997 259 $expectation->is(q{})->at($text);
4998
4999  
5000 259 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 259 259
$lastsep = $1 and "" 0 259 259
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
00259
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
5001 {
5002 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
5003 0 $expectation->failed();
5004 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5005 Parse::RecDescent::_tracefirst($text))
5006 if defined $::RD_TRACE;
5007  
5008 0 last;
5009 }
5010 259 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5011 259 substr($text,0,length($current_match),q{});
5012 259 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
5013 . $current_match . q{])},
5014 Parse::RecDescent::_tracefirst($text))
5015 if defined $::RD_TRACE;
5016 259 push @item, $item{__PATTERN1__}=$current_match;
5017
5018  
5019 259 ▶ Parse::RecDescent::_trace(q{Trying subrule: [opening_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 259 259
5020 Parse::RecDescent::_tracefirst($text),
5021 q{variable},
5022 $tracelevel)
5023 if defined $::RD_TRACE;
5024 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5025 259 $expectation->is(q{opening_tag})->at($text);
5026 259 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::opening_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = opening_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 178 81 259
5027 {
5028
5029 178 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [opening_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 178 178
5030 Parse::RecDescent::_tracefirst($text),
5031 q{variable},
5032 $tracelevel)
5033 if defined $::RD_TRACE;
5034 178 $expectation->failed();
5035 178 last;
5036 }
5037 81 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [opening_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
5038 . $_tok . q{]},
5039  
5040 Parse::RecDescent::_tracefirst($text),
5041 q{variable},
5042 $tracelevel)
5043 if defined $::RD_TRACE;
5044 81 $item{q{opening_tag}} = $_tok;
5045 81 push @item, $_tok;
5046
5047 }
5048  
5049 81 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
5050 q{variable},
5051 $tracelevel)
5052 if defined $::RD_TRACE;
5053 81 undef $lastsep;
5054 81 $expectation->is(q{/\\s*/})->at($text);
5055
5056  
5057 81 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 81 81
$lastsep = $1 and "" 0 81 81
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0081
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
5058 {
5059 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
5060 0 $expectation->failed();
5061 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5062 Parse::RecDescent::_tracefirst($text))
5063 if defined $::RD_TRACE;
5064  
5065 0 last;
5066 }
5067 81 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5068 81 substr($text,0,length($current_match),q{});
5069 81 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
5070 . $current_match . q{])},
5071 Parse::RecDescent::_tracefirst($text))
5072 if defined $::RD_TRACE;
5073 81 push @item, $item{__PATTERN2__}=$current_match;
5074
5075  
5076 81 ▶ Parse::RecDescent::_trace(q{Trying subrule: [variable_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
5077 Parse::RecDescent::_tracefirst($text),
5078 q{variable},
5079 $tracelevel)
5080 if defined $::RD_TRACE;
5081 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5082 81 $expectation->is(q{variable_name})->at($text);
5083 81 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::variable_name($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = variable_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 17 64 81
5084 {
5085
5086 17 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [variable_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
5087 Parse::RecDescent::_tracefirst($text),
5088 q{variable},
5089 $tracelevel)
5090 if defined $::RD_TRACE;
5091 17 $expectation->failed();
5092 17 last;
5093 }
5094 64 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [variable_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5095 . $_tok . q{]},
5096  
5097 Parse::RecDescent::_tracefirst($text),
5098 q{variable},
5099 $tracelevel)
5100 if defined $::RD_TRACE;
5101 64 $item{q{variable_name}} = $_tok;
5102 64 push @item, $_tok;
5103
5104 }
5105  
5106 64 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\s*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5107 q{variable},
5108 $tracelevel)
5109 if defined $::RD_TRACE;
5110 64 undef $lastsep;
5111 64 $expectation->is(q{/\\s*/})->at($text);
5112
5113  
5114 64 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/) 0 64 64
$lastsep = $1 and "" 0 64 64
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
!ll&&!rl&&r
0064
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s*)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s*)/
ABresult
0X0
100
111
5115 {
5116 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
5117 0 $expectation->failed();
5118 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5119 Parse::RecDescent::_tracefirst($text))
5120 if defined $::RD_TRACE;
5121  
5122 0 last;
5123 }
5124 64 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5125 64 substr($text,0,length($current_match),q{});
5126 64 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5127 . $current_match . q{])},
5128 Parse::RecDescent::_tracefirst($text))
5129 if defined $::RD_TRACE;
5130 64 push @item, $item{__PATTERN3__}=$current_match;
5131
5132  
5133 64 ▶ Parse::RecDescent::_trace(q{Trying subrule: [closing_tag]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5134 Parse::RecDescent::_tracefirst($text),
5135 q{variable},
5136 $tracelevel)
5137 if defined $::RD_TRACE;
5138 23 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5139 64 $expectation->is(q{closing_tag})->at($text);
5140 64 ▶ unless (defined ($_tok = Parse::RecDescent::Template::Mustache::Parser::closing_tag($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = closing_tag($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 64 64
5141 {
5142
5143 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [closing_tag]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5144 Parse::RecDescent::_tracefirst($text),
5145 q{variable},
5146 $tracelevel)
5147 if defined $::RD_TRACE;
5148 0 $expectation->failed();
5149 0 last;
5150 }
5151 64 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [closing_tag]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5152 . $_tok . q{]},
5153  
5154 Parse::RecDescent::_tracefirst($text),
5155 q{variable},
5156 $tracelevel)
5157 if defined $::RD_TRACE;
5158 64 $item{q{closing_tag}} = $_tok;
5159 64 push @item, $_tok;
5160
5161 }
5162  
5163 64 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5164 Parse::RecDescent::_tracefirst($text),
5165 q{variable},
5166 $tracelevel)
5167 if defined $::RD_TRACE;
5168
5169  
5170 64 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 64 64
5171 64 $thisparser->{prev_is_standalone} = 0;
5172 Template::Mustache::Token::Template->new(
5173 items => [
5174 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
5175 64 Template::Mustache::Token::Variable->new( name => $item{variable_name} ),
5176 ]
5177 );
5178 };
5179 64 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 64 64
5180 {
5181 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5182 if defined $::RD_TRACE;
5183 0 last;
5184 }
5185 64 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5186 . $_tok . q{])},
5187 Parse::RecDescent::_tracefirst($text))
5188 if defined $::RD_TRACE;
5189 64 push @item, $_tok;
5190 64 $item{__ACTION1__}=$_tok;
5191
5192  
5193 64 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\s*/ opening_tag /\\s*/ variable_name /\\s*/ closing_tag]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5194 Parse::RecDescent::_tracefirst($text),
5195 q{variable},
5196 $tracelevel)
5197 if defined $::RD_TRACE;
5198  
5199  
5200  
5201 64 $_matched = 1;
5202 64 last;
5203 }
5204  
5205  
5206 259 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 195 64 259
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
640195
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
5207 {
5208
5209  
5210 195 $_[1] = $text; # NOT SURE THIS IS NEEDED
5211 195 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
5212 Parse::RecDescent::_tracefirst($_[1]),
5213 q{variable},
5214 $tracelevel)
5215 if defined $::RD_TRACE;
5216 195 return undef;
5217 }
5218 64 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 64 64
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0640
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
5219 {
5220 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5221 q{variable},
5222 $tracelevel)
5223 if defined $::RD_TRACE;
5224 0 $return = $score_return;
5225 }
5226 64 splice @{$thisparser->{errors}}, $err_at;
5227 64 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 64 0 64
5228 64 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 64 64
5229 {
5230 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
5231 $return . q{])}, "",
5232 q{variable},
5233 $tracelevel);
5234 0 Parse::RecDescent::_trace(q{(consumed: [} .
5235 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
5236 Parse::RecDescent::_tracefirst($text),
5237 , q{variable},
5238 $tracelevel)
5239 }
5240 64 $_[1] = $text;
5241 64 return $return;
5242 }
5243  
5244 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5245 sub Parse::RecDescent::Template::Mustache::Parser::variable_name
5246 {
5247 81 ▶ my $thisparser = $_[0];
Subroutine variable_name: called CC=24 SCAR=34.1
5248 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5249 81 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
810
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
5250 81 $ERRORS = 0;
5251 81 my $thisrule = $thisparser->{"rules"}{"variable_name"};
5252  
5253 81 ▶ Parse::RecDescent::_trace(q{Trying rule: [variable_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
5254 Parse::RecDescent::_tracefirst($_[1]),
5255 q{variable_name},
5256 $tracelevel)
5257 if defined $::RD_TRACE;
5258  
5259
5260 81 my $err_at = @{$thisparser->{errors}};
5261  
5262 81 my $score;
5263 my $score_return;
5264 81 my $_tok;
5265 81 my $return = undef;
5266 81 my $_matched=0;
5267 81 my $commit=0;
5268 81 my @item = ();
5269 81 my %item = ();
5270 81 my $repeating = $_[2];
5271 81 my $_noactions = $_[3];
5272 81 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 81 0 81
5273 81 my $_itempos = $_[5];
5274 81 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 60 21 81
5275 81 my $text;
5276 my $lastsep;
5277 81 my $current_match;
5278 81 my $expectation = new Parse::RecDescent::Expectation(q{/[-\\w.]+/});
5279 81 $expectation->at($_[1]);
5280
5281 81 my $thisoffset;
5282 81 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
5283
5284 81 my $thisline;
5285 81 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
5286  
5287
5288  
5289 81 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 81 0 81
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0081
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5290 {
5291
5292 81 ▶ Parse::RecDescent::_trace(q{Trying production: [/[-\\w.]+/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
5293 Parse::RecDescent::_tracefirst($_[1]),
5294 q{variable_name},
5295 $tracelevel)
5296 if defined $::RD_TRACE;
5297 81 my $thisprod = $thisrule->{"prods"}[0];
5298 81 $text = $_[1];
5299 81 my $_savetext;
5300 81 @item = (q{variable_name});
5301 81 %item = (__RULE__ => q{variable_name});
5302 81 my $repcount = 0;
5303  
5304  
5305 81 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/[-\\w.]+/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 81 81
5306 q{variable_name},
5307 $tracelevel)
5308 if defined $::RD_TRACE;
5309 81 undef $lastsep;
5310 81 $expectation->is(q{})->at($text);
5311
5312  
5313 81 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[-\w.]+)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[-\w.]+)/) 17 64 81
$lastsep = $1 and "" 0 81 81
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[-\w.]+)/
!ll&&!rl&&r
01764
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[-\w.]+)/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[-\w.]+)/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[-\w.]+)/
ABresult
0X0
100
111
5314 {
5315 17 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 17 0 17
5316 17 $expectation->failed();
5317 17 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
5318 Parse::RecDescent::_tracefirst($text))
5319 if defined $::RD_TRACE;
5320  
5321 17 last;
5322 }
5323 64 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5324 64 substr($text,0,length($current_match),q{});
5325 64 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5326 . $current_match . q{])},
5327 Parse::RecDescent::_tracefirst($text))
5328 if defined $::RD_TRACE;
5329 64 push @item, $item{__PATTERN1__}=$current_match;
5330
5331  
5332 64 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/[-\\w.]+/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5333 Parse::RecDescent::_tracefirst($text),
5334 q{variable_name},
5335 $tracelevel)
5336 if defined $::RD_TRACE;
5337  
5338  
5339  
5340 64 $_matched = 1;
5341 64 last;
5342 }
5343  
5344  
5345 81 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 17 64 81
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
64017
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
5346 {
5347
5348  
5349 17 $_[1] = $text; # NOT SURE THIS IS NEEDED
5350 17 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
5351 Parse::RecDescent::_tracefirst($_[1]),
5352 q{variable_name},
5353 $tracelevel)
5354 if defined $::RD_TRACE;
5355 17 return undef;
5356 }
5357 64 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 64 64
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0640
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
5358 {
5359 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5360 q{variable_name},
5361 $tracelevel)
5362 if defined $::RD_TRACE;
5363 0 $return = $score_return;
5364 }
5365 64 splice @{$thisparser->{errors}}, $err_at;
5366 64 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 64 0 64
5367 64 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 64 64
5368 {
5369 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
5370 $return . q{])}, "",
5371 q{variable_name},
5372 $tracelevel);
5373 0 Parse::RecDescent::_trace(q{(consumed: [} .
5374 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
5375 Parse::RecDescent::_tracefirst($text),
5376 , q{variable_name},
5377 $tracelevel)
5378 }
5379 64 $_[1] = $text;
5380 64 return $return;
5381 }
5382  
5383 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5384 sub Parse::RecDescent::Template::Mustache::Parser::verbatim
5385 {
5386 195 ▶ my $thisparser = $_[0];
Subroutine verbatim: called CC=34 SCAR=44.6
5387 23 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5388 195 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
l!l
1950
MC/DC0%0/1
$Parse::RecDescent::Template::Mustache::Parser::tracelevel || 0
$Parse::RecDescent::Template::Mustache::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Template::Mustache::Parser::tracelevel
Aresult
11
00
5389 195 $ERRORS = 0;
5390 195 my $thisrule = $thisparser->{"rules"}{"verbatim"};
5391  
5392 195 ▶ Parse::RecDescent::_trace(q{Trying rule: [verbatim]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
5393 Parse::RecDescent::_tracefirst($_[1]),
5394 q{verbatim},
5395 $tracelevel)
5396 if defined $::RD_TRACE;
5397  
5398
5399 195 my $err_at = @{$thisparser->{errors}};
5400  
5401 195 my $score;
5402 my $score_return;
5403 195 my $_tok;
5404 195 my $return = undef;
5405 195 my $_matched=0;
5406 195 my $commit=0;
5407 195 my @item = ();
5408 195 my %item = ();
5409 195 my $repeating = $_[2];
5410 195 my $_noactions = $_[3];
5411 195 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 195 0 195
5412 195 my $_itempos = $_[5];
5413 195 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 181 14 195
5414 195 my $text;
5415 my $lastsep;
5416 195 my $current_match;
5417 195 my $expectation = new Parse::RecDescent::Expectation(q{});
5418 195 $expectation->at($_[1]);
5419
5420 195 my $thisoffset;
5421 195 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
5422
5423 195 my $thisline;
5424 195 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
5425  
5426
5427  
5428 195 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 195 0 195
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00195
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5429 {
5430
5431 195 ▶ Parse::RecDescent::_trace(q{Trying production: [/^\\s*\\S*?(?=\\Q$item[1]\\E|\\s|$)/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
5432 Parse::RecDescent::_tracefirst($_[1]),
5433 q{verbatim},
5434 $tracelevel)
5435 if defined $::RD_TRACE;
5436 195 my $thisprod = $thisrule->{"prods"}[0];
5437 195 $text = $_[1];
5438 195 my $_savetext;
5439 195 @item = (q{verbatim});
5440 195 %item = (__RULE__ => q{verbatim});
5441 195 my $repcount = 0;
5442  
5443  
5444 195 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
5445 Parse::RecDescent::_tracefirst($text),
5446 q{verbatim},
5447 $tracelevel)
5448 if defined $::RD_TRACE;
5449
5450  
5451 195 ▶ $_tok = ($_noactions) ? 0 : do { $thisparser->{opening_tag} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 195 195
5452 195 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 195 195
5453 {
5454 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5455 if defined $::RD_TRACE;
5456 0 last;
5457 }
5458 195 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
5459 . $_tok . q{])},
5460 Parse::RecDescent::_tracefirst($text))
5461 if defined $::RD_TRACE;
5462 195 push @item, $_tok;
5463 195 $item{__ACTION1__}=$_tok;
5464
5465  
5466 195 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^\\s*\\S*?(?=\\Q$item[1]\\E|\\s|$)/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
5467 q{verbatim},
5468 $tracelevel)
5469 if defined $::RD_TRACE;
5470 195 undef $lastsep;
5471 195 $expectation->is(q{/^\\s*\\S*?(?=\\Q$item[1]\\E|\\s|$)/})->at($text);
5472
5473  
5474 195 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^\s*\S*?(?=\Q$item[1]\E|\s|$))/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\s*\S*?(?=\Q$item[1]\E|\s|$))/) 0 195 195
$lastsep = $1 and "" 0 195 195
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\s*\S*?(?=\Q$item[1]\E|\s|$))/
!ll&&!rl&&r
00195
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\s*\S*?(?=\Q$item[1]\E|\s|$))/
$text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^\s*\S*?(?=\Q$item[1]\E|\s|$))/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Template::Mustache::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^\s*\S*?(?=\Q$item[1]\E|\s|$))/
ABresult
0X0
100
111
5475 {
5476 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
5477 0 $expectation->failed();
5478 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5479 Parse::RecDescent::_tracefirst($text))
5480 if defined $::RD_TRACE;
5481  
5482 0 last;
5483 }
5484 195 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5485 195 substr($text,0,length($current_match),q{});
5486 195 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
5487 . $current_match . q{])},
5488 Parse::RecDescent::_tracefirst($text))
5489 if defined $::RD_TRACE;
5490 195 push @item, $item{__PATTERN1__}=$current_match;
5491
5492  
5493 195 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
5494 Parse::RecDescent::_tracefirst($text),
5495 q{verbatim},
5496 $tracelevel)
5497 if defined $::RD_TRACE;
5498
5499  
5500 195 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 195 195
5501 195 $thisparser->{prev_is_standalone} = 0;
5502 195 Template::Mustache::Token::Verbatim->new( content => $item[2] );
5503 };
5504 195 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 195 195
5505 {
5506 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5507 if defined $::RD_TRACE;
5508 0 last;
5509 }
5510 195 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
5511 . $_tok . q{])},
5512 Parse::RecDescent::_tracefirst($text))
5513 if defined $::RD_TRACE;
5514 195 push @item, $_tok;
5515 195 $item{__ACTION2__}=$_tok;
5516
5517  
5518 195 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/^\\s*\\S*?(?=\\Q$item[1]\\E|\\s|$)/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 195 195
5519 Parse::RecDescent::_tracefirst($text),
5520 q{verbatim},
5521 $tracelevel)
5522 if defined $::RD_TRACE;
5523  
5524  
5525  
5526 195 $_matched = 1;
5527 195 last;
5528 }
5529  
5530  
5531 195 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 195 195
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
19500
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
5532 {
5533
5534  
5535 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
5536 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5537 Parse::RecDescent::_tracefirst($_[1]),
5538 q{verbatim},
5539 $tracelevel)
5540 if defined $::RD_TRACE;
5541 0 return undef;
5542 }
5543 195 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 195 195
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
01950
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
5544 {
5545 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5546 q{verbatim},
5547 $tracelevel)
5548 if defined $::RD_TRACE;
5549 0 $return = $score_return;
5550 }
5551 195 splice @{$thisparser->{errors}}, $err_at;
5552 195 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 195 0 195
5553 195 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 195 195
5554 {
5555 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
5556 $return . q{])}, "",
5557 q{verbatim},
5558 $tracelevel);
5559 0 Parse::RecDescent::_trace(q{(consumed: [} .
5560 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
5561 Parse::RecDescent::_tracefirst($text),
5562 , q{verbatim},
5563 $tracelevel)
5564 }
5565 195 $_[1] = $text;
5566 195 return $return;
5567 }
5568 }
5569 23 package Template::Mustache::Parser;
5570  
5571 73 ▶ sub new { my $self = bless( {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
5572 '_AUTOACTION' => undef,
5573 '_AUTOTREE' => undef,
5574 '_check' => {
5575 'itempos' => '',
5576 'prevcolumn' => '',
5577 'prevline' => '',
5578 'prevoffset' => '',
5579 'thiscolumn' => '',
5580 'thisoffset' => 1
5581 },
5582 'localvars' => '',
5583 'namespace' => 'Parse::RecDescent::Template::Mustache::Parser',
5584 'rules' => {
5585 '_alternation_1_of_production_1_of_rule_template_item' => bless( {
5586 'calls' => [
5587 'partial',
5588 'section',
5589 'delimiter_change',
5590 'comment',
5591 'unescaped_variable_amp',
5592 'unescaped_variable',
5593 'variable',
5594 'verbatim'
5595 ],
5596 'changed' => 0,
5597 'impcount' => 0,
5598 'line' => 184,
5599 'name' => '_alternation_1_of_production_1_of_rule_template_item',
5600 'opcount' => 0,
5601 'prods' => [
5602 bless( {
5603 'actcount' => 0,
5604 'dircount' => 0,
5605 'error' => undef,
5606 'items' => [
5607 bless( {
5608 'argcode' => undef,
5609 'implicit' => undef,
5610 'line' => 184,
5611 'lookahead' => 0,
5612 'matchrule' => 0,
5613 'subrule' => 'partial'
5614 }, 'Parse::RecDescent::Subrule' )
5615 ],
5616 'line' => undef,
5617 'number' => 0,
5618 'patcount' => 0,
5619 'strcount' => 0,
5620 'uncommit' => undef
5621 }, 'Parse::RecDescent::Production' ),
5622 bless( {
5623 'actcount' => 0,
5624 'dircount' => 0,
5625 'error' => undef,
5626 'items' => [
5627 bless( {
5628 'argcode' => undef,
5629 'implicit' => undef,
5630 'line' => 184,
5631 'lookahead' => 0,
5632 'matchrule' => 0,
5633 'subrule' => 'section'
5634 }, 'Parse::RecDescent::Subrule' )
5635 ],
5636 'line' => 184,
5637 'number' => 1,
5638 'patcount' => 0,
5639 'strcount' => 0,
5640 'uncommit' => undef
5641 }, 'Parse::RecDescent::Production' ),
5642 bless( {
5643 'actcount' => 0,
5644 'dircount' => 0,
5645 'error' => undef,
5646 'items' => [
5647 bless( {
5648 'argcode' => undef,
5649 'implicit' => undef,
5650 'line' => 184,
5651 'lookahead' => 0,
5652 'matchrule' => 0,
5653 'subrule' => 'delimiter_change'
5654 }, 'Parse::RecDescent::Subrule' )
5655 ],
5656 'line' => 184,
5657 'number' => 2,
5658 'patcount' => 0,
5659 'strcount' => 0,
5660 'uncommit' => undef
5661 }, 'Parse::RecDescent::Production' ),
5662 bless( {
5663 'actcount' => 0,
5664 'dircount' => 0,
5665 'error' => undef,
5666 'items' => [
5667 bless( {
5668 'argcode' => undef,
5669 'implicit' => undef,
5670 'line' => 184,
5671 'lookahead' => 0,
5672 'matchrule' => 0,
5673 'subrule' => 'comment'
5674 }, 'Parse::RecDescent::Subrule' )
5675 ],
5676 'line' => 184,
5677 'number' => 3,
5678 'patcount' => 0,
5679 'strcount' => 0,
5680 'uncommit' => undef
5681 }, 'Parse::RecDescent::Production' ),
5682 bless( {
5683 'actcount' => 0,
5684 'dircount' => 0,
5685 'error' => undef,
5686 'items' => [
5687 bless( {
5688 'argcode' => undef,
5689 'implicit' => undef,
5690 'line' => 184,
5691 'lookahead' => 0,
5692 'matchrule' => 0,
5693 'subrule' => 'unescaped_variable_amp'
5694 }, 'Parse::RecDescent::Subrule' )
5695 ],
5696 'line' => 184,
5697 'number' => 4,
5698 'patcount' => 0,
5699 'strcount' => 0,
5700 'uncommit' => undef
5701 }, 'Parse::RecDescent::Production' ),
5702 bless( {
5703 'actcount' => 0,
5704 'dircount' => 0,
5705 'error' => undef,
5706 'items' => [
5707 bless( {
5708 'argcode' => undef,
5709 'implicit' => undef,
5710 'line' => 184,
5711 'lookahead' => 0,
5712 'matchrule' => 0,
5713 'subrule' => 'unescaped_variable'
5714 }, 'Parse::RecDescent::Subrule' )
5715 ],
5716 'line' => 184,
5717 'number' => 5,
5718 'patcount' => 0,
5719 'strcount' => 0,
5720 'uncommit' => undef
5721 }, 'Parse::RecDescent::Production' ),
5722 bless( {
5723 'actcount' => 0,
5724 'dircount' => 0,
5725 'error' => undef,
5726 'items' => [
5727 bless( {
5728 'argcode' => undef,
5729 'implicit' => undef,
5730 'line' => 184,
5731 'lookahead' => 0,
5732 'matchrule' => 0,
5733 'subrule' => 'variable'
5734 }, 'Parse::RecDescent::Subrule' )
5735 ],
5736 'line' => 184,
5737 'number' => 6,
5738 'patcount' => 0,
5739 'strcount' => 0,
5740 'uncommit' => undef
5741 }, 'Parse::RecDescent::Production' ),
5742 bless( {
5743 'actcount' => 0,
5744 'dircount' => 0,
5745 'error' => undef,
5746 'items' => [
5747 bless( {
5748 'argcode' => undef,
5749 'implicit' => undef,
5750 'line' => 184,
5751 'lookahead' => 0,
5752 'matchrule' => 0,
5753 'subrule' => 'verbatim'
5754 }, 'Parse::RecDescent::Subrule' )
5755 ],
5756 'line' => 184,
5757 'number' => 7,
5758 'patcount' => 0,
5759 'strcount' => 0,
5760 'uncommit' => undef
5761 }, 'Parse::RecDescent::Production' ),
5762 bless( {
5763 'actcount' => 0,
5764 'dircount' => 1,
5765 'error' => 1,
5766 'items' => [
5767 bless( {
5768 'commitonly' => '',
5769 'hashname' => '__DIRECTIVE1__',
5770 'line' => 184,
5771 'lookahead' => 0,
5772 'msg' => ''
5773 }, 'Parse::RecDescent::Error' )
5774 ],
5775 'line' => 184,
5776 'number' => 8,
5777 'patcount' => 0,
5778 'strcount' => 0,
5779 'uncommit' => 0
5780 }, 'Parse::RecDescent::Production' )
5781 ],
5782 'vars' => ''
5783 }, 'Parse::RecDescent::Rule' ),
5784 'close_section' => bless( {
5785 'calls' => [
5786 'opening_tag',
5787 'closing_tag'
5788 ],
5789 'changed' => 0,
5790 'impcount' => 0,
5791 'line' => 80,
5792 'name' => 'close_section',
5793 'opcount' => 0,
5794 'prods' => [
5795 bless( {
5796 'actcount' => 1,
5797 'dircount' => 0,
5798 'error' => undef,
5799 'items' => [
5800 bless( {
5801 'description' => '/\\\\s*/',
5802 'hashname' => '__PATTERN1__',
5803 'ldelim' => '/',
5804 'line' => 80,
5805 'lookahead' => 0,
5806 'mod' => '',
5807 'pattern' => '\\s*',
5808 'rdelim' => '/'
5809 }, 'Parse::RecDescent::Token' ),
5810 bless( {
5811 'argcode' => undef,
5812 'implicit' => undef,
5813 'line' => 80,
5814 'lookahead' => 0,
5815 'matchrule' => 0,
5816 'subrule' => 'opening_tag'
5817 }, 'Parse::RecDescent::Subrule' ),
5818 bless( {
5819 'description' => '\'/\'',
5820 'hashname' => '__STRING1__',
5821 'line' => 80,
5822 'lookahead' => 0,
5823 'pattern' => '/'
5824 }, 'Parse::RecDescent::Literal' ),
5825 bless( {
5826 'description' => '/\\\\s*/',
5827 'hashname' => '__PATTERN2__',
5828 'ldelim' => '/',
5829 'line' => 80,
5830 'lookahead' => 0,
5831 'mod' => '',
5832 'pattern' => '\\s*',
5833 'rdelim' => '/'
5834 }, 'Parse::RecDescent::Token' ),
5835 bless( {
5836 'description' => '\'$arg[0]\'',
5837 'hashname' => '__STRING2__',
5838 'line' => 80,
5839 'lookahead' => 0,
5840 'pattern' => '$arg[0]'
5841 }, 'Parse::RecDescent::InterpLit' ),
5842 bless( {
5843 'description' => '/\\\\s*/',
5844 'hashname' => '__PATTERN3__',
5845 'ldelim' => '/',
5846 'line' => 80,
5847 'lookahead' => 0,
5848 'mod' => '',
5849 'pattern' => '\\s*',
5850 'rdelim' => '/'
5851 }, 'Parse::RecDescent::Token' ),
5852 bless( {
5853 'argcode' => undef,
5854 'implicit' => undef,
5855 'line' => 80,
5856 'lookahead' => 0,
5857 'matchrule' => 0,
5858 'subrule' => 'closing_tag'
5859 }, 'Parse::RecDescent::Subrule' ),
5860 bless( {
5861 'description' => '/\\\\s*/',
5862 'hashname' => '__PATTERN4__',
5863 'ldelim' => '/',
5864 'line' => 80,
5865 'lookahead' => 0,
5866 'mod' => '',
5867 'pattern' => '\\s*',
5868 'rdelim' => '/'
5869 }, 'Parse::RecDescent::Token' ),
5870 bless( {
5871 'code' => '{
5872 my $prev = $thisparser->{prev_is_standalone};
5873 $thisparser->{prev_is_standalone} = 0;
5874 if ( $item[1] =~ /\\n/ or $prev) {
5875 if ( $item[8] =~ /\\n/ or length $text == 0 ) {
5876 $item[1] =~ s/(^|\\n)[ \\t]*?$/$1/;
5877 $item[8] =~ s/^.*?\\n//;
5878 $thisparser->{prev_is_standalone} = 1;
5879 }
5880 }
5881 [
5882 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
5883 Template::Mustache::Token::Verbatim->new( content => $item[8] ),
5884 ]
5885 }',
5886 'hashname' => '__ACTION1__',
5887 'line' => 80,
5888 'lookahead' => 0
5889 }, 'Parse::RecDescent::Action' )
5890 ],
5891 'line' => undef,
5892 'number' => 0,
5893 'patcount' => 4,
5894 'strcount' => 2,
5895 'uncommit' => undef
5896 }, 'Parse::RecDescent::Production' )
5897 ],
5898 'vars' => ''
5899 }, 'Parse::RecDescent::Rule' ),
5900 'closing_tag' => bless( {
5901 'calls' => [],
5902 'changed' => 0,
5903 'impcount' => 0,
5904 'line' => 19,
5905 'name' => 'closing_tag',
5906 'opcount' => 0,
5907 'prods' => [
5908 bless( {
5909 'actcount' => 0,
5910 'dircount' => 0,
5911 'error' => undef,
5912 'items' => [
5913 bless( {
5914 'description' => '\'$thisparser->\\{closing_tag\\}\'',
5915 'hashname' => '__STRING1__',
5916 'line' => 19,
5917 'lookahead' => 0,
5918 'pattern' => '$thisparser->{closing_tag}'
5919 }, 'Parse::RecDescent::InterpLit' )
5920 ],
5921 'line' => undef,
5922 'number' => 0,
5923 'patcount' => 0,
5924 'strcount' => 1,
5925 'uncommit' => undef
5926 }, 'Parse::RecDescent::Production' )
5927 ],
5928 'vars' => ''
5929 }, 'Parse::RecDescent::Rule' ),
5930 'comment' => bless( {
5931 'calls' => [
5932 'standalone_surround'
5933 ],
5934 'changed' => 0,
5935 'impcount' => 0,
5936 'line' => 111,
5937 'name' => 'comment',
5938 'opcount' => 0,
5939 'prods' => [
5940 bless( {
5941 'actcount' => 1,
5942 'dircount' => 0,
5943 'error' => undef,
5944 'items' => [
5945 bless( {
5946 'argcode' => '[$item[0]]',
5947 'implicit' => undef,
5948 'line' => 111,
5949 'lookahead' => 0,
5950 'matchrule' => 0,
5951 'subrule' => 'standalone_surround'
5952 }, 'Parse::RecDescent::Subrule' ),
5953 bless( {
5954 'code' => '{
5955 Template::Mustache::Token::Verbatim->new(
5956 content => $item[1][0] . $item[1][1]
5957 ),
5958 }',
5959 'hashname' => '__ACTION1__',
5960 'line' => 111,
5961 'lookahead' => 0
5962 }, 'Parse::RecDescent::Action' )
5963 ],
5964 'line' => undef,
5965 'number' => 0,
5966 'patcount' => 0,
5967 'strcount' => 0,
5968 'uncommit' => undef
5969 }, 'Parse::RecDescent::Production' )
5970 ],
5971 'vars' => ''
5972 }, 'Parse::RecDescent::Rule' ),
5973 'comment_inner' => bless( {
5974 'calls' => [],
5975 'changed' => 0,
5976 'impcount' => 0,
5977 'line' => 117,
5978 'name' => 'comment_inner',
5979 'opcount' => 0,
5980 'prods' => [
5981 bless( {
5982 'actcount' => 1,
5983 'dircount' => 0,
5984 'error' => undef,
5985 'items' => [
5986 bless( {
5987 'description' => '\'!\'',
5988 'hashname' => '__STRING1__',
5989 'line' => 117,
5990 'lookahead' => 0,
5991 'pattern' => '!'
5992 }, 'Parse::RecDescent::Literal' ),
5993 bless( {
5994 'code' => '{ $thisparser->{closing_tag} }',
5995 'hashname' => '__ACTION1__',
5996 'line' => 117,
5997 'lookahead' => 0
5998 }, 'Parse::RecDescent::Action' ),
5999 bless( {
6000 'description' => '/.*?(?=\\\\Q$item[2]\\\\E)/s',
6001 'hashname' => '__PATTERN1__',
6002 'ldelim' => '/',
6003 'line' => 117,
6004 'lookahead' => 0,
6005 'mod' => 's',
6006 'pattern' => '.*?(?=\\Q$item[2]\\E)',
6007 'rdelim' => '/'
6008 }, 'Parse::RecDescent::Token' )
6009 ],
6010 'line' => undef,
6011 'number' => 0,
6012 'patcount' => 1,
6013 'strcount' => 1,
6014 'uncommit' => undef
6015 }, 'Parse::RecDescent::Production' )
6016 ],
6017 'vars' => ''
6018 }, 'Parse::RecDescent::Rule' ),
6019 'delimiter_change' => bless( {
6020 'calls' => [
6021 'standalone_surround'
6022 ],
6023 'changed' => 0,
6024 'impcount' => 0,
6025 'line' => 25,
6026 'name' => 'delimiter_change',
6027 'opcount' => 0,
6028 'prods' => [
6029 bless( {
6030 'actcount' => 1,
6031 'dircount' => 0,
6032 'error' => undef,
6033 'items' => [
6034 bless( {
6035 'argcode' => '[$item[0]]',
6036 'implicit' => undef,
6037 'line' => 25,
6038 'lookahead' => 0,
6039 'matchrule' => 0,
6040 'subrule' => 'standalone_surround'
6041 }, 'Parse::RecDescent::Subrule' ),
6042 bless( {
6043 'code' => '{
6044 die "needs two delimiters\\n" unless @{ $item[1][2] } == 2;
6045 ( $thisparser->{opening_tag},
6046 $thisparser->{closing_tag} ) = @{ $item[1][2] };
6047  
6048 Template::Mustache::Token::Verbatim->new( content =>
6049 $item[1][0] . $item[1][1]
6050 );
6051 }',
6052 'hashname' => '__ACTION1__',
6053 'line' => 25,
6054 'lookahead' => 0
6055 }, 'Parse::RecDescent::Action' )
6056 ],
6057 'line' => undef,
6058 'number' => 0,
6059 'patcount' => 0,
6060 'strcount' => 0,
6061 'uncommit' => undef
6062 }, 'Parse::RecDescent::Production' )
6063 ],
6064 'vars' => ''
6065 }, 'Parse::RecDescent::Rule' ),
6066 'delimiter_change_inner' => bless( {
6067 'calls' => [],
6068 'changed' => 0,
6069 'impcount' => 0,
6070 'line' => 35,
6071 'name' => 'delimiter_change_inner',
6072 'opcount' => 0,
6073 'prods' => [
6074 bless( {
6075 'actcount' => 2,
6076 'dircount' => 0,
6077 'error' => undef,
6078 'items' => [
6079 bless( {
6080 'description' => '\'=\'',
6081 'hashname' => '__STRING1__',
6082 'line' => 35,
6083 'lookahead' => 0,
6084 'pattern' => '='
6085 }, 'Parse::RecDescent::Literal' ),
6086 bless( {
6087 'code' => '{
6088 $thisparser->{closing_tag}
6089 }',
6090 'hashname' => '__ACTION1__',
6091 'line' => 35,
6092 'lookahead' => 0
6093 }, 'Parse::RecDescent::Action' ),
6094 bless( {
6095 'description' => '/\\\\s*/',
6096 'hashname' => '__PATTERN1__',
6097 'ldelim' => '/',
6098 'line' => 37,
6099 'lookahead' => 0,
6100 'mod' => '',
6101 'pattern' => '\\s*',
6102 'rdelim' => '/'
6103 }, 'Parse::RecDescent::Token' ),
6104 bless( {
6105 'description' => '/.*?(?=\\\\=\\\\Q$item[2]\\\\E)/s',
6106 'hashname' => '__PATTERN2__',
6107 'ldelim' => '/',
6108 'line' => 37,
6109 'lookahead' => 0,
6110 'mod' => 's',
6111 'pattern' => '.*?(?=\\=\\Q$item[2]\\E)',
6112 'rdelim' => '/'
6113 }, 'Parse::RecDescent::Token' ),
6114 bless( {
6115 'description' => '\'=\'',
6116 'hashname' => '__STRING2__',
6117 'line' => 37,
6118 'lookahead' => 0,
6119 'pattern' => '='
6120 }, 'Parse::RecDescent::Literal' ),
6121 bless( {
6122 'code' => '{
6123 [ split \' \', $item[4] ]
6124 }',
6125 'hashname' => '__ACTION2__',
6126 'line' => 37,
6127 'lookahead' => 0
6128 }, 'Parse::RecDescent::Action' )
6129 ],
6130 'line' => undef,
6131 'number' => 0,
6132 'patcount' => 2,
6133 'strcount' => 2,
6134 'uncommit' => undef
6135 }, 'Parse::RecDescent::Production' )
6136 ],
6137 'vars' => ''
6138 }, 'Parse::RecDescent::Rule' ),
6139 'eofile' => bless( {
6140 'calls' => [],
6141 'changed' => 0,
6142 'impcount' => 0,
6143 'line' => 4,
6144 'name' => 'eofile',
6145 'opcount' => 0,
6146 'prods' => [
6147 bless( {
6148 'actcount' => 0,
6149 'dircount' => 0,
6150 'error' => undef,
6151 'items' => [
6152 bless( {
6153 'description' => '/^\\\\Z/',
6154 'hashname' => '__PATTERN1__',
6155 'ldelim' => '/',
6156 'line' => 4,
6157 'lookahead' => 0,
6158 'mod' => '',
6159 'pattern' => '^\\Z',
6160 'rdelim' => '/'
6161 }, 'Parse::RecDescent::Token' )
6162 ],
6163 'line' => undef,
6164 'number' => 0,
6165 'patcount' => 1,
6166 'strcount' => 0,
6167 'uncommit' => undef
6168 }, 'Parse::RecDescent::Production' )
6169 ],
6170 'vars' => ''
6171 }, 'Parse::RecDescent::Rule' ),
6172 'inner_section' => bless( {
6173 'calls' => [
6174 'close_section',
6175 'template_item'
6176 ],
6177 'changed' => 0,
6178 'impcount' => 0,
6179 'line' => 119,
6180 'name' => 'inner_section',
6181 'opcount' => 0,
6182 'prods' => [
6183 bless( {
6184 'actcount' => 0,
6185 'dircount' => 0,
6186 'error' => undef,
6187 'items' => [
6188 bless( {
6189 'argcode' => '[ $arg[0] ]',
6190 'implicit' => undef,
6191 'line' => 119,
6192 'lookahead' => -1,
6193 'matchrule' => 0,
6194 'subrule' => 'close_section'
6195 }, 'Parse::RecDescent::Subrule' ),
6196 bless( {
6197 'argcode' => undef,
6198 'implicit' => undef,
6199 'line' => 119,
6200 'lookahead' => 0,
6201 'matchrule' => 0,
6202 'subrule' => 'template_item'
6203 }, 'Parse::RecDescent::Subrule' )
6204 ],
6205 'line' => undef,
6206 'number' => 0,
6207 'patcount' => 0,
6208 'strcount' => 0,
6209 'uncommit' => undef
6210 }, 'Parse::RecDescent::Production' )
6211 ],
6212 'vars' => ''
6213 }, 'Parse::RecDescent::Rule' ),
6214 'open_section' => bless( {
6215 'calls' => [
6216 'opening_tag',
6217 'closing_tag'
6218 ],
6219 'changed' => 0,
6220 'impcount' => 0,
6221 'line' => 63,
6222 'name' => 'open_section',
6223 'opcount' => 0,
6224 'prods' => [
6225 bless( {
6226 'actcount' => 1,
6227 'dircount' => 0,
6228 'error' => undef,
6229 'items' => [
6230 bless( {
6231 'description' => '/\\\\s*/',
6232 'hashname' => '__PATTERN1__',
6233 'ldelim' => '/',
6234 'line' => 63,
6235 'lookahead' => 0,
6236 'mod' => '',
6237 'pattern' => '\\s*',
6238 'rdelim' => '/'
6239 }, 'Parse::RecDescent::Token' ),
6240 bless( {
6241 'argcode' => undef,
6242 'implicit' => undef,
6243 'line' => 63,
6244 'lookahead' => 0,
6245 'matchrule' => 0,
6246 'subrule' => 'opening_tag'
6247 }, 'Parse::RecDescent::Subrule' ),
6248 bless( {
6249 'description' => '/[#^]/',
6250 'hashname' => '__PATTERN2__',
6251 'ldelim' => '/',
6252 'line' => 63,
6253 'lookahead' => 0,
6254 'mod' => '',
6255 'pattern' => '[#^]',
6256 'rdelim' => '/'
6257 }, 'Parse::RecDescent::Token' ),
6258 bless( {
6259 'description' => '/\\\\s*/',
6260 'hashname' => '__PATTERN3__',
6261 'ldelim' => '/',
6262 'line' => 63,
6263 'lookahead' => 0,
6264 'mod' => '',
6265 'pattern' => '\\s*',
6266 'rdelim' => '/'
6267 }, 'Parse::RecDescent::Token' ),
6268 bless( {
6269 'description' => '/[-\\\\w.]+/',
6270 'hashname' => '__PATTERN4__',
6271 'ldelim' => '/',
6272 'line' => 63,
6273 'lookahead' => 0,
6274 'mod' => '',
6275 'pattern' => '[-\\w.]+',
6276 'rdelim' => '/'
6277 }, 'Parse::RecDescent::Token' ),
6278 bless( {
6279 'description' => '/\\\\s*/',
6280 'hashname' => '__PATTERN5__',
6281 'ldelim' => '/',
6282 'line' => 63,
6283 'lookahead' => 0,
6284 'mod' => '',
6285 'pattern' => '\\s*',
6286 'rdelim' => '/'
6287 }, 'Parse::RecDescent::Token' ),
6288 bless( {
6289 'argcode' => undef,
6290 'implicit' => undef,
6291 'line' => 63,
6292 'lookahead' => 0,
6293 'matchrule' => 0,
6294 'subrule' => 'closing_tag'
6295 }, 'Parse::RecDescent::Subrule' ),
6296 bless( {
6297 'description' => '/\\\\s*/',
6298 'hashname' => '__PATTERN6__',
6299 'ldelim' => '/',
6300 'line' => 63,
6301 'lookahead' => 0,
6302 'mod' => '',
6303 'pattern' => '\\s*',
6304 'rdelim' => '/'
6305 }, 'Parse::RecDescent::Token' ),
6306 bless( {
6307 'code' => '{
6308 my $prev = $thisparser->{prev_is_standalone};
6309 $thisparser->{prev_is_standalone} = 0;
6310 if ( $item[1] =~ /\\n/ or $prev ) {
6311 if ( $item[8] =~ /\\n/ ) {
6312 $item[1] =~ s/(^|\\n)[ \\t]*?$/$1/;
6313 $item[8] =~ s/^.*?\\n//;
6314 $thisparser->{prev_is_standalone} = 1;
6315 }
6316 }
6317  
6318 [ $item[5], $item[3] eq \'^\',
6319 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
6320 Template::Mustache::Token::Verbatim->new( content => $item[8] )
6321 ];
6322 }',
6323 'hashname' => '__ACTION1__',
6324 'line' => 63,
6325 'lookahead' => 0
6326 }, 'Parse::RecDescent::Action' )
6327 ],
6328 'line' => undef,
6329 'number' => 0,
6330 'patcount' => 6,
6331 'strcount' => 0,
6332 'uncommit' => undef
6333 }, 'Parse::RecDescent::Production' )
6334 ],
6335 'vars' => ''
6336 }, 'Parse::RecDescent::Rule' ),
6337 'opening_tag' => bless( {
6338 'calls' => [],
6339 'changed' => 0,
6340 'impcount' => 0,
6341 'line' => 17,
6342 'name' => 'opening_tag',
6343 'opcount' => 0,
6344 'prods' => [
6345 bless( {
6346 'actcount' => 0,
6347 'dircount' => 0,
6348 'error' => undef,
6349 'items' => [
6350 bless( {
6351 'description' => '\'$thisparser->\\{opening_tag\\}\'',
6352 'hashname' => '__STRING1__',
6353 'line' => 17,
6354 'lookahead' => 0,
6355 'pattern' => '$thisparser->{opening_tag}'
6356 }, 'Parse::RecDescent::InterpLit' )
6357 ],
6358 'line' => undef,
6359 'number' => 0,
6360 'patcount' => 0,
6361 'strcount' => 1,
6362 'uncommit' => undef
6363 }, 'Parse::RecDescent::Production' )
6364 ],
6365 'vars' => ''
6366 }, 'Parse::RecDescent::Rule' ),
6367 'partial' => bless( {
6368 'calls' => [
6369 'opening_tag',
6370 'closing_tag'
6371 ],
6372 'changed' => 0,
6373 'impcount' => 0,
6374 'line' => 41,
6375 'name' => 'partial',
6376 'opcount' => 0,
6377 'prods' => [
6378 bless( {
6379 'actcount' => 1,
6380 'dircount' => 0,
6381 'error' => undef,
6382 'items' => [
6383 bless( {
6384 'description' => '/\\\\s*/',
6385 'hashname' => '__PATTERN1__',
6386 'ldelim' => '/',
6387 'line' => 41,
6388 'lookahead' => 0,
6389 'mod' => '',
6390 'pattern' => '\\s*',
6391 'rdelim' => '/'
6392 }, 'Parse::RecDescent::Token' ),
6393 bless( {
6394 'argcode' => undef,
6395 'implicit' => undef,
6396 'line' => 41,
6397 'lookahead' => 0,
6398 'matchrule' => 0,
6399 'subrule' => 'opening_tag'
6400 }, 'Parse::RecDescent::Subrule' ),
6401 bless( {
6402 'description' => '\'>\'',
6403 'hashname' => '__STRING1__',
6404 'line' => 41,
6405 'lookahead' => 0,
6406 'pattern' => '>'
6407 }, 'Parse::RecDescent::Literal' ),
6408 bless( {
6409 'description' => '/\\\\s*/',
6410 'hashname' => '__PATTERN2__',
6411 'ldelim' => '/',
6412 'line' => 41,
6413 'lookahead' => 0,
6414 'mod' => '',
6415 'pattern' => '\\s*',
6416 'rdelim' => '/'
6417 }, 'Parse::RecDescent::Token' ),
6418 bless( {
6419 'description' => '/[\\\\/-\\\\w.]+/',
6420 'hashname' => '__PATTERN3__',
6421 'ldelim' => '/',
6422 'line' => 41,
6423 'lookahead' => 0,
6424 'mod' => '',
6425 'pattern' => '[\\/-\\w.]+',
6426 'rdelim' => '/'
6427 }, 'Parse::RecDescent::Token' ),
6428 bless( {
6429 'description' => '/\\\\s*/',
6430 'hashname' => '__PATTERN4__',
6431 'ldelim' => '/',
6432 'line' => 41,
6433 'lookahead' => 0,
6434 'mod' => '',
6435 'pattern' => '\\s*',
6436 'rdelim' => '/'
6437 }, 'Parse::RecDescent::Token' ),
6438 bless( {
6439 'argcode' => undef,
6440 'implicit' => undef,
6441 'line' => 41,
6442 'lookahead' => 0,
6443 'matchrule' => 0,
6444 'subrule' => 'closing_tag'
6445 }, 'Parse::RecDescent::Subrule' ),
6446 bless( {
6447 'description' => '/\\\\s*/',
6448 'hashname' => '__PATTERN5__',
6449 'ldelim' => '/',
6450 'line' => 41,
6451 'lookahead' => 0,
6452 'mod' => '',
6453 'pattern' => '\\s*',
6454 'rdelim' => '/'
6455 }, 'Parse::RecDescent::Token' ),
6456 bless( {
6457 'code' => '{
6458 my $prev = $thisparser->{prev_is_standalone};
6459 $thisparser->{prev_is_standalone} = 0;
6460 my $indent = \'\';
6461 if ( $item[1] =~ /\\n/ or $prev ) {
6462 if ( $item[8] =~ /\\n/ or length $text == 0) {
6463 $item[1] =~ /(^|\\n)([ \\t]*?)$/;
6464 $indent = $2;
6465 $item[8] =~ s/^.*?\\n//;
6466 $thisparser->{prev_is_standalone} = 1;
6467 }
6468 }
6469 Template::Mustache::Token::Template->new(
6470 items => [
6471 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
6472 Template::Mustache::Token::Partial->new( name => $item[5],
6473 indent => $indent ),
6474 Template::Mustache::Token::Verbatim->new( content => $item[8] ),
6475 ],
6476 )
6477 }',
6478 'hashname' => '__ACTION1__',
6479 'line' => 41,
6480 'lookahead' => 0
6481 }, 'Parse::RecDescent::Action' )
6482 ],
6483 'line' => undef,
6484 'number' => 0,
6485 'patcount' => 5,
6486 'strcount' => 1,
6487 'uncommit' => undef
6488 }, 'Parse::RecDescent::Production' )
6489 ],
6490 'vars' => ''
6491 }, 'Parse::RecDescent::Rule' ),
6492 'section' => bless( {
6493 'calls' => [
6494 'open_section',
6495 'inner_section',
6496 'close_section'
6497 ],
6498 'changed' => 0,
6499 'impcount' => 0,
6500 'line' => 121,
6501 'name' => 'section',
6502 'opcount' => 0,
6503 'prods' => [
6504 bless( {
6505 'actcount' => 3,
6506 'dircount' => 0,
6507 'error' => undef,
6508 'items' => [
6509 bless( {
6510 'argcode' => undef,
6511 'implicit' => undef,
6512 'line' => 121,
6513 'lookahead' => 0,
6514 'matchrule' => 0,
6515 'subrule' => 'open_section'
6516 }, 'Parse::RecDescent::Subrule' ),
6517 bless( {
6518 'code' => '{$thisoffset}',
6519 'hashname' => '__ACTION1__',
6520 'line' => 121,
6521 'lookahead' => 0
6522 }, 'Parse::RecDescent::Action' ),
6523 bless( {
6524 'argcode' => '[ $item[1][0] ]',
6525 'expected' => undef,
6526 'line' => 121,
6527 'lookahead' => 0,
6528 'matchrule' => 0,
6529 'max' => 100000000,
6530 'min' => 0,
6531 'repspec' => 's?',
6532 'subrule' => 'inner_section'
6533 }, 'Parse::RecDescent::Repetition' ),
6534 bless( {
6535 'code' => '{$thisoffset
6536 - $item[2]
6537 }',
6538 'hashname' => '__ACTION2__',
6539 'line' => 121,
6540 'lookahead' => 0
6541 }, 'Parse::RecDescent::Action' ),
6542 bless( {
6543 'argcode' => '[ $item[1][0] ]',
6544 'implicit' => undef,
6545 'line' => 123,
6546 'lookahead' => 0,
6547 'matchrule' => 0,
6548 'subrule' => 'close_section'
6549 }, 'Parse::RecDescent::Subrule' ),
6550 bless( {
6551 'code' => '{
6552 my $raw = substr( $thisparser->{fulltext}, $item[2], $item[4] );
6553 Template::Mustache::Token::Template->new( items => [
6554 $item[1]->[2],
6555 Template::Mustache::Token::Section->new(
6556 delimiters => [ map { $thisparser->{$_} } qw/ opening_tag closing_tag / ],
6557 variable => $item[1][0],
6558 inverse => $item[1][1],
6559 raw => $raw,
6560 template => Template::Mustache::Token::Template->new(
6561 items => [
6562 $item[1][3], @{$item[3]}, $item[5][0] ],
6563 )
6564 ),
6565 $item[5][1]
6566 ]
6567 );
6568 }',
6569 'hashname' => '__ACTION3__',
6570 'line' => 123,
6571 'lookahead' => 0
6572 }, 'Parse::RecDescent::Action' )
6573 ],
6574 'line' => undef,
6575 'number' => 0,
6576 'patcount' => 0,
6577 'strcount' => 0,
6578 'uncommit' => undef
6579 }, 'Parse::RecDescent::Production' )
6580 ],
6581 'vars' => ''
6582 }, 'Parse::RecDescent::Rule' ),
6583 'standalone_surround' => bless( {
6584 'calls' => [
6585 'opening_tag',
6586 'closing_tag'
6587 ],
6588 'changed' => 0,
6589 'impcount' => 0,
6590 'line' => 96,
6591 'name' => 'standalone_surround',
6592 'opcount' => 0,
6593 'prods' => [
6594 bless( {
6595 'actcount' => 1,
6596 'dircount' => 0,
6597 'error' => undef,
6598 'items' => [
6599 bless( {
6600 'description' => '/\\\\s*/',
6601 'hashname' => '__PATTERN1__',
6602 'ldelim' => '/',
6603 'line' => 96,
6604 'lookahead' => 0,
6605 'mod' => '',
6606 'pattern' => '\\s*',
6607 'rdelim' => '/'
6608 }, 'Parse::RecDescent::Token' ),
6609 bless( {
6610 'argcode' => undef,
6611 'implicit' => undef,
6612 'line' => 96,
6613 'lookahead' => 0,
6614 'matchrule' => 0,
6615 'subrule' => 'opening_tag'
6616 }, 'Parse::RecDescent::Subrule' ),
6617 bless( {
6618 'description' => '/\\\\s*/',
6619 'hashname' => '__PATTERN2__',
6620 'ldelim' => '/',
6621 'line' => 96,
6622 'lookahead' => 0,
6623 'mod' => '',
6624 'pattern' => '\\s*',
6625 'rdelim' => '/'
6626 }, 'Parse::RecDescent::Token' ),
6627 bless( {
6628 'argcode' => undef,
6629 'implicit' => undef,
6630 'line' => 96,
6631 'lookahead' => 0,
6632 'matchrule' => 1,
6633 'subrule' => '$arg[0]_inner'
6634 }, 'Parse::RecDescent::Subrule' ),
6635 bless( {
6636 'argcode' => undef,
6637 'implicit' => undef,
6638 'line' => 96,
6639 'lookahead' => 0,
6640 'matchrule' => 0,
6641 'subrule' => 'closing_tag'
6642 }, 'Parse::RecDescent::Subrule' ),
6643 bless( {
6644 'description' => '/\\\\s*/',
6645 'hashname' => '__PATTERN3__',
6646 'ldelim' => '/',
6647 'line' => 96,
6648 'lookahead' => 0,
6649 'mod' => '',
6650 'pattern' => '\\s*',
6651 'rdelim' => '/'
6652 }, 'Parse::RecDescent::Token' ),
6653 bless( {
6654 'code' => '{
6655 my $prev = $thisparser->{prev_is_standalone};
6656 $thisparser->{prev_is_standalone} = 0;
6657  
6658 if ( $item[1] =~ /\\n/ or $prev) {
6659 if ( $item[6] =~ /\\n/ or length $text == 0) {
6660 $item[1] =~ s/(\\r?\\n?)\\s*?$/$1/;
6661 $item[6] =~ s/^.*?\\n//;
6662 $thisparser->{prev_is_standalone} = 1;
6663 }
6664 }
6665  
6666 [ @item[1,6,4] ],
6667 }',
6668 'hashname' => '__ACTION1__',
6669 'line' => 96,
6670 'lookahead' => 0
6671 }, 'Parse::RecDescent::Action' )
6672 ],
6673 'line' => undef,
6674 'number' => 0,
6675 'patcount' => 3,
6676 'strcount' => 0,
6677 'uncommit' => undef
6678 }, 'Parse::RecDescent::Production' )
6679 ],
6680 'vars' => ''
6681 }, 'Parse::RecDescent::Rule' ),
6682 'template' => bless( {
6683 'calls' => [
6684 'template_item',
6685 'eofile'
6686 ],
6687 'changed' => 0,
6688 'impcount' => 0,
6689 'line' => 6,
6690 'name' => 'template',
6691 'opcount' => 0,
6692 'prods' => [
6693 bless( {
6694 'actcount' => 2,
6695 'dircount' => 0,
6696 'error' => undef,
6697 'items' => [
6698 bless( {
6699 'code' => '{ my ($otag,$ctag) = @arg ? @arg : ( qw/ {{ }} / );
6700 $thisparser->{opening_tag} = $otag;
6701 $thisparser->{closing_tag} = $ctag;
6702 $thisparser->{prev_is_standalone} = 1;
6703 1;
6704 }',
6705 'hashname' => '__ACTION1__',
6706 'line' => 6,
6707 'lookahead' => 0
6708 }, 'Parse::RecDescent::Action' ),
6709 bless( {
6710 'argcode' => undef,
6711 'expected' => undef,
6712 'line' => 11,
6713 'lookahead' => 0,
6714 'matchrule' => 0,
6715 'max' => 100000000,
6716 'min' => 0,
6717 'repspec' => 's?',
6718 'subrule' => 'template_item'
6719 }, 'Parse::RecDescent::Repetition' ),
6720 bless( {
6721 'argcode' => undef,
6722 'implicit' => undef,
6723 'line' => 11,
6724 'lookahead' => 0,
6725 'matchrule' => 0,
6726 'subrule' => 'eofile'
6727 }, 'Parse::RecDescent::Subrule' ),
6728 bless( {
6729 'code' => '{
6730 Template::Mustache::Token::Template->new(
6731 items => $item[2]
6732 );
6733 }',
6734 'hashname' => '__ACTION2__',
6735 'line' => 11,
6736 'lookahead' => 0
6737 }, 'Parse::RecDescent::Action' )
6738 ],
6739 'line' => undef,
6740 'number' => 0,
6741 'patcount' => 0,
6742 'strcount' => 0,
6743 'uncommit' => undef
6744 }, 'Parse::RecDescent::Production' ),
6745 bless( {
6746 'actcount' => 0,
6747 'dircount' => 1,
6748 'error' => 1,
6749 'items' => [
6750 bless( {
6751 'commitonly' => '',
6752 'hashname' => '__DIRECTIVE1__',
6753 'line' => 15,
6754 'lookahead' => 0,
6755 'msg' => ''
6756 }, 'Parse::RecDescent::Error' )
6757 ],
6758 'line' => 15,
6759 'number' => 1,
6760 'patcount' => 0,
6761 'strcount' => 0,
6762 'uncommit' => 0
6763 }, 'Parse::RecDescent::Production' )
6764 ],
6765 'vars' => ''
6766 }, 'Parse::RecDescent::Rule' ),
6767 'template_item' => bless( {
6768 'calls' => [
6769 '_alternation_1_of_production_1_of_rule_template_item'
6770 ],
6771 'changed' => 0,
6772 'impcount' => 1,
6773 'line' => 21,
6774 'name' => 'template_item',
6775 'opcount' => 0,
6776 'prods' => [
6777 bless( {
6778 'actcount' => 1,
6779 'dircount' => 0,
6780 'error' => undef,
6781 'items' => [
6782 bless( {
6783 'argcode' => undef,
6784 'implicit' => 'partial, or section, or delimiter_change, or comment, or unescaped_variable_amp, or unescaped_variable, or variable, or verbatim',
6785 'line' => 21,
6786 'lookahead' => 0,
6787 'matchrule' => 0,
6788 'subrule' => '_alternation_1_of_production_1_of_rule_template_item'
6789 }, 'Parse::RecDescent::Subrule' ),
6790 bless( {
6791 'code' => '{
6792 $item[1]
6793 }',
6794 'hashname' => '__ACTION1__',
6795 'line' => 21,
6796 'lookahead' => 0
6797 }, 'Parse::RecDescent::Action' )
6798 ],
6799 'line' => undef,
6800 'number' => 0,
6801 'patcount' => 0,
6802 'strcount' => 0,
6803 'uncommit' => undef
6804 }, 'Parse::RecDescent::Production' )
6805 ],
6806 'vars' => ''
6807 }, 'Parse::RecDescent::Rule' ),
6808 'unescaped_variable' => bless( {
6809 'calls' => [
6810 'opening_tag',
6811 'variable_name',
6812 'closing_tag'
6813 ],
6814 'changed' => 0,
6815 'impcount' => 0,
6816 'line' => 142,
6817 'name' => 'unescaped_variable',
6818 'opcount' => 0,
6819 'prods' => [
6820 bless( {
6821 'actcount' => 1,
6822 'dircount' => 0,
6823 'error' => undef,
6824 'items' => [
6825 bless( {
6826 'description' => '/\\\\s*/',
6827 'hashname' => '__PATTERN1__',
6828 'ldelim' => '/',
6829 'line' => 142,
6830 'lookahead' => 0,
6831 'mod' => '',
6832 'pattern' => '\\s*',
6833 'rdelim' => '/'
6834 }, 'Parse::RecDescent::Token' ),
6835 bless( {
6836 'argcode' => undef,
6837 'implicit' => undef,
6838 'line' => 142,
6839 'lookahead' => 0,
6840 'matchrule' => 0,
6841 'subrule' => 'opening_tag'
6842 }, 'Parse::RecDescent::Subrule' ),
6843 bless( {
6844 'description' => '\'\\{\'',
6845 'hashname' => '__STRING1__',
6846 'line' => 142,
6847 'lookahead' => 0,
6848 'pattern' => '{'
6849 }, 'Parse::RecDescent::Literal' ),
6850 bless( {
6851 'description' => '/\\\\s*/',
6852 'hashname' => '__PATTERN2__',
6853 'ldelim' => '/',
6854 'line' => 142,
6855 'lookahead' => 0,
6856 'mod' => '',
6857 'pattern' => '\\s*',
6858 'rdelim' => '/'
6859 }, 'Parse::RecDescent::Token' ),
6860 bless( {
6861 'argcode' => undef,
6862 'implicit' => undef,
6863 'line' => 142,
6864 'lookahead' => 0,
6865 'matchrule' => 0,
6866 'subrule' => 'variable_name'
6867 }, 'Parse::RecDescent::Subrule' ),
6868 bless( {
6869 'description' => '/\\\\s*/',
6870 'hashname' => '__PATTERN3__',
6871 'ldelim' => '/',
6872 'line' => 142,
6873 'lookahead' => 0,
6874 'mod' => '',
6875 'pattern' => '\\s*',
6876 'rdelim' => '/'
6877 }, 'Parse::RecDescent::Token' ),
6878 bless( {
6879 'description' => '\'\\}\'',
6880 'hashname' => '__STRING2__',
6881 'line' => 142,
6882 'lookahead' => 0,
6883 'pattern' => '}'
6884 }, 'Parse::RecDescent::Literal' ),
6885 bless( {
6886 'argcode' => undef,
6887 'implicit' => undef,
6888 'line' => 142,
6889 'lookahead' => 0,
6890 'matchrule' => 0,
6891 'subrule' => 'closing_tag'
6892 }, 'Parse::RecDescent::Subrule' ),
6893 bless( {
6894 'code' => '{
6895 Template::Mustache::Token::Template->new(
6896 items => [
6897 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
6898 Template::Mustache::Token::Variable->new(
6899 name => $item{variable_name},
6900 escape => 0,
6901 ),
6902 ]
6903 );
6904 }',
6905 'hashname' => '__ACTION1__',
6906 'line' => 142,
6907 'lookahead' => 0
6908 }, 'Parse::RecDescent::Action' )
6909 ],
6910 'line' => undef,
6911 'number' => 0,
6912 'patcount' => 3,
6913 'strcount' => 2,
6914 'uncommit' => undef
6915 }, 'Parse::RecDescent::Production' )
6916 ],
6917 'vars' => ''
6918 }, 'Parse::RecDescent::Rule' ),
6919 'unescaped_variable_amp' => bless( {
6920 'calls' => [
6921 'opening_tag',
6922 'variable_name',
6923 'closing_tag'
6924 ],
6925 'changed' => 0,
6926 'impcount' => 0,
6927 'line' => 154,
6928 'name' => 'unescaped_variable_amp',
6929 'opcount' => 0,
6930 'prods' => [
6931 bless( {
6932 'actcount' => 1,
6933 'dircount' => 0,
6934 'error' => undef,
6935 'items' => [
6936 bless( {
6937 'description' => '/\\\\s*/',
6938 'hashname' => '__PATTERN1__',
6939 'ldelim' => '/',
6940 'line' => 154,
6941 'lookahead' => 0,
6942 'mod' => '',
6943 'pattern' => '\\s*',
6944 'rdelim' => '/'
6945 }, 'Parse::RecDescent::Token' ),
6946 bless( {
6947 'argcode' => undef,
6948 'implicit' => undef,
6949 'line' => 154,
6950 'lookahead' => 0,
6951 'matchrule' => 0,
6952 'subrule' => 'opening_tag'
6953 }, 'Parse::RecDescent::Subrule' ),
6954 bless( {
6955 'description' => '\'&\'',
6956 'hashname' => '__STRING1__',
6957 'line' => 154,
6958 'lookahead' => 0,
6959 'pattern' => '&'
6960 }, 'Parse::RecDescent::Literal' ),
6961 bless( {
6962 'description' => '/\\\\s*/',
6963 'hashname' => '__PATTERN2__',
6964 'ldelim' => '/',
6965 'line' => 154,
6966 'lookahead' => 0,
6967 'mod' => '',
6968 'pattern' => '\\s*',
6969 'rdelim' => '/'
6970 }, 'Parse::RecDescent::Token' ),
6971 bless( {
6972 'argcode' => undef,
6973 'implicit' => undef,
6974 'line' => 154,
6975 'lookahead' => 0,
6976 'matchrule' => 0,
6977 'subrule' => 'variable_name'
6978 }, 'Parse::RecDescent::Subrule' ),
6979 bless( {
6980 'description' => '/\\\\s*/',
6981 'hashname' => '__PATTERN3__',
6982 'ldelim' => '/',
6983 'line' => 154,
6984 'lookahead' => 0,
6985 'mod' => '',
6986 'pattern' => '\\s*',
6987 'rdelim' => '/'
6988 }, 'Parse::RecDescent::Token' ),
6989 bless( {
6990 'argcode' => undef,
6991 'implicit' => undef,
6992 'line' => 154,
6993 'lookahead' => 0,
6994 'matchrule' => 0,
6995 'subrule' => 'closing_tag'
6996 }, 'Parse::RecDescent::Subrule' ),
6997 bless( {
6998 'code' => '{
6999 Template::Mustache::Token::Template->new(
7000 items => [
7001 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
7002 Template::Mustache::Token::Variable->new(
7003 name => $item{variable_name},
7004 escape => 0,
7005 ),
7006 ]
7007 );
7008 }',
7009 'hashname' => '__ACTION1__',
7010 'line' => 154,
7011 'lookahead' => 0
7012 }, 'Parse::RecDescent::Action' )
7013 ],
7014 'line' => undef,
7015 'number' => 0,
7016 'patcount' => 3,
7017 'strcount' => 1,
7018 'uncommit' => undef
7019 }, 'Parse::RecDescent::Production' )
7020 ],
7021 'vars' => ''
7022 }, 'Parse::RecDescent::Rule' ),
7023 'variable' => bless( {
7024 'calls' => [
7025 'opening_tag',
7026 'variable_name',
7027 'closing_tag'
7028 ],
7029 'changed' => 0,
7030 'impcount' => 0,
7031 'line' => 167,
7032 'name' => 'variable',
7033 'opcount' => 0,
7034 'prods' => [
7035 bless( {
7036 'actcount' => 1,
7037 'dircount' => 0,
7038 'error' => undef,
7039 'items' => [
7040 bless( {
7041 'description' => '/\\\\s*/',
7042 'hashname' => '__PATTERN1__',
7043 'ldelim' => '/',
7044 'line' => 167,
7045 'lookahead' => 0,
7046 'mod' => '',
7047 'pattern' => '\\s*',
7048 'rdelim' => '/'
7049 }, 'Parse::RecDescent::Token' ),
7050 bless( {
7051 'argcode' => undef,
7052 'implicit' => undef,
7053 'line' => 167,
7054 'lookahead' => 0,
7055 'matchrule' => 0,
7056 'subrule' => 'opening_tag'
7057 }, 'Parse::RecDescent::Subrule' ),
7058 bless( {
7059 'description' => '/\\\\s*/',
7060 'hashname' => '__PATTERN2__',
7061 'ldelim' => '/',
7062 'line' => 167,
7063 'lookahead' => 0,
7064 'mod' => '',
7065 'pattern' => '\\s*',
7066 'rdelim' => '/'
7067 }, 'Parse::RecDescent::Token' ),
7068 bless( {
7069 'argcode' => undef,
7070 'implicit' => undef,
7071 'line' => 167,
7072 'lookahead' => 0,
7073 'matchrule' => 0,
7074 'subrule' => 'variable_name'
7075 }, 'Parse::RecDescent::Subrule' ),
7076 bless( {
7077 'description' => '/\\\\s*/',
7078 'hashname' => '__PATTERN3__',
7079 'ldelim' => '/',
7080 'line' => 167,
7081 'lookahead' => 0,
7082 'mod' => '',
7083 'pattern' => '\\s*',
7084 'rdelim' => '/'
7085 }, 'Parse::RecDescent::Token' ),
7086 bless( {
7087 'argcode' => undef,
7088 'implicit' => undef,
7089 'line' => 167,
7090 'lookahead' => 0,
7091 'matchrule' => 0,
7092 'subrule' => 'closing_tag'
7093 }, 'Parse::RecDescent::Subrule' ),
7094 bless( {
7095 'code' => '{
7096 $thisparser->{prev_is_standalone} = 0;
7097 Template::Mustache::Token::Template->new(
7098 items => [
7099 Template::Mustache::Token::Verbatim->new( content => $item[1] ),
7100 Template::Mustache::Token::Variable->new( name => $item{variable_name} ),
7101 ]
7102 );
7103 }',
7104 'hashname' => '__ACTION1__',
7105 'line' => 167,
7106 'lookahead' => 0
7107 }, 'Parse::RecDescent::Action' )
7108 ],
7109 'line' => undef,
7110 'number' => 0,
7111 'patcount' => 3,
7112 'strcount' => 0,
7113 'uncommit' => undef
7114 }, 'Parse::RecDescent::Production' )
7115 ],
7116 'vars' => ''
7117 }, 'Parse::RecDescent::Rule' ),
7118 'variable_name' => bless( {
7119 'calls' => [],
7120 'changed' => 0,
7121 'impcount' => 0,
7122 'line' => 177,
7123 'name' => 'variable_name',
7124 'opcount' => 0,
7125 'prods' => [
7126 bless( {
7127 'actcount' => 0,
7128 'dircount' => 0,
7129 'error' => undef,
7130 'items' => [
7131 bless( {
7132 'description' => '/[-\\\\w.]+/',
7133 'hashname' => '__PATTERN1__',
7134 'ldelim' => '/',
7135 'line' => 177,
7136 'lookahead' => 0,
7137 'mod' => '',
7138 'pattern' => '[-\\w.]+',
7139 'rdelim' => '/'
7140 }, 'Parse::RecDescent::Token' )
7141 ],
7142 'line' => undef,
7143 'number' => 0,
7144 'patcount' => 1,
7145 'strcount' => 0,
7146 'uncommit' => undef
7147 }, 'Parse::RecDescent::Production' )
7148 ],
7149 'vars' => ''
7150 }, 'Parse::RecDescent::Rule' ),
7151 'verbatim' => bless( {
7152 'calls' => [],
7153 'changed' => 0,
7154 'impcount' => 0,
7155 'line' => 179,
7156 'name' => 'verbatim',
7157 'opcount' => 0,
7158 'prods' => [
7159 bless( {
7160 'actcount' => 2,
7161 'dircount' => 0,
7162 'error' => undef,
7163 'items' => [
7164 bless( {
7165 'code' => '{ $thisparser->{opening_tag} }',
7166 'hashname' => '__ACTION1__',
7167 'line' => 179,
7168 'lookahead' => 0
7169 }, 'Parse::RecDescent::Action' ),
7170 bless( {
7171 'description' => '/^\\\\s*\\\\S*?(?=\\\\Q$item[1]\\\\E|\\\\s|$)/',
7172 'hashname' => '__PATTERN1__',
7173 'ldelim' => '/',
7174 'line' => 179,
7175 'lookahead' => 0,
7176 'mod' => '',
7177 'pattern' => '^\\s*\\S*?(?=\\Q$item[1]\\E|\\s|$)',
7178 'rdelim' => '/'
7179 }, 'Parse::RecDescent::Token' ),
7180 bless( {
7181 'code' => '{
7182 $thisparser->{prev_is_standalone} = 0;
7183 Template::Mustache::Token::Verbatim->new( content => $item[2] );
7184 }',
7185 'hashname' => '__ACTION2__',
7186 'line' => 179,
7187 'lookahead' => 0
7188 }, 'Parse::RecDescent::Action' )
7189 ],
7190 'line' => undef,
7191 'number' => 0,
7192 'patcount' => 1,
7193 'strcount' => 0,
7194 'uncommit' => undef
7195 }, 'Parse::RecDescent::Production' )
7196 ],
7197 'vars' => ''
7198 }, 'Parse::RecDescent::Rule' )
7199 },
7200 'skip' => 'qr//',
7201 'startcode' => ''
7202 }, 'Parse::RecDescent' );
7203 }
7204  
7205 __END__
7206  
7207 =pod
7208  
7209 =encoding UTF-8
7210  
7211 =head1 NAME
7212  
7213 Template::Mustache::Parser
7214  
7215 =head1 VERSION
7216  
7217 version 1.3.3
7218  
7219 =head1 AUTHORS
7220  
7221 =over 4
7222  
7223 =item *
7224  
7225 Pieter van de Bruggen <pvande@cpan.org>
7226  
7227 =item *
7228  
7229 Yanick Champoux <yanick@cpan.org>
7230  
7231 =item *
7232  
7233 Ricardo Signes <rjbs@cpan.org>
7234  
7235 =back
7236  
7237 =head1 COPYRIGHT AND LICENSE
7238  
7239 This software is copyright (c) 2019, 2018, 2017, 2016, 2015, 2011 by Pieter van de Bruggen.
7240  
7241 This is free software; you can redistribute it and/or modify it under
7242 the same terms as the Perl 5 programming language system itself.
7243  
7244 =cut
↑ Summary lib/Template/Mustache.pm »