IMAPClient/BodyStructure/Parse.pm

filter: Statementstmt 86.3% 5833 / 6753 Branchbran 46.6% 1695 / 3632 Conditioncond 45.3% 477 / 1051 MC/DCmcdc 13.8% 88 / 634 Subroutinesub 98.9% 359 / 363 Podpod 0.0% 0 / 1 totaltotal 67.9% 8452 / 12434 CC 2203 SCAR 45.8
CC
2203
Cov
70%
envelopestruct
318.6
nestedmessage
311.3
BARESTRING
274.7
CRAP 97.0
« IMAPClient.pm ↑ Summary IMAPClient/Thread.pm »
1 #
2 # This parser was generated with
3 # Parse::RecDescent version 1.967015
4 #
5  
6 package Mail::IMAPClient::BodyStructure::Parse;
7 1 ▶use Parse::RecDescent;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 { my $ERRORS;
9  
10  
11 package Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse;
12 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use vars qw($skip $AUTOLOAD );
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 @Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::ISA = ();
15 1 $skip = '\\s*';
16  
17  
18 1 my $mibs = "Mail::IMAPClient::BodyStructure";
19 1 my $subpartCount = 0;
20 1 my $partCount = 0;
21  
22 sub take_optional_items($$@)
23 158 ▶ { my ($r, $items) = (shift, shift);
Subroutine take_optional_items: called CC=4 SCAR=14.3
24 158 foreach (@_)
25 820 { my $opt = $_ .'(?)';
26 820 ▶ exists $items->{$opt} or next;
Branch: 1 branch
BranchTrueFalseTotal
exists $items->{$opt} or next 820 0 820
27 $r->{$_} = UNIVERSAL::isa($items->{$opt}, 'ARRAY')
28 820 ▶ ? $items->{$opt}[0] : $items->{$opt};
Branch: 1 branch
BranchTrueFalseTotal
UNIVERSAL::isa($items->{$opt}, 'ARRAY') ? : 820 0 820
29 }
30 }
31  
32 sub merge_hash($$)
33 54 ▶ { my $to = shift;
Subroutine merge_hash: called CC=3 SCAR=11.0
34 54 ▶ my $from = shift or return;
Branch: 1 branch
BranchTrueFalseTotal
my $from = shift() or return 12 42 54
35 12 ▶ while( my($k,$v) = each %$from) { $to->{$k} = $v }
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %$from) 72 12 84
36 }
37 ;
38  
39  
40 {
41 0 ▶local $SIG{__WARN__} = sub {0};
Subroutine __ANON__: not called CC=1 SCAR=0.4
42 # PRETEND TO BE IN Parse::RecDescent NAMESPACE
43 *Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::AUTOLOAD = sub
44 0 ▶{
Subroutine __ANON__: not called CC=1 SCAR=2.2
45 1 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
46  
47 0 ${"AUTOLOAD"} =~ s/^Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse/Parse::RecDescent/;
48 0 goto &{${"AUTOLOAD"}};
49 }
50 1 }
51  
52 1 push @Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::ISA, 'Parse::RecDescent';
53 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
54 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::ADDRESSES
55 144 ▶{
Subroutine ADDRESSES: called CC=63 SCAR=52.1
56 144 my $thisparser = $_[0];
57 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
58 144 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1440
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
59 144 $ERRORS = 0;
60 144 my $thisrule = $thisparser->{"rules"}{"ADDRESSES"};
61  
62 144 ▶ Parse::RecDescent::_trace(q{Trying rule: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 144 144
63 Parse::RecDescent::_tracefirst($_[1]),
64 q{ADDRESSES},
65 $tracelevel)
66 if defined $::RD_TRACE;
67  
68 144 my $def_at = @{$thisparser->{deferred}};
69 144 my $err_at = @{$thisparser->{errors}};
70  
71 144 my $score;
72 my $score_return;
73 144 my $_tok;
74 144 my $return = undef;
75 144 my $_matched=0;
76 144 my $commit=0;
77 144 my @item = ();
78 144 my %item = ();
79 144 my $repeating = $_[2];
80 144 my $_noactions = $_[3];
81 144 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 144 0 144
82 144 my $_itempos = $_[5];
83 144 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 144 0 144
84 144 my $text;
85 my $lastsep;
86 144 my $current_match;
87 144 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or RFCNONCOMPLY, or '('});
88 144 $expectation->at($_[1]);
89
90 144 my $thisline;
91 144 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
92  
93
94  
95 144 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 144 0 144
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00144
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
96 {
97
98 144 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 144 144
99 Parse::RecDescent::_tracefirst($_[1]),
100 q{ADDRESSES},
101 $tracelevel)
102 if defined $::RD_TRACE;
103 144 my $thisprod = $thisrule->{"prods"}[0];
104 144 $text = $_[1];
105 144 my $_savetext;
106 144 @item = (q{ADDRESSES});
107 144 %item = (__RULE__ => q{ADDRESSES});
108 144 my $repcount = 0;
109  
110  
111 144 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 144 144
112 Parse::RecDescent::_tracefirst($text),
113 q{ADDRESSES},
114 $tracelevel)
115 if defined $::RD_TRACE;
116 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
117 144 $expectation->is(q{})->at($text);
118 144 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 98 46 144
119 {
120
121 98 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 98 98
122 Parse::RecDescent::_tracefirst($text),
123 q{ADDRESSES},
124 $tracelevel)
125 if defined $::RD_TRACE;
126 98 $expectation->failed();
127 98 last;
128 }
129 46 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
130 . $_tok . q{]},
131  
132 Parse::RecDescent::_tracefirst($text),
133 q{ADDRESSES},
134 $tracelevel)
135 if defined $::RD_TRACE;
136 46 $item{q{NIL}} = $_tok;
137 46 push @item, $_tok;
138
139 }
140  
141 46 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
142 Parse::RecDescent::_tracefirst($text),
143 q{ADDRESSES},
144 $tracelevel)
145 if defined $::RD_TRACE;
146  
147  
148  
149 46 $_matched = 1;
150 46 last;
151 }
152  
153 splice
154 144 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 98 46 144
155
156 144 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 98 46 144
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
46098
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
157 {
158
159 98 ▶ Parse::RecDescent::_trace(q{Trying production: [RFCNONCOMPLY]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 98 98
160 Parse::RecDescent::_tracefirst($_[1]),
161 q{ADDRESSES},
162 $tracelevel)
163 if defined $::RD_TRACE;
164 98 my $thisprod = $thisrule->{"prods"}[1];
165 98 $text = $_[1];
166 98 my $_savetext;
167 98 @item = (q{ADDRESSES});
168 98 %item = (__RULE__ => q{ADDRESSES});
169 98 my $repcount = 0;
170  
171  
172 98 ▶ Parse::RecDescent::_trace(q{Trying subrule: [RFCNONCOMPLY]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 98 98
173 Parse::RecDescent::_tracefirst($text),
174 q{ADDRESSES},
175 $tracelevel)
176 if defined $::RD_TRACE;
177 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
178 98 $expectation->is(q{})->at($text);
179 98 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::RFCNONCOMPLY($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = RFCNONCOMPLY($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 94 4 98
180 {
181
182 94 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [RFCNONCOMPLY]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
183 Parse::RecDescent::_tracefirst($text),
184 q{ADDRESSES},
185 $tracelevel)
186 if defined $::RD_TRACE;
187 94 $expectation->failed();
188 94 last;
189 }
190 4 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [RFCNONCOMPLY]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
191 . $_tok . q{]},
192  
193 Parse::RecDescent::_tracefirst($text),
194 q{ADDRESSES},
195 $tracelevel)
196 if defined $::RD_TRACE;
197 4 $item{q{RFCNONCOMPLY}} = $_tok;
198 4 push @item, $_tok;
199
200 }
201  
202 4 ▶ Parse::RecDescent::_trace(q{>>Matched production: [RFCNONCOMPLY]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
203 Parse::RecDescent::_tracefirst($text),
204 q{ADDRESSES},
205 $tracelevel)
206 if defined $::RD_TRACE;
207  
208  
209  
210 4 $_matched = 1;
211 4 last;
212 }
213  
214 splice
215 144 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 94 50 144
216
217 144 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 94 50 144
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
50094
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
218 {
219
220 94 ▶ Parse::RecDescent::_trace(q{Trying production: ['(' addressstruct ')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
221 Parse::RecDescent::_tracefirst($_[1]),
222 q{ADDRESSES},
223 $tracelevel)
224 if defined $::RD_TRACE;
225 94 my $thisprod = $thisrule->{"prods"}[2];
226 94 $text = $_[1];
227 94 my $_savetext;
228 94 @item = (q{ADDRESSES});
229 94 %item = (__RULE__ => q{ADDRESSES});
230 94 my $repcount = 0;
231  
232  
233 94 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['(']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
234 Parse::RecDescent::_tracefirst($text),
235 q{ADDRESSES},
236 $tracelevel)
237 if defined $::RD_TRACE;
238 94 undef $lastsep;
239 94 $expectation->is(q{})->at($text);
240
241  
242 94 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "("; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 94 94
Condition36%4/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
0094
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0094
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 }
!ll&&!rl&&r
0094
($lastsep = $1) && ''
!ll
094
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = "("; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table20%1/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = "("; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
243 substr($text,0,length($_tok)) eq $_tok and
244 94 do { substr($text,0,length($_tok)) = ""; 1; }
245 )
246 {
247 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
248
249 0 $expectation->failed();
250 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
251 Parse::RecDescent::_tracefirst($text))
252 if defined $::RD_TRACE;
253 0 last;
254 }
255 94 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
256 . $_tok . q{])},
257 Parse::RecDescent::_tracefirst($text))
258 if defined $::RD_TRACE;
259 94 push @item, $item{__STRING1__}=$_tok;
260
261  
262 94 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [addressstruct]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
263 Parse::RecDescent::_tracefirst($text),
264 q{ADDRESSES},
265 $tracelevel)
266 if defined $::RD_TRACE;
267 94 $expectation->is(q{addressstruct})->at($text);
268
269 94 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::addressstruct, 1, 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::Mail::IMAPClient::BodyStructure::Parse::addressstruct, 1, 100000000, $_noactions, $expectation, sub { \@arg; } , undef))) 0 94 94
270 {
271 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [addressstruct]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
272 Parse::RecDescent::_tracefirst($text),
273 q{ADDRESSES},
274 $tracelevel)
275 if defined $::RD_TRACE;
276 0 last;
277 }
278 94 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [addressstruct]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
279 . @$_tok . q{ times)},
280  
281 Parse::RecDescent::_tracefirst($text),
282 q{ADDRESSES},
283 $tracelevel)
284 if defined $::RD_TRACE;
285 94 $item{q{addressstruct(s)}} = $_tok;
286 94 push @item, $_tok;
287
288  
289  
290 94 ▶ Parse::RecDescent::_trace(q{Trying terminal: [')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
291 Parse::RecDescent::_tracefirst($text),
292 q{ADDRESSES},
293 $tracelevel)
294 if defined $::RD_TRACE;
295 94 undef $lastsep;
296 94 $expectation->is(q{')'})->at($text);
297
298  
299 94 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = ")"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 94 94
Condition36%4/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
0094
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0094
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 }
!ll&&!rl&&r
0094
($lastsep = $1) && ''
!ll
940
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = ")"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table20%1/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = ")"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
300 substr($text,0,length($_tok)) eq $_tok and
301 94 do { substr($text,0,length($_tok)) = ""; 1; }
302 )
303 {
304 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
305
306 0 $expectation->failed();
307 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
308 Parse::RecDescent::_tracefirst($text))
309 if defined $::RD_TRACE;
310 0 last;
311 }
312 94 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
313 . $_tok . q{])},
314 Parse::RecDescent::_tracefirst($text))
315 if defined $::RD_TRACE;
316 94 push @item, $item{__STRING2__}=$_tok;
317
318  
319 94 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
320 Parse::RecDescent::_tracefirst($text),
321 q{ADDRESSES},
322 $tracelevel)
323 if defined $::RD_TRACE;
324
325  
326 94 ▶ $_tok = ($_noactions) ? 0 : do { $return = $item{'addressstruct(s)'} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 94 94
327 94 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 94 94
328 {
329 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
330 if defined $::RD_TRACE;
331 0 last;
332 }
333 94 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
334 . $_tok . q{])},
335 Parse::RecDescent::_tracefirst($text))
336 if defined $::RD_TRACE;
337 94 push @item, $_tok;
338 94 $item{__ACTION1__}=$_tok;
339
340  
341 94 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['(' addressstruct ')']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
342 Parse::RecDescent::_tracefirst($text),
343 q{ADDRESSES},
344 $tracelevel)
345 if defined $::RD_TRACE;
346  
347  
348  
349 94 $_matched = 1;
350 94 last;
351 }
352  
353 splice
354 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 144 144
355
356 144 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 144 144
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
14400
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
357 {
358 0 splice @{$thisparser->{deferred}}, $def_at;
359
360  
361 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
362 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
363 Parse::RecDescent::_tracefirst($_[1]),
364 q{ADDRESSES},
365 $tracelevel)
366 if defined $::RD_TRACE;
367 0 return undef;
368 }
369 144 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 144 144
Condition66%2/3
not defined $return and defined $score
!ll&&!rl&&r
94500
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table66%2/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
370 {
371 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
372 q{ADDRESSES},
373 $tracelevel)
374 if defined $::RD_TRACE;
375 0 $return = $score_return;
376 }
377 144 splice @{$thisparser->{errors}}, $err_at;
378 144 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 50 94 144
379 144 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 144 144
380 {
381 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
382 $return . q{])}, "",
383 q{ADDRESSES},
384 $tracelevel);
385 0 Parse::RecDescent::_trace(q{(consumed: [} .
386 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
387 Parse::RecDescent::_tracefirst($text),
388 , q{ADDRESSES},
389 $tracelevel)
390 }
391 144 $_[1] = $text;
392 144 return $return;
393 }
394  
395 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
396 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::BARESTRING
397 183 ▶{
Subroutine BARESTRING: called CC=36 SCAR=56.2
398 183 my $thisparser = $_[0];
399 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
400 183 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1830
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
401 183 $ERRORS = 0;
402 183 my $thisrule = $thisparser->{"rules"}{"BARESTRING"};
403  
404 183 ▶ Parse::RecDescent::_trace(q{Trying rule: [BARESTRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
405 Parse::RecDescent::_tracefirst($_[1]),
406 q{BARESTRING},
407 $tracelevel)
408 if defined $::RD_TRACE;
409  
410 183 my $def_at = @{$thisparser->{deferred}};
411 183 my $err_at = @{$thisparser->{errors}};
412  
413 183 my $score;
414 my $score_return;
415 183 my $_tok;
416 183 my $return = undef;
417 183 my $_matched=0;
418 183 my $commit=0;
419 183 my @item = ();
420 183 my %item = ();
421 183 my $repeating = $_[2];
422 183 my $_noactions = $_[3];
423 183 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 183 0 183
424 183 my $_itempos = $_[5];
425 183 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 183 0 183
426 183 my $text;
427 my $lastsep;
428 183 my $current_match;
429 183 my $expectation = new Parse::RecDescent::Expectation(q{/^[)('"]/});
430 183 $expectation->at($_[1]);
431
432 183 my $thisline;
433 183 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
434  
435
436  
437 183 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 183 0 183
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00183
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
438 {
439
440 183 ▶ Parse::RecDescent::_trace(q{Trying production: [/^[)('"]/ /^(?!\\(|\\))(?:\\\\ |\\S)+/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
441 Parse::RecDescent::_tracefirst($_[1]),
442 q{BARESTRING},
443 $tracelevel)
444 if defined $::RD_TRACE;
445 183 my $thisprod = $thisrule->{"prods"}[0];
446 183 $text = $_[1];
447 183 my $_savetext;
448 183 @item = (q{BARESTRING});
449 183 %item = (__RULE__ => q{BARESTRING});
450 183 my $repcount = 0;
451  
452  
453 183 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^[)('"]/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
454 q{BARESTRING},
455 $tracelevel)
456 if defined $::RD_TRACE;
457 183 undef $lastsep;
458 183 $expectation->is(q{})->at($text);
459 183 $_savetext = $text;
460  
461 183 ▶ if ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^[)('"])/)
Branch: 1 branch
BranchTrueFalseTotal
if ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^[)('"])/) 183 0 183
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^[)('"])/
!ll&&!rl&&r
00183
($lastsep = $1) && ''
!ll
16617
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^[)('"])/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^[)('"])/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^[)('"])/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
462 {
463 183 $text = $_savetext;
464 183 $expectation->failed();
465 183 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
466 Parse::RecDescent::_tracefirst($text))
467 if defined $::RD_TRACE;
468  
469 183 last;
470 }
471 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
472 0 substr($text,0,length($current_match),q{});
473 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
474 . $current_match . q{])},
475 Parse::RecDescent::_tracefirst($text))
476 if defined $::RD_TRACE;
477 0 push @item, $item{__PATTERN1__}=$current_match;
478 0 $text = $_savetext;
479  
480 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^(?!\\(|\\))(?:\\\\ |\\S)+/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
481 q{BARESTRING},
482 $tracelevel)
483 if defined $::RD_TRACE;
484 0 undef $lastsep;
485 0 $expectation->is(q{/^(?!\\(|\\))(?:\\\\ |\\S)+/})->at($text);
486
487  
488 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^(?!\(|\))(?:\\ |\S)+)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^(?!\(|\))(?:\\ |\S)+)/) 0 0 0
Condition0%0/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^(?!\(|\))(?:\\ |\S)+)/
!ll&&!rl&&r
000
($lastsep = $1) && ''
!ll
00
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^(?!\(|\))(?:\\ |\S)+)/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^(?!\(|\))(?:\\ |\S)+)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^(?!\(|\))(?:\\ |\S)+)/
ABresult
0X0
100
111
Truth table0%0/2
A
A= ($lastsep = $1)
Aresult
00
11
489 {
490 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
491 0 $expectation->failed();
492 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
493 Parse::RecDescent::_tracefirst($text))
494 if defined $::RD_TRACE;
495  
496 0 last;
497 }
498 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
499 0 substr($text,0,length($current_match),q{});
500 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
501 . $current_match . q{])},
502 Parse::RecDescent::_tracefirst($text))
503 if defined $::RD_TRACE;
504 0 push @item, $item{__PATTERN2__}=$current_match;
505
506  
507 0 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
508 Parse::RecDescent::_tracefirst($text),
509 q{BARESTRING},
510 $tracelevel)
511 if defined $::RD_TRACE;
512
513  
514 0 ▶ $_tok = ($_noactions) ? 0 : do { $return = $item{__PATTERN1__} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
515 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
516 {
517 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
518 if defined $::RD_TRACE;
519 0 last;
520 }
521 0 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
522 . $_tok . q{])},
523 Parse::RecDescent::_tracefirst($text))
524 if defined $::RD_TRACE;
525 0 push @item, $_tok;
526 0 $item{__ACTION1__}=$_tok;
527
528  
529 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/^[)('"]/ /^(?!\\(|\\))(?:\\\\ |\\S)+/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
530 Parse::RecDescent::_tracefirst($text),
531 q{BARESTRING},
532 $tracelevel)
533 if defined $::RD_TRACE;
534  
535  
536  
537 0 $_matched = 1;
538 0 last;
539 }
540  
541 splice
542 183 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 183 0 183
543
544 183 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 183 0 183
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
00183
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
545 {
546 183 splice @{$thisparser->{deferred}}, $def_at;
547
548  
549 183 $_[1] = $text; # NOT SURE THIS IS NEEDED
550 183 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
551 Parse::RecDescent::_tracefirst($_[1]),
552 q{BARESTRING},
553 $tracelevel)
554 if defined $::RD_TRACE;
555 183 return undef;
556 }
557 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
558 {
559 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
560 q{BARESTRING},
561 $tracelevel)
562 if defined $::RD_TRACE;
563 0 $return = $score_return;
564 }
565 0 splice @{$thisparser->{errors}}, $err_at;
566 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
567 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
568 {
569 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
570 $return . q{])}, "",
571 q{BARESTRING},
572 $tracelevel);
573 0 Parse::RecDescent::_trace(q{(consumed: [} .
574 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
575 Parse::RecDescent::_tracefirst($text),
576 , q{BARESTRING},
577 $tracelevel)
578 }
579 0 $_[1] = $text;
580 0 return $return;
581 }
582  
583 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
584 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::DOUBLE_QUOTED_STRING
585 905 ▶{
Subroutine DOUBLE_QUOTED_STRING: called CC=44 SCAR=46.3
586 905 my $thisparser = $_[0];
587 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
588 905 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
9050
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
589 905 $ERRORS = 0;
590 905 my $thisrule = $thisparser->{"rules"}{"DOUBLE_QUOTED_STRING"};
591  
592 905 ▶ Parse::RecDescent::_trace(q{Trying rule: [DOUBLE_QUOTED_STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 905 905
593 Parse::RecDescent::_tracefirst($_[1]),
594 q{DOUBLE_QUOTED_STRING},
595 $tracelevel)
596 if defined $::RD_TRACE;
597  
598 905 my $def_at = @{$thisparser->{deferred}};
599 905 my $err_at = @{$thisparser->{errors}};
600  
601 905 my $score;
602 my $score_return;
603 905 my $_tok;
604 905 my $return = undef;
605 905 my $_matched=0;
606 905 my $commit=0;
607 905 my @item = ();
608 905 my %item = ();
609 905 my $repeating = $_[2];
610 905 my $_noactions = $_[3];
611 905 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 905 0 905
612 905 my $_itempos = $_[5];
613 905 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 905 0 905
614 905 my $text;
615 my $lastsep;
616 905 my $current_match;
617 905 my $expectation = new Parse::RecDescent::Expectation(q{'"'});
618 905 $expectation->at($_[1]);
619
620 905 my $thisline;
621 905 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
622  
623
624  
625 905 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 905 0 905
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00905
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
626 {
627
628 905 ▶ Parse::RecDescent::_trace(q{Trying production: ['"' /(?:\\\\["\\\\]|[^"])*/ '"']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 905 905
629 Parse::RecDescent::_tracefirst($_[1]),
630 q{DOUBLE_QUOTED_STRING},
631 $tracelevel)
632 if defined $::RD_TRACE;
633 905 my $thisprod = $thisrule->{"prods"}[0];
634 905 $text = $_[1];
635 905 my $_savetext;
636 905 @item = (q{DOUBLE_QUOTED_STRING});
637 905 %item = (__RULE__ => q{DOUBLE_QUOTED_STRING});
638 905 my $repcount = 0;
639  
640  
641 905 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['"']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 905 905
642 Parse::RecDescent::_tracefirst($text),
643 q{DOUBLE_QUOTED_STRING},
644 $tracelevel)
645 if defined $::RD_TRACE;
646 905 undef $lastsep;
647 905 $expectation->is(q{})->at($text);
648
649  
650 905 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\"/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/) 184 721 905
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/
!ll&&!rl&&r
0184721
($lastsep = $1) && ''
!ll
397508
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A\"/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\"/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
651 {
652 184 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 184 0 184
653
654 184 $expectation->failed();
655 184 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 184 184
656 Parse::RecDescent::_tracefirst($text))
657 if defined $::RD_TRACE;
658 184 last;
659 }
660 721 $current_match = substr($text, $-[0], $+[0] - $-[0]);
661 721 substr($text,0,length($current_match),q{});
662 721 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 721 721
663 . $current_match . q{])},
664 Parse::RecDescent::_tracefirst($text))
665 if defined $::RD_TRACE;
666 721 push @item, $item{__STRING1__}=$current_match;
667
668  
669 721 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/(?:\\\\["\\\\]|[^"])*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 721 721
670 q{DOUBLE_QUOTED_STRING},
671 $tracelevel)
672 if defined $::RD_TRACE;
673 721 undef $lastsep;
674 721 $expectation->is(q{/(?:\\\\["\\\\]|[^"])*/})->at($text);
675
676  
677 721 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?:\\["\\]|[^"])*)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\\["\\]|[^"])*)/) 0 721 721
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\\["\\]|[^"])*)/
!ll&&!rl&&r
00721
($lastsep = $1) && ''
!ll
7210
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\\["\\]|[^"])*)/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:(?:\\["\\]|[^"])*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:(?:\\["\\]|[^"])*)/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
678 {
679 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
680 0 $expectation->failed();
681 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
682 Parse::RecDescent::_tracefirst($text))
683 if defined $::RD_TRACE;
684  
685 0 last;
686 }
687 721 $current_match = substr($text, $-[0], $+[0] - $-[0]);
688 721 substr($text,0,length($current_match),q{});
689 721 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 721 721
690 . $current_match . q{])},
691 Parse::RecDescent::_tracefirst($text))
692 if defined $::RD_TRACE;
693 721 push @item, $item{__PATTERN1__}=$current_match;
694
695  
696 721 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['"']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 721 721
697 Parse::RecDescent::_tracefirst($text),
698 q{DOUBLE_QUOTED_STRING},
699 $tracelevel)
700 if defined $::RD_TRACE;
701 721 undef $lastsep;
702 721 $expectation->is(q{'"'})->at($text);
703
704  
705 721 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\"/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/) 0 721 721
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/
!ll&&!rl&&r
00721
($lastsep = $1) && ''
!ll
7210
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A\"/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\"/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
706 {
707 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
708
709 0 $expectation->failed();
710 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
711 Parse::RecDescent::_tracefirst($text))
712 if defined $::RD_TRACE;
713 0 last;
714 }
715 721 $current_match = substr($text, $-[0], $+[0] - $-[0]);
716 721 substr($text,0,length($current_match),q{});
717 721 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 721 721
718 . $current_match . q{])},
719 Parse::RecDescent::_tracefirst($text))
720 if defined $::RD_TRACE;
721 721 push @item, $item{__STRING2__}=$current_match;
722
723  
724 721 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 721 721
725 Parse::RecDescent::_tracefirst($text),
726 q{DOUBLE_QUOTED_STRING},
727 $tracelevel)
728 if defined $::RD_TRACE;
729
730  
731 721 ▶ $_tok = ($_noactions) ? 0 : do { $return = $item{__PATTERN1__} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 721 721
732 721 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 721 721
733 {
734 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
735 if defined $::RD_TRACE;
736 0 last;
737 }
738 721 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 721 721
739 . $_tok . q{])},
740 Parse::RecDescent::_tracefirst($text))
741 if defined $::RD_TRACE;
742 721 push @item, $_tok;
743 721 $item{__ACTION1__}=$_tok;
744
745  
746 721 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['"' /(?:\\\\["\\\\]|[^"])*/ '"']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 721 721
747 Parse::RecDescent::_tracefirst($text),
748 q{DOUBLE_QUOTED_STRING},
749 $tracelevel)
750 if defined $::RD_TRACE;
751  
752  
753  
754 721 $_matched = 1;
755 721 last;
756 }
757  
758 splice
759 905 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 184 721 905
760
761 905 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 184 721 905
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
7210184
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
762 {
763 184 splice @{$thisparser->{deferred}}, $def_at;
764
765  
766 184 $_[1] = $text; # NOT SURE THIS IS NEEDED
767 184 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 184 184
768 Parse::RecDescent::_tracefirst($_[1]),
769 q{DOUBLE_QUOTED_STRING},
770 $tracelevel)
771 if defined $::RD_TRACE;
772 184 return undef;
773 }
774 721 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 721 721
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
72100
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
775 {
776 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
777 q{DOUBLE_QUOTED_STRING},
778 $tracelevel)
779 if defined $::RD_TRACE;
780 0 $return = $score_return;
781 }
782 721 splice @{$thisparser->{errors}}, $err_at;
783 721 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 721 721
784 721 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 721 721
785 {
786 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
787 $return . q{])}, "",
788 q{DOUBLE_QUOTED_STRING},
789 $tracelevel);
790 0 Parse::RecDescent::_trace(q{(consumed: [} .
791 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
792 Parse::RecDescent::_tracefirst($text),
793 , q{DOUBLE_QUOTED_STRING},
794 $tracelevel)
795 }
796 721 $_[1] = $text;
797 721 return $return;
798 }
799  
800 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
801 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::HTML
802 53 ▶{
Subroutine HTML: called CC=30 SCAR=37.7
803 53 my $thisparser = $_[0];
804 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
805 53 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
530
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
806 53 $ERRORS = 0;
807 53 my $thisrule = $thisparser->{"rules"}{"HTML"};
808  
809 53 ▶ Parse::RecDescent::_trace(q{Trying rule: [HTML]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
810 Parse::RecDescent::_tracefirst($_[1]),
811 q{HTML},
812 $tracelevel)
813 if defined $::RD_TRACE;
814  
815 53 my $def_at = @{$thisparser->{deferred}};
816 53 my $err_at = @{$thisparser->{errors}};
817  
818 53 my $score;
819 my $score_return;
820 53 my $_tok;
821 53 my $return = undef;
822 53 my $_matched=0;
823 53 my $commit=0;
824 53 my @item = ();
825 53 my %item = ();
826 53 my $repeating = $_[2];
827 53 my $_noactions = $_[3];
828 53 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 53 0 53
829 53 my $_itempos = $_[5];
830 53 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 53 0 53
831 53 my $text;
832 my $lastsep;
833 53 my $current_match;
834 53 my $expectation = new Parse::RecDescent::Expectation(q{/"HTML"|HTML/i});
835 53 $expectation->at($_[1]);
836
837 53 my $thisline;
838 53 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
839  
840
841  
842 53 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 53 0 53
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0053
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
843 {
844
845 53 ▶ Parse::RecDescent::_trace(q{Trying production: [/"HTML"|HTML/i]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
846 Parse::RecDescent::_tracefirst($_[1]),
847 q{HTML},
848 $tracelevel)
849 if defined $::RD_TRACE;
850 53 my $thisprod = $thisrule->{"prods"}[0];
851 53 $text = $_[1];
852 53 my $_savetext;
853 53 @item = (q{HTML});
854 53 %item = (__RULE__ => q{HTML});
855 53 my $repcount = 0;
856  
857  
858 53 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/"HTML"|HTML/i]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
859 q{HTML},
860 $tracelevel)
861 if defined $::RD_TRACE;
862 53 undef $lastsep;
863 53 $expectation->is(q{})->at($text);
864
865  
866 53 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:"HTML"|HTML)/i)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:"HTML"|HTML)/i) 44 9 53
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:"HTML"|HTML)/i
!ll&&!rl&&r
0449
($lastsep = $1) && ''
!ll
053
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:"HTML"|HTML)/i
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:"HTML"|HTML)/i
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:"HTML"|HTML)/i
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
867 {
868 44 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 44 0 44
869 44 $expectation->failed();
870 44 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
871 Parse::RecDescent::_tracefirst($text))
872 if defined $::RD_TRACE;
873  
874 44 last;
875 }
876 9 $current_match = substr($text, $-[0], $+[0] - $-[0]);
877 9 substr($text,0,length($current_match),q{});
878 9 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
879 . $current_match . q{])},
880 Parse::RecDescent::_tracefirst($text))
881 if defined $::RD_TRACE;
882 9 push @item, $item{__PATTERN1__}=$current_match;
883
884  
885 9 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
886 Parse::RecDescent::_tracefirst($text),
887 q{HTML},
888 $tracelevel)
889 if defined $::RD_TRACE;
890
891  
892 9 ▶ $_tok = ($_noactions) ? 0 : do { $return = "HTML" };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 9 9
893 9 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 9 9
894 {
895 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
896 if defined $::RD_TRACE;
897 0 last;
898 }
899 9 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
900 . $_tok . q{])},
901 Parse::RecDescent::_tracefirst($text))
902 if defined $::RD_TRACE;
903 9 push @item, $_tok;
904 9 $item{__ACTION1__}=$_tok;
905
906  
907 9 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/"HTML"|HTML/i]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
908 Parse::RecDescent::_tracefirst($text),
909 q{HTML},
910 $tracelevel)
911 if defined $::RD_TRACE;
912  
913  
914  
915 9 $_matched = 1;
916 9 last;
917 }
918  
919 splice
920 53 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 44 9 53
921
922 53 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 44 9 53
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
9044
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
923 {
924 44 splice @{$thisparser->{deferred}}, $def_at;
925
926  
927 44 $_[1] = $text; # NOT SURE THIS IS NEEDED
928 44 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
929 Parse::RecDescent::_tracefirst($_[1]),
930 q{HTML},
931 $tracelevel)
932 if defined $::RD_TRACE;
933 44 return undef;
934 }
935 9 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 9 9
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
900
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
936 {
937 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
938 q{HTML},
939 $tracelevel)
940 if defined $::RD_TRACE;
941 0 $return = $score_return;
942 }
943 9 splice @{$thisparser->{errors}}, $err_at;
944 9 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 9 9
945 9 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 9 9
946 {
947 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
948 $return . q{])}, "",
949 q{HTML},
950 $tracelevel);
951 0 Parse::RecDescent::_trace(q{(consumed: [} .
952 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
953 Parse::RecDescent::_tracefirst($text),
954 , q{HTML},
955 $tracelevel)
956 }
957 9 $_[1] = $text;
958 9 return $return;
959 }
960  
961 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
962 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::KVPAIRS
963 136 ▶{
Subroutine KVPAIRS: called CC=45 SCAR=46.1
964 136 my $thisparser = $_[0];
965 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
966 136 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1360
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
967 136 $ERRORS = 0;
968 136 my $thisrule = $thisparser->{"rules"}{"KVPAIRS"};
969  
970 136 ▶ Parse::RecDescent::_trace(q{Trying rule: [KVPAIRS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 136 136
971 Parse::RecDescent::_tracefirst($_[1]),
972 q{KVPAIRS},
973 $tracelevel)
974 if defined $::RD_TRACE;
975  
976 136 my $def_at = @{$thisparser->{deferred}};
977 136 my $err_at = @{$thisparser->{errors}};
978  
979 136 my $score;
980 my $score_return;
981 136 my $_tok;
982 136 my $return = undef;
983 136 my $_matched=0;
984 136 my $commit=0;
985 136 my @item = ();
986 136 my %item = ();
987 136 my $repeating = $_[2];
988 136 my $_noactions = $_[3];
989 136 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 136 0 136
990 136 my $_itempos = $_[5];
991 136 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 136 0 136
992 136 my $text;
993 my $lastsep;
994 136 my $current_match;
995 136 my $expectation = new Parse::RecDescent::Expectation(q{'('});
996 136 $expectation->at($_[1]);
997
998 136 my $thisline;
999 136 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1000  
1001
1002  
1003 136 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 136 0 136
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00136
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1004 {
1005
1006 136 ▶ Parse::RecDescent::_trace(q{Trying production: ['(' kvpair ')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 136 136
1007 Parse::RecDescent::_tracefirst($_[1]),
1008 q{KVPAIRS},
1009 $tracelevel)
1010 if defined $::RD_TRACE;
1011 136 my $thisprod = $thisrule->{"prods"}[0];
1012 136 $text = $_[1];
1013 136 my $_savetext;
1014 136 @item = (q{KVPAIRS});
1015 136 %item = (__RULE__ => q{KVPAIRS});
1016 136 my $repcount = 0;
1017  
1018  
1019 136 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['(']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 136 136
1020 Parse::RecDescent::_tracefirst($text),
1021 q{KVPAIRS},
1022 $tracelevel)
1023 if defined $::RD_TRACE;
1024 136 undef $lastsep;
1025 136 $expectation->is(q{})->at($text);
1026
1027  
1028 136 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "("; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 13 123 136
Condition63%7/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
130123
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
013123
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 }
!ll&&!rl&&r
00136
($lastsep = $1) && ''
!ll
13123
MC/DC25%1/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = "("; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table40%2/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = "("; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
1029 substr($text,0,length($_tok)) eq $_tok and
1030 123 do { substr($text,0,length($_tok)) = ""; 1; }
1031 )
1032 {
1033 13 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 13 0 13
1034
1035 13 $expectation->failed();
1036 13 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 13 13
1037 Parse::RecDescent::_tracefirst($text))
1038 if defined $::RD_TRACE;
1039 13 last;
1040 }
1041 123 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 123 123
1042 . $_tok . q{])},
1043 Parse::RecDescent::_tracefirst($text))
1044 if defined $::RD_TRACE;
1045 123 push @item, $item{__STRING1__}=$_tok;
1046
1047  
1048 123 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [kvpair]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 123 123
1049 Parse::RecDescent::_tracefirst($text),
1050 q{KVPAIRS},
1051 $tracelevel)
1052 if defined $::RD_TRACE;
1053 123 $expectation->is(q{kvpair})->at($text);
1054
1055 123 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::kvpair, 1, 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::Mail::IMAPClient::BodyStructure::Parse::kvpair, 1, 100000000, $_noactions, $expectation, sub { \@arg; } , undef))) 0 123 123
1056 {
1057 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [kvpair]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1058 Parse::RecDescent::_tracefirst($text),
1059 q{KVPAIRS},
1060 $tracelevel)
1061 if defined $::RD_TRACE;
1062 0 last;
1063 }
1064 123 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [kvpair]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 123 123
1065 . @$_tok . q{ times)},
1066  
1067 Parse::RecDescent::_tracefirst($text),
1068 q{KVPAIRS},
1069 $tracelevel)
1070 if defined $::RD_TRACE;
1071 123 $item{q{kvpair(s)}} = $_tok;
1072 123 push @item, $_tok;
1073
1074  
1075  
1076 123 ▶ Parse::RecDescent::_trace(q{Trying terminal: [')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 123 123
1077 Parse::RecDescent::_tracefirst($text),
1078 q{KVPAIRS},
1079 $tracelevel)
1080 if defined $::RD_TRACE;
1081 123 undef $lastsep;
1082 123 $expectation->is(q{')'})->at($text);
1083
1084  
1085 123 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = ")"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 123 123
Condition36%4/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
00123
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
00123
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 }
!ll&&!rl&&r
00123
($lastsep = $1) && ''
!ll
1230
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = ")"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table20%1/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = ")"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
1086 substr($text,0,length($_tok)) eq $_tok and
1087 123 do { substr($text,0,length($_tok)) = ""; 1; }
1088 )
1089 {
1090 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
1091
1092 0 $expectation->failed();
1093 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1094 Parse::RecDescent::_tracefirst($text))
1095 if defined $::RD_TRACE;
1096 0 last;
1097 }
1098 123 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 123 123
1099 . $_tok . q{])},
1100 Parse::RecDescent::_tracefirst($text))
1101 if defined $::RD_TRACE;
1102 123 push @item, $item{__STRING2__}=$_tok;
1103
1104  
1105 123 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 123 123
1106 Parse::RecDescent::_tracefirst($text),
1107 q{KVPAIRS},
1108 $tracelevel)
1109 if defined $::RD_TRACE;
1110
1111  
1112 123 ▶ $_tok = ($_noactions) ? 0 : do { $return = { map { (%$_) } @{$item{'kvpair(s)'}} } };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 123 123
1113 123 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 123 123
1114 {
1115 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1116 if defined $::RD_TRACE;
1117 0 last;
1118 }
1119 123 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 123 123
1120 . $_tok . q{])},
1121 Parse::RecDescent::_tracefirst($text))
1122 if defined $::RD_TRACE;
1123 123 push @item, $_tok;
1124 123 $item{__ACTION1__}=$_tok;
1125
1126  
1127 123 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['(' kvpair ')']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 123 123
1128 Parse::RecDescent::_tracefirst($text),
1129 q{KVPAIRS},
1130 $tracelevel)
1131 if defined $::RD_TRACE;
1132  
1133  
1134  
1135 123 $_matched = 1;
1136 123 last;
1137 }
1138  
1139 splice
1140 136 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 13 123 136
1141
1142 136 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 13 123 136
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
123013
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
1143 {
1144 13 splice @{$thisparser->{deferred}}, $def_at;
1145
1146  
1147 13 $_[1] = $text; # NOT SURE THIS IS NEEDED
1148 13 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 13 13
1149 Parse::RecDescent::_tracefirst($_[1]),
1150 q{KVPAIRS},
1151 $tracelevel)
1152 if defined $::RD_TRACE;
1153 13 return undef;
1154 }
1155 123 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 123 123
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
12300
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
1156 {
1157 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1158 q{KVPAIRS},
1159 $tracelevel)
1160 if defined $::RD_TRACE;
1161 0 $return = $score_return;
1162 }
1163 123 splice @{$thisparser->{errors}}, $err_at;
1164 123 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 123 123
1165 123 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 123 123
1166 {
1167 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1168 $return . q{])}, "",
1169 q{KVPAIRS},
1170 $tracelevel);
1171 0 Parse::RecDescent::_trace(q{(consumed: [} .
1172 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1173 Parse::RecDescent::_tracefirst($text),
1174 , q{KVPAIRS},
1175 $tracelevel)
1176 }
1177 123 $_[1] = $text;
1178 123 return $return;
1179 }
1180  
1181 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1182 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::MESSAGE
1183 53 ▶{
Subroutine MESSAGE: called CC=30 SCAR=37.7
1184 53 my $thisparser = $_[0];
1185 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1186 53 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
530
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
1187 53 $ERRORS = 0;
1188 53 my $thisrule = $thisparser->{"rules"}{"MESSAGE"};
1189  
1190 53 ▶ Parse::RecDescent::_trace(q{Trying rule: [MESSAGE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
1191 Parse::RecDescent::_tracefirst($_[1]),
1192 q{MESSAGE},
1193 $tracelevel)
1194 if defined $::RD_TRACE;
1195  
1196 53 my $def_at = @{$thisparser->{deferred}};
1197 53 my $err_at = @{$thisparser->{errors}};
1198  
1199 53 my $score;
1200 my $score_return;
1201 53 my $_tok;
1202 53 my $return = undef;
1203 53 my $_matched=0;
1204 53 my $commit=0;
1205 53 my @item = ();
1206 53 my %item = ();
1207 53 my $repeating = $_[2];
1208 53 my $_noactions = $_[3];
1209 53 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 53 0 53
1210 53 my $_itempos = $_[5];
1211 53 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 53 0 53
1212 53 my $text;
1213 my $lastsep;
1214 53 my $current_match;
1215 53 my $expectation = new Parse::RecDescent::Expectation(q{/^"MESSAGE"|^MESSAGE/i});
1216 53 $expectation->at($_[1]);
1217
1218 53 my $thisline;
1219 53 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1220  
1221
1222  
1223 53 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 53 0 53
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0053
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1224 {
1225
1226 53 ▶ Parse::RecDescent::_trace(q{Trying production: [/^"MESSAGE"|^MESSAGE/i]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
1227 Parse::RecDescent::_tracefirst($_[1]),
1228 q{MESSAGE},
1229 $tracelevel)
1230 if defined $::RD_TRACE;
1231 53 my $thisprod = $thisrule->{"prods"}[0];
1232 53 $text = $_[1];
1233 53 my $_savetext;
1234 53 @item = (q{MESSAGE});
1235 53 %item = (__RULE__ => q{MESSAGE});
1236 53 my $repcount = 0;
1237  
1238  
1239 53 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^"MESSAGE"|^MESSAGE/i]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
1240 q{MESSAGE},
1241 $tracelevel)
1242 if defined $::RD_TRACE;
1243 53 undef $lastsep;
1244 53 $expectation->is(q{})->at($text);
1245
1246  
1247 53 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^"MESSAGE"|^MESSAGE)/i)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"MESSAGE"|^MESSAGE)/i) 31 22 53
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"MESSAGE"|^MESSAGE)/i
!ll&&!rl&&r
03122
($lastsep = $1) && ''
!ll
530
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"MESSAGE"|^MESSAGE)/i
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^"MESSAGE"|^MESSAGE)/i
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^"MESSAGE"|^MESSAGE)/i
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
1248 {
1249 31 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 31 0 31
1250 31 $expectation->failed();
1251 31 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
1252 Parse::RecDescent::_tracefirst($text))
1253 if defined $::RD_TRACE;
1254  
1255 31 last;
1256 }
1257 22 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1258 22 substr($text,0,length($current_match),q{});
1259 22 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
1260 . $current_match . q{])},
1261 Parse::RecDescent::_tracefirst($text))
1262 if defined $::RD_TRACE;
1263 22 push @item, $item{__PATTERN1__}=$current_match;
1264
1265  
1266 22 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
1267 Parse::RecDescent::_tracefirst($text),
1268 q{MESSAGE},
1269 $tracelevel)
1270 if defined $::RD_TRACE;
1271
1272  
1273 22 ▶ $_tok = ($_noactions) ? 0 : do { $return = "MESSAGE"};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 22 22
1274 22 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 22 22
1275 {
1276 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1277 if defined $::RD_TRACE;
1278 0 last;
1279 }
1280 22 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
1281 . $_tok . q{])},
1282 Parse::RecDescent::_tracefirst($text))
1283 if defined $::RD_TRACE;
1284 22 push @item, $_tok;
1285 22 $item{__ACTION1__}=$_tok;
1286
1287  
1288 22 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/^"MESSAGE"|^MESSAGE/i]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
1289 Parse::RecDescent::_tracefirst($text),
1290 q{MESSAGE},
1291 $tracelevel)
1292 if defined $::RD_TRACE;
1293  
1294  
1295  
1296 22 $_matched = 1;
1297 22 last;
1298 }
1299  
1300 splice
1301 53 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 31 22 53
1302
1303 53 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 31 22 53
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
22031
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
1304 {
1305 31 splice @{$thisparser->{deferred}}, $def_at;
1306
1307  
1308 31 $_[1] = $text; # NOT SURE THIS IS NEEDED
1309 31 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
1310 Parse::RecDescent::_tracefirst($_[1]),
1311 q{MESSAGE},
1312 $tracelevel)
1313 if defined $::RD_TRACE;
1314 31 return undef;
1315 }
1316 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
2200
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
1317 {
1318 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1319 q{MESSAGE},
1320 $tracelevel)
1321 if defined $::RD_TRACE;
1322 0 $return = $score_return;
1323 }
1324 22 splice @{$thisparser->{errors}}, $err_at;
1325 22 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 22 22
1326 22 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 22 22
1327 {
1328 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1329 $return . q{])}, "",
1330 q{MESSAGE},
1331 $tracelevel);
1332 0 Parse::RecDescent::_trace(q{(consumed: [} .
1333 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1334 Parse::RecDescent::_tracefirst($text),
1335 , q{MESSAGE},
1336 $tracelevel)
1337 }
1338 22 $_[1] = $text;
1339 22 return $return;
1340 }
1341  
1342 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1343 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL
1344 1752 ▶{
Subroutine NIL: called CC=30 SCAR=37.5
1345 1752 my $thisparser = $_[0];
1346 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1347 1752 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
17520
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
1348 1752 $ERRORS = 0;
1349 1752 my $thisrule = $thisparser->{"rules"}{"NIL"};
1350  
1351 1752 ▶ Parse::RecDescent::_trace(q{Trying rule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1752 1752
1352 Parse::RecDescent::_tracefirst($_[1]),
1353 q{NIL},
1354 $tracelevel)
1355 if defined $::RD_TRACE;
1356  
1357 1752 my $def_at = @{$thisparser->{deferred}};
1358 1752 my $err_at = @{$thisparser->{errors}};
1359  
1360 1752 my $score;
1361 my $score_return;
1362 1752 my $_tok;
1363 1752 my $return = undef;
1364 1752 my $_matched=0;
1365 1752 my $commit=0;
1366 1752 my @item = ();
1367 1752 my %item = ();
1368 1752 my $repeating = $_[2];
1369 1752 my $_noactions = $_[3];
1370 1752 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 1752 0 1752
1371 1752 my $_itempos = $_[5];
1372 1752 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 1752 0 1752
1373 1752 my $text;
1374 my $lastsep;
1375 1752 my $current_match;
1376 1752 my $expectation = new Parse::RecDescent::Expectation(q{/^NIL/i});
1377 1752 $expectation->at($_[1]);
1378
1379 1752 my $thisline;
1380 1752 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1381  
1382
1383  
1384 1752 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 1752 0 1752
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
001752
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1385 {
1386
1387 1752 ▶ Parse::RecDescent::_trace(q{Trying production: [/^NIL/i]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1752 1752
1388 Parse::RecDescent::_tracefirst($_[1]),
1389 q{NIL},
1390 $tracelevel)
1391 if defined $::RD_TRACE;
1392 1752 my $thisprod = $thisrule->{"prods"}[0];
1393 1752 $text = $_[1];
1394 1752 my $_savetext;
1395 1752 @item = (q{NIL});
1396 1752 %item = (__RULE__ => q{NIL});
1397 1752 my $repcount = 0;
1398  
1399  
1400 1752 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^NIL/i]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1752 1752
1401 q{NIL},
1402 $tracelevel)
1403 if defined $::RD_TRACE;
1404 1752 undef $lastsep;
1405 1752 $expectation->is(q{})->at($text);
1406
1407  
1408 1752 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^NIL)/i)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^NIL)/i) 1093 659 1752
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^NIL)/i
!ll&&!rl&&r
01093659
($lastsep = $1) && ''
!ll
2791473
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^NIL)/i
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^NIL)/i
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^NIL)/i
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
1409 {
1410 1093 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 1093 0 1093
1411 1093 $expectation->failed();
1412 1093 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1093 1093
1413 Parse::RecDescent::_tracefirst($text))
1414 if defined $::RD_TRACE;
1415  
1416 1093 last;
1417 }
1418 659 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1419 659 substr($text,0,length($current_match),q{});
1420 659 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 659 659
1421 . $current_match . q{])},
1422 Parse::RecDescent::_tracefirst($text))
1423 if defined $::RD_TRACE;
1424 659 push @item, $item{__PATTERN1__}=$current_match;
1425
1426  
1427 659 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 659 659
1428 Parse::RecDescent::_tracefirst($text),
1429 q{NIL},
1430 $tracelevel)
1431 if defined $::RD_TRACE;
1432
1433  
1434 659 ▶ $_tok = ($_noactions) ? 0 : do { $return = "NIL" };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 659 659
1435 659 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 659 659
1436 {
1437 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1438 if defined $::RD_TRACE;
1439 0 last;
1440 }
1441 659 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 659 659
1442 . $_tok . q{])},
1443 Parse::RecDescent::_tracefirst($text))
1444 if defined $::RD_TRACE;
1445 659 push @item, $_tok;
1446 659 $item{__ACTION1__}=$_tok;
1447
1448  
1449 659 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/^NIL/i]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 659 659
1450 Parse::RecDescent::_tracefirst($text),
1451 q{NIL},
1452 $tracelevel)
1453 if defined $::RD_TRACE;
1454  
1455  
1456  
1457 659 $_matched = 1;
1458 659 last;
1459 }
1460  
1461 splice
1462 1752 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 1093 659 1752
1463
1464 1752 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 1093 659 1752
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
65901093
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
1465 {
1466 1093 splice @{$thisparser->{deferred}}, $def_at;
1467
1468  
1469 1093 $_[1] = $text; # NOT SURE THIS IS NEEDED
1470 1093 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1093 1093
1471 Parse::RecDescent::_tracefirst($_[1]),
1472 q{NIL},
1473 $tracelevel)
1474 if defined $::RD_TRACE;
1475 1093 return undef;
1476 }
1477 659 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 659 659
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
65900
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
1478 {
1479 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1480 q{NIL},
1481 $tracelevel)
1482 if defined $::RD_TRACE;
1483 0 $return = $score_return;
1484 }
1485 659 splice @{$thisparser->{errors}}, $err_at;
1486 659 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 659 659
1487 659 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 659 659
1488 {
1489 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1490 $return . q{])}, "",
1491 q{NIL},
1492 $tracelevel);
1493 0 Parse::RecDescent::_trace(q{(consumed: [} .
1494 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1495 Parse::RecDescent::_tracefirst($text),
1496 , q{NIL},
1497 $tracelevel)
1498 }
1499 659 $_[1] = $text;
1500 659 return $return;
1501 }
1502  
1503 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1504 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NUMBER
1505 256 ▶{
Subroutine NUMBER: called CC=30 SCAR=37.5
1506 256 my $thisparser = $_[0];
1507 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1508 256 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
2560
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
1509 256 $ERRORS = 0;
1510 256 my $thisrule = $thisparser->{"rules"}{"NUMBER"};
1511  
1512 256 ▶ Parse::RecDescent::_trace(q{Trying rule: [NUMBER]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 256 256
1513 Parse::RecDescent::_tracefirst($_[1]),
1514 q{NUMBER},
1515 $tracelevel)
1516 if defined $::RD_TRACE;
1517  
1518 256 my $def_at = @{$thisparser->{deferred}};
1519 256 my $err_at = @{$thisparser->{errors}};
1520  
1521 256 my $score;
1522 my $score_return;
1523 256 my $_tok;
1524 256 my $return = undef;
1525 256 my $_matched=0;
1526 256 my $commit=0;
1527 256 my @item = ();
1528 256 my %item = ();
1529 256 my $repeating = $_[2];
1530 256 my $_noactions = $_[3];
1531 256 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 256 0 256
1532 256 my $_itempos = $_[5];
1533 256 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 256 0 256
1534 256 my $text;
1535 my $lastsep;
1536 256 my $current_match;
1537 256 my $expectation = new Parse::RecDescent::Expectation(q{/^(\\d+)/});
1538 256 $expectation->at($_[1]);
1539
1540 256 my $thisline;
1541 256 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1542  
1543
1544  
1545 256 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 256 0 256
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00256
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1546 {
1547
1548 256 ▶ Parse::RecDescent::_trace(q{Trying production: [/^(\\d+)/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 256 256
1549 Parse::RecDescent::_tracefirst($_[1]),
1550 q{NUMBER},
1551 $tracelevel)
1552 if defined $::RD_TRACE;
1553 256 my $thisprod = $thisrule->{"prods"}[0];
1554 256 $text = $_[1];
1555 256 my $_savetext;
1556 256 @item = (q{NUMBER});
1557 256 %item = (__RULE__ => q{NUMBER});
1558 256 my $repcount = 0;
1559  
1560  
1561 256 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^(\\d+)/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 256 256
1562 q{NUMBER},
1563 $tracelevel)
1564 if defined $::RD_TRACE;
1565 256 undef $lastsep;
1566 256 $expectation->is(q{})->at($text);
1567
1568  
1569 256 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^(\d+))/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^(\d+))/) 122 134 256
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^(\d+))/
!ll&&!rl&&r
0122134
($lastsep = $1) && ''
!ll
3253
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^(\d+))/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^(\d+))/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^(\d+))/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
1570 {
1571 122 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 122 0 122
1572 122 $expectation->failed();
1573 122 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 122 122
1574 Parse::RecDescent::_tracefirst($text))
1575 if defined $::RD_TRACE;
1576  
1577 122 last;
1578 }
1579 134 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1580 134 substr($text,0,length($current_match),q{});
1581 134 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 134 134
1582 . $current_match . q{])},
1583 Parse::RecDescent::_tracefirst($text))
1584 if defined $::RD_TRACE;
1585 134 push @item, $item{__PATTERN1__}=$current_match;
1586
1587  
1588 134 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 134 134
1589 Parse::RecDescent::_tracefirst($text),
1590 q{NUMBER},
1591 $tracelevel)
1592 if defined $::RD_TRACE;
1593
1594  
1595 134 ▶ $_tok = ($_noactions) ? 0 : do { $return = $item[1] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 134 134
1596 134 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 134 134
1597 {
1598 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1599 if defined $::RD_TRACE;
1600 0 last;
1601 }
1602 134 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 134 134
1603 . $_tok . q{])},
1604 Parse::RecDescent::_tracefirst($text))
1605 if defined $::RD_TRACE;
1606 134 push @item, $_tok;
1607 134 $item{__ACTION1__}=$_tok;
1608
1609  
1610 134 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/^(\\d+)/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 134 134
1611 Parse::RecDescent::_tracefirst($text),
1612 q{NUMBER},
1613 $tracelevel)
1614 if defined $::RD_TRACE;
1615  
1616  
1617  
1618 134 $_matched = 1;
1619 134 last;
1620 }
1621  
1622 splice
1623 256 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 122 134 256
1624
1625 256 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 122 134 256
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
1340122
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
1626 {
1627 122 splice @{$thisparser->{deferred}}, $def_at;
1628
1629  
1630 122 $_[1] = $text; # NOT SURE THIS IS NEEDED
1631 122 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 122 122
1632 Parse::RecDescent::_tracefirst($_[1]),
1633 q{NUMBER},
1634 $tracelevel)
1635 if defined $::RD_TRACE;
1636 122 return undef;
1637 }
1638 134 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 134 134
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
13400
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
1639 {
1640 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1641 q{NUMBER},
1642 $tracelevel)
1643 if defined $::RD_TRACE;
1644 0 $return = $score_return;
1645 }
1646 134 splice @{$thisparser->{errors}}, $err_at;
1647 134 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 134 134
1648 134 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 134 134
1649 {
1650 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1651 $return . q{])}, "",
1652 q{NUMBER},
1653 $tracelevel);
1654 0 Parse::RecDescent::_trace(q{(consumed: [} .
1655 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1656 Parse::RecDescent::_tracefirst($text),
1657 , q{NUMBER},
1658 $tracelevel)
1659 }
1660 134 $_[1] = $text;
1661 134 return $return;
1662 }
1663  
1664 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1665 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::PLAIN
1666 84 ▶{
Subroutine PLAIN: called CC=30 SCAR=37.7
1667 84 my $thisparser = $_[0];
1668 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1669 84 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
840
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
1670 84 $ERRORS = 0;
1671 84 my $thisrule = $thisparser->{"rules"}{"PLAIN"};
1672  
1673 84 ▶ Parse::RecDescent::_trace(q{Trying rule: [PLAIN]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
1674 Parse::RecDescent::_tracefirst($_[1]),
1675 q{PLAIN},
1676 $tracelevel)
1677 if defined $::RD_TRACE;
1678  
1679 84 my $def_at = @{$thisparser->{deferred}};
1680 84 my $err_at = @{$thisparser->{errors}};
1681  
1682 84 my $score;
1683 my $score_return;
1684 84 my $_tok;
1685 84 my $return = undef;
1686 84 my $_matched=0;
1687 84 my $commit=0;
1688 84 my @item = ();
1689 84 my %item = ();
1690 84 my $repeating = $_[2];
1691 84 my $_noactions = $_[3];
1692 84 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 84 0 84
1693 84 my $_itempos = $_[5];
1694 84 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 84 0 84
1695 84 my $text;
1696 my $lastsep;
1697 84 my $current_match;
1698 84 my $expectation = new Parse::RecDescent::Expectation(q{/^"PLAIN"|^PLAIN/i});
1699 84 $expectation->at($_[1]);
1700
1701 84 my $thisline;
1702 84 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1703  
1704
1705  
1706 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
1707 {
1708
1709 84 ▶ Parse::RecDescent::_trace(q{Trying production: [/^"PLAIN"|^PLAIN/i]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
1710 Parse::RecDescent::_tracefirst($_[1]),
1711 q{PLAIN},
1712 $tracelevel)
1713 if defined $::RD_TRACE;
1714 84 my $thisprod = $thisrule->{"prods"}[0];
1715 84 $text = $_[1];
1716 84 my $_savetext;
1717 84 @item = (q{PLAIN});
1718 84 %item = (__RULE__ => q{PLAIN});
1719 84 my $repcount = 0;
1720  
1721  
1722 84 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^"PLAIN"|^PLAIN/i]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
1723 q{PLAIN},
1724 $tracelevel)
1725 if defined $::RD_TRACE;
1726 84 undef $lastsep;
1727 84 $expectation->is(q{})->at($text);
1728
1729  
1730 84 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^"PLAIN"|^PLAIN)/i)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"PLAIN"|^PLAIN)/i) 53 31 84
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"PLAIN"|^PLAIN)/i
!ll&&!rl&&r
05331
($lastsep = $1) && ''
!ll
084
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"PLAIN"|^PLAIN)/i
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^"PLAIN"|^PLAIN)/i
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^"PLAIN"|^PLAIN)/i
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
1731 {
1732 53 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 53 0 53
1733 53 $expectation->failed();
1734 53 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
1735 Parse::RecDescent::_tracefirst($text))
1736 if defined $::RD_TRACE;
1737  
1738 53 last;
1739 }
1740 31 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1741 31 substr($text,0,length($current_match),q{});
1742 31 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
1743 . $current_match . q{])},
1744 Parse::RecDescent::_tracefirst($text))
1745 if defined $::RD_TRACE;
1746 31 push @item, $item{__PATTERN1__}=$current_match;
1747
1748  
1749 31 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
1750 Parse::RecDescent::_tracefirst($text),
1751 q{PLAIN},
1752 $tracelevel)
1753 if defined $::RD_TRACE;
1754
1755  
1756 31 ▶ $_tok = ($_noactions) ? 0 : do { $return = "PLAIN" };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 31 31
1757 31 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 31 31
1758 {
1759 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1760 if defined $::RD_TRACE;
1761 0 last;
1762 }
1763 31 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
1764 . $_tok . q{])},
1765 Parse::RecDescent::_tracefirst($text))
1766 if defined $::RD_TRACE;
1767 31 push @item, $_tok;
1768 31 $item{__ACTION1__}=$_tok;
1769
1770  
1771 31 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/^"PLAIN"|^PLAIN/i]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
1772 Parse::RecDescent::_tracefirst($text),
1773 q{PLAIN},
1774 $tracelevel)
1775 if defined $::RD_TRACE;
1776  
1777  
1778  
1779 31 $_matched = 1;
1780 31 last;
1781 }
1782  
1783 splice
1784 84 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 53 31 84
1785
1786 84 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 53 31 84
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
31053
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
1787 {
1788 53 splice @{$thisparser->{deferred}}, $def_at;
1789
1790  
1791 53 $_[1] = $text; # NOT SURE THIS IS NEEDED
1792 53 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
1793 Parse::RecDescent::_tracefirst($_[1]),
1794 q{PLAIN},
1795 $tracelevel)
1796 if defined $::RD_TRACE;
1797 53 return undef;
1798 }
1799 31 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 31 31
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
3100
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
1800 {
1801 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1802 q{PLAIN},
1803 $tracelevel)
1804 if defined $::RD_TRACE;
1805 0 $return = $score_return;
1806 }
1807 31 splice @{$thisparser->{errors}}, $err_at;
1808 31 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 31 31
1809 31 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 31 31
1810 {
1811 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1812 $return . q{])}, "",
1813 q{PLAIN},
1814 $tracelevel);
1815 0 Parse::RecDescent::_trace(q{(consumed: [} .
1816 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1817 Parse::RecDescent::_tracefirst($text),
1818 , q{PLAIN},
1819 $tracelevel)
1820 }
1821 31 $_[1] = $text;
1822 31 return $return;
1823 }
1824  
1825 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1826 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::RFC822
1827 22 ▶{
Subroutine RFC822: called CC=30 SCAR=37.7
1828 22 my $thisparser = $_[0];
1829 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1830 22 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
220
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
1831 22 $ERRORS = 0;
1832 22 my $thisrule = $thisparser->{"rules"}{"RFC822"};
1833  
1834 22 ▶ Parse::RecDescent::_trace(q{Trying rule: [RFC822]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
1835 Parse::RecDescent::_tracefirst($_[1]),
1836 q{RFC822},
1837 $tracelevel)
1838 if defined $::RD_TRACE;
1839  
1840 22 my $def_at = @{$thisparser->{deferred}};
1841 22 my $err_at = @{$thisparser->{errors}};
1842  
1843 22 my $score;
1844 my $score_return;
1845 22 my $_tok;
1846 22 my $return = undef;
1847 22 my $_matched=0;
1848 22 my $commit=0;
1849 22 my @item = ();
1850 22 my %item = ();
1851 22 my $repeating = $_[2];
1852 22 my $_noactions = $_[3];
1853 22 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 22 0 22
1854 22 my $_itempos = $_[5];
1855 22 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 22 0 22
1856 22 my $text;
1857 my $lastsep;
1858 22 my $current_match;
1859 22 my $expectation = new Parse::RecDescent::Expectation(q{/^"RFC822"|^RFC822/i});
1860 22 $expectation->at($_[1]);
1861
1862 22 my $thisline;
1863 22 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1864  
1865
1866  
1867 22 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 22 0 22
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0022
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1868 {
1869
1870 22 ▶ Parse::RecDescent::_trace(q{Trying production: [/^"RFC822"|^RFC822/i]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
1871 Parse::RecDescent::_tracefirst($_[1]),
1872 q{RFC822},
1873 $tracelevel)
1874 if defined $::RD_TRACE;
1875 22 my $thisprod = $thisrule->{"prods"}[0];
1876 22 $text = $_[1];
1877 22 my $_savetext;
1878 22 @item = (q{RFC822});
1879 22 %item = (__RULE__ => q{RFC822});
1880 22 my $repcount = 0;
1881  
1882  
1883 22 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^"RFC822"|^RFC822/i]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
1884 q{RFC822},
1885 $tracelevel)
1886 if defined $::RD_TRACE;
1887 22 undef $lastsep;
1888 22 $expectation->is(q{})->at($text);
1889
1890  
1891 22 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^"RFC822"|^RFC822)/i)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"RFC822"|^RFC822)/i) 1 21 22
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"RFC822"|^RFC822)/i
!ll&&!rl&&r
0121
($lastsep = $1) && ''
!ll
022
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"RFC822"|^RFC822)/i
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^"RFC822"|^RFC822)/i
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^"RFC822"|^RFC822)/i
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
1892 {
1893 1 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 1 0 1
1894 1 $expectation->failed();
1895 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
1896 Parse::RecDescent::_tracefirst($text))
1897 if defined $::RD_TRACE;
1898  
1899 1 last;
1900 }
1901 21 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1902 21 substr($text,0,length($current_match),q{});
1903 21 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
1904 . $current_match . q{])},
1905 Parse::RecDescent::_tracefirst($text))
1906 if defined $::RD_TRACE;
1907 21 push @item, $item{__PATTERN1__}=$current_match;
1908
1909  
1910 21 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
1911 Parse::RecDescent::_tracefirst($text),
1912 q{RFC822},
1913 $tracelevel)
1914 if defined $::RD_TRACE;
1915
1916  
1917 21 ▶ $_tok = ($_noactions) ? 0 : do { $return = "RFC822" };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 21 21
1918 21 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 21 21
1919 {
1920 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1921 if defined $::RD_TRACE;
1922 0 last;
1923 }
1924 21 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
1925 . $_tok . q{])},
1926 Parse::RecDescent::_tracefirst($text))
1927 if defined $::RD_TRACE;
1928 21 push @item, $_tok;
1929 21 $item{__ACTION1__}=$_tok;
1930
1931  
1932 21 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/^"RFC822"|^RFC822/i]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
1933 Parse::RecDescent::_tracefirst($text),
1934 q{RFC822},
1935 $tracelevel)
1936 if defined $::RD_TRACE;
1937  
1938  
1939  
1940 21 $_matched = 1;
1941 21 last;
1942 }
1943  
1944 splice
1945 22 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 1 21 22
1946
1947 22 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 1 21 22
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
2101
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
1948 {
1949 1 splice @{$thisparser->{deferred}}, $def_at;
1950
1951  
1952 1 $_[1] = $text; # NOT SURE THIS IS NEEDED
1953 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
1954 Parse::RecDescent::_tracefirst($_[1]),
1955 q{RFC822},
1956 $tracelevel)
1957 if defined $::RD_TRACE;
1958 1 return undef;
1959 }
1960 21 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 21 21
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
2100
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
1961 {
1962 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1963 q{RFC822},
1964 $tracelevel)
1965 if defined $::RD_TRACE;
1966 0 $return = $score_return;
1967 }
1968 21 splice @{$thisparser->{errors}}, $err_at;
1969 21 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 21 21
1970 21 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 21 21
1971 {
1972 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1973 $return . q{])}, "",
1974 q{RFC822},
1975 $tracelevel);
1976 0 Parse::RecDescent::_trace(q{(consumed: [} .
1977 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1978 Parse::RecDescent::_tracefirst($text),
1979 , q{RFC822},
1980 $tracelevel)
1981 }
1982 21 $_[1] = $text;
1983 21 return $return;
1984 }
1985  
1986 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
1987 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::RFCNONCOMPLY
1988 98 ▶{
Subroutine RFCNONCOMPLY: called CC=30 SCAR=37.7
1989 98 my $thisparser = $_[0];
1990 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1991 98 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
980
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
1992 98 $ERRORS = 0;
1993 98 my $thisrule = $thisparser->{"rules"}{"RFCNONCOMPLY"};
1994  
1995 98 ▶ Parse::RecDescent::_trace(q{Trying rule: [RFCNONCOMPLY]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 98 98
1996 Parse::RecDescent::_tracefirst($_[1]),
1997 q{RFCNONCOMPLY},
1998 $tracelevel)
1999 if defined $::RD_TRACE;
2000  
2001 98 my $def_at = @{$thisparser->{deferred}};
2002 98 my $err_at = @{$thisparser->{errors}};
2003  
2004 98 my $score;
2005 my $score_return;
2006 98 my $_tok;
2007 98 my $return = undef;
2008 98 my $_matched=0;
2009 98 my $commit=0;
2010 98 my @item = ();
2011 98 my %item = ();
2012 98 my $repeating = $_[2];
2013 98 my $_noactions = $_[3];
2014 98 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 98 0 98
2015 98 my $_itempos = $_[5];
2016 98 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 98 0 98
2017 98 my $text;
2018 my $lastsep;
2019 98 my $current_match;
2020 98 my $expectation = new Parse::RecDescent::Expectation(q{/^\\(\\)/i});
2021 98 $expectation->at($_[1]);
2022
2023 98 my $thisline;
2024 98 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2025  
2026
2027  
2028 98 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 98 0 98
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0098
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2029 {
2030
2031 98 ▶ Parse::RecDescent::_trace(q{Trying production: [/^\\(\\)/i]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 98 98
2032 Parse::RecDescent::_tracefirst($_[1]),
2033 q{RFCNONCOMPLY},
2034 $tracelevel)
2035 if defined $::RD_TRACE;
2036 98 my $thisprod = $thisrule->{"prods"}[0];
2037 98 $text = $_[1];
2038 98 my $_savetext;
2039 98 @item = (q{RFCNONCOMPLY});
2040 98 %item = (__RULE__ => q{RFCNONCOMPLY});
2041 98 my $repcount = 0;
2042  
2043  
2044 98 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^\\(\\)/i]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 98 98
2045 q{RFCNONCOMPLY},
2046 $tracelevel)
2047 if defined $::RD_TRACE;
2048 98 undef $lastsep;
2049 98 $expectation->is(q{})->at($text);
2050
2051  
2052 98 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^\(\))/i)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\(\))/i) 94 4 98
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\(\))/i
!ll&&!rl&&r
0944
($lastsep = $1) && ''
!ll
098
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\(\))/i
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^\(\))/i
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^\(\))/i
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
2053 {
2054 94 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 94 0 94
2055 94 $expectation->failed();
2056 94 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
2057 Parse::RecDescent::_tracefirst($text))
2058 if defined $::RD_TRACE;
2059  
2060 94 last;
2061 }
2062 4 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2063 4 substr($text,0,length($current_match),q{});
2064 4 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
2065 . $current_match . q{])},
2066 Parse::RecDescent::_tracefirst($text))
2067 if defined $::RD_TRACE;
2068 4 push @item, $item{__PATTERN1__}=$current_match;
2069
2070  
2071 4 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
2072 Parse::RecDescent::_tracefirst($text),
2073 q{RFCNONCOMPLY},
2074 $tracelevel)
2075 if defined $::RD_TRACE;
2076
2077  
2078 4 ▶ $_tok = ($_noactions) ? 0 : do { $return = "NIL" };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 4 4
2079 4 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 4 4
2080 {
2081 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2082 if defined $::RD_TRACE;
2083 0 last;
2084 }
2085 4 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
2086 . $_tok . q{])},
2087 Parse::RecDescent::_tracefirst($text))
2088 if defined $::RD_TRACE;
2089 4 push @item, $_tok;
2090 4 $item{__ACTION1__}=$_tok;
2091
2092  
2093 4 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/^\\(\\)/i]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
2094 Parse::RecDescent::_tracefirst($text),
2095 q{RFCNONCOMPLY},
2096 $tracelevel)
2097 if defined $::RD_TRACE;
2098  
2099  
2100  
2101 4 $_matched = 1;
2102 4 last;
2103 }
2104  
2105 splice
2106 98 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 94 4 98
2107
2108 98 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 94 4 98
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
4094
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
2109 {
2110 94 splice @{$thisparser->{deferred}}, $def_at;
2111
2112  
2113 94 $_[1] = $text; # NOT SURE THIS IS NEEDED
2114 94 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
2115 Parse::RecDescent::_tracefirst($_[1]),
2116 q{RFCNONCOMPLY},
2117 $tracelevel)
2118 if defined $::RD_TRACE;
2119 94 return undef;
2120 }
2121 4 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 4 4
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
400
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
2122 {
2123 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2124 q{RFCNONCOMPLY},
2125 $tracelevel)
2126 if defined $::RD_TRACE;
2127 0 $return = $score_return;
2128 }
2129 4 splice @{$thisparser->{errors}}, $err_at;
2130 4 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 4 4
2131 4 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 4 4
2132 {
2133 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2134 $return . q{])}, "",
2135 q{RFCNONCOMPLY},
2136 $tracelevel);
2137 0 Parse::RecDescent::_trace(q{(consumed: [} .
2138 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2139 Parse::RecDescent::_tracefirst($text),
2140 , q{RFCNONCOMPLY},
2141 $tracelevel)
2142 }
2143 4 $_[1] = $text;
2144 4 return $return;
2145 }
2146  
2147 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
2148 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::SINGLE_QUOTED_STRING
2149 184 ▶{
Subroutine SINGLE_QUOTED_STRING: called CC=48 SCAR=48.2
2150 184 my $thisparser = $_[0];
2151 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
2152 184 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1840
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
2153 184 $ERRORS = 0;
2154 184 my $thisrule = $thisparser->{"rules"}{"SINGLE_QUOTED_STRING"};
2155  
2156 184 ▶ Parse::RecDescent::_trace(q{Trying rule: [SINGLE_QUOTED_STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 184 184
2157 Parse::RecDescent::_tracefirst($_[1]),
2158 q{SINGLE_QUOTED_STRING},
2159 $tracelevel)
2160 if defined $::RD_TRACE;
2161  
2162 184 my $def_at = @{$thisparser->{deferred}};
2163 184 my $err_at = @{$thisparser->{errors}};
2164  
2165 184 my $score;
2166 my $score_return;
2167 184 my $_tok;
2168 184 my $return = undef;
2169 184 my $_matched=0;
2170 184 my $commit=0;
2171 184 my @item = ();
2172 184 my %item = ();
2173 184 my $repeating = $_[2];
2174 184 my $_noactions = $_[3];
2175 184 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 184 0 184
2176 184 my $_itempos = $_[5];
2177 184 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 184 0 184
2178 184 my $text;
2179 my $lastsep;
2180 184 my $current_match;
2181 184 my $expectation = new Parse::RecDescent::Expectation(q{'''});
2182 184 $expectation->at($_[1]);
2183
2184 184 my $thisline;
2185 184 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2186  
2187
2188  
2189 184 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 184 0 184
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00184
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2190 {
2191
2192 184 ▶ Parse::RecDescent::_trace(q{Trying production: [''' /(?:\\\\['\\\\]|[^'])*/ ''']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 184 184
2193 Parse::RecDescent::_tracefirst($_[1]),
2194 q{SINGLE_QUOTED_STRING},
2195 $tracelevel)
2196 if defined $::RD_TRACE;
2197 184 my $thisprod = $thisrule->{"prods"}[0];
2198 184 $text = $_[1];
2199 184 my $_savetext;
2200 184 @item = (q{SINGLE_QUOTED_STRING});
2201 184 %item = (__RULE__ => q{SINGLE_QUOTED_STRING});
2202 184 my $repcount = 0;
2203  
2204  
2205 184 ▶ Parse::RecDescent::_trace(q{Trying terminal: [''']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 184 184
2206 Parse::RecDescent::_tracefirst($text),
2207 q{SINGLE_QUOTED_STRING},
2208 $tracelevel)
2209 if defined $::RD_TRACE;
2210 184 undef $lastsep;
2211 184 $expectation->is(q{})->at($text);
2212
2213  
2214 184 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "'"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 183 1 184
Condition63%7/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
18301
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
01831
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 }
!ll&&!rl&&r
00184
($lastsep = $1) && ''
!ll
16618
MC/DC25%1/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = "'"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table40%2/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = "'"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
2215 substr($text,0,length($_tok)) eq $_tok and
2216 1 do { substr($text,0,length($_tok)) = ""; 1; }
2217 )
2218 {
2219 183 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 183 0 183
2220
2221 183 $expectation->failed();
2222 183 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
2223 Parse::RecDescent::_tracefirst($text))
2224 if defined $::RD_TRACE;
2225 183 last;
2226 }
2227 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2228 . $_tok . q{])},
2229 Parse::RecDescent::_tracefirst($text))
2230 if defined $::RD_TRACE;
2231 1 push @item, $item{__STRING1__}=$_tok;
2232
2233  
2234 1 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/(?:\\\\['\\\\]|[^'])*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2235 q{SINGLE_QUOTED_STRING},
2236 $tracelevel)
2237 if defined $::RD_TRACE;
2238 1 undef $lastsep;
2239 1 $expectation->is(q{/(?:\\\\['\\\\]|[^'])*/})->at($text);
2240
2241  
2242 1 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?:\\['\\]|[^'])*)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\\['\\]|[^'])*)/) 0 1 1
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\\['\\]|[^'])*)/
!ll&&!rl&&r
001
($lastsep = $1) && ''
!ll
10
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:\\['\\]|[^'])*)/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:(?:\\['\\]|[^'])*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:(?:\\['\\]|[^'])*)/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
2243 {
2244 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
2245 0 $expectation->failed();
2246 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2247 Parse::RecDescent::_tracefirst($text))
2248 if defined $::RD_TRACE;
2249  
2250 0 last;
2251 }
2252 1 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2253 1 substr($text,0,length($current_match),q{});
2254 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2255 . $current_match . q{])},
2256 Parse::RecDescent::_tracefirst($text))
2257 if defined $::RD_TRACE;
2258 1 push @item, $item{__PATTERN1__}=$current_match;
2259
2260  
2261 1 ▶ Parse::RecDescent::_trace(q{Trying terminal: [''']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2262 Parse::RecDescent::_tracefirst($text),
2263 q{SINGLE_QUOTED_STRING},
2264 $tracelevel)
2265 if defined $::RD_TRACE;
2266 1 undef $lastsep;
2267 1 $expectation->is(q{'''})->at($text);
2268
2269  
2270 1 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "'"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 1 1
Condition36%4/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
001
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
001
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 }
!ll&&!rl&&r
001
($lastsep = $1) && ''
!ll
10
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = "'"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table20%1/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = "'"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
2271 substr($text,0,length($_tok)) eq $_tok and
2272 1 do { substr($text,0,length($_tok)) = ""; 1; }
2273 )
2274 {
2275 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
2276
2277 0 $expectation->failed();
2278 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2279 Parse::RecDescent::_tracefirst($text))
2280 if defined $::RD_TRACE;
2281 0 last;
2282 }
2283 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2284 . $_tok . q{])},
2285 Parse::RecDescent::_tracefirst($text))
2286 if defined $::RD_TRACE;
2287 1 push @item, $item{__STRING2__}=$_tok;
2288
2289  
2290 1 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2291 Parse::RecDescent::_tracefirst($text),
2292 q{SINGLE_QUOTED_STRING},
2293 $tracelevel)
2294 if defined $::RD_TRACE;
2295
2296  
2297 1 ▶ $_tok = ($_noactions) ? 0 : do { $return = $item{__PATTERN1__} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 1 1
2298 1 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 1 1
2299 {
2300 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2301 if defined $::RD_TRACE;
2302 0 last;
2303 }
2304 1 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2305 . $_tok . q{])},
2306 Parse::RecDescent::_tracefirst($text))
2307 if defined $::RD_TRACE;
2308 1 push @item, $_tok;
2309 1 $item{__ACTION1__}=$_tok;
2310
2311  
2312 1 ▶ Parse::RecDescent::_trace(q{>>Matched production: [''' /(?:\\\\['\\\\]|[^'])*/ ''']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2313 Parse::RecDescent::_tracefirst($text),
2314 q{SINGLE_QUOTED_STRING},
2315 $tracelevel)
2316 if defined $::RD_TRACE;
2317  
2318  
2319  
2320 1 $_matched = 1;
2321 1 last;
2322 }
2323  
2324 splice
2325 184 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 183 1 184
2326
2327 184 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 183 1 184
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
10183
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
2328 {
2329 183 splice @{$thisparser->{deferred}}, $def_at;
2330
2331  
2332 183 $_[1] = $text; # NOT SURE THIS IS NEEDED
2333 183 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
2334 Parse::RecDescent::_tracefirst($_[1]),
2335 q{SINGLE_QUOTED_STRING},
2336 $tracelevel)
2337 if defined $::RD_TRACE;
2338 183 return undef;
2339 }
2340 1 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 1 1
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
100
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
2341 {
2342 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2343 q{SINGLE_QUOTED_STRING},
2344 $tracelevel)
2345 if defined $::RD_TRACE;
2346 0 $return = $score_return;
2347 }
2348 1 splice @{$thisparser->{errors}}, $err_at;
2349 1 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 1 1
2350 1 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 1 1
2351 {
2352 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2353 $return . q{])}, "",
2354 q{SINGLE_QUOTED_STRING},
2355 $tracelevel);
2356 0 Parse::RecDescent::_trace(q{(consumed: [} .
2357 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2358 Parse::RecDescent::_tracefirst($text),
2359 , q{SINGLE_QUOTED_STRING},
2360 $tracelevel)
2361 }
2362 1 $_[1] = $text;
2363 1 return $return;
2364 }
2365  
2366 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
2367 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING
2368 905 ▶{
Subroutine STRING: called CC=40 SCAR=40.3
2369 905 my $thisparser = $_[0];
2370 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
2371 905 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
9050
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
2372 905 $ERRORS = 0;
2373 905 my $thisrule = $thisparser->{"rules"}{"STRING"};
2374  
2375 905 ▶ Parse::RecDescent::_trace(q{Trying rule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 905 905
2376 Parse::RecDescent::_tracefirst($_[1]),
2377 q{STRING},
2378 $tracelevel)
2379 if defined $::RD_TRACE;
2380  
2381 905 my $def_at = @{$thisparser->{deferred}};
2382 905 my $err_at = @{$thisparser->{errors}};
2383  
2384 905 my $score;
2385 my $score_return;
2386 905 my $_tok;
2387 905 my $return = undef;
2388 905 my $_matched=0;
2389 905 my $commit=0;
2390 905 my @item = ();
2391 905 my %item = ();
2392 905 my $repeating = $_[2];
2393 905 my $_noactions = $_[3];
2394 905 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 905 0 905
2395 905 my $_itempos = $_[5];
2396 905 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 905 0 905
2397 905 my $text;
2398 my $lastsep;
2399 905 my $current_match;
2400 905 my $expectation = new Parse::RecDescent::Expectation(q{DOUBLE_QUOTED_STRING, or SINGLE_QUOTED_STRING, or BARESTRING});
2401 905 $expectation->at($_[1]);
2402
2403 905 my $thisline;
2404 905 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2405  
2406
2407  
2408 905 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 905 0 905
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00905
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2409 {
2410
2411 905 ▶ Parse::RecDescent::_trace(q{Trying production: [DOUBLE_QUOTED_STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 905 905
2412 Parse::RecDescent::_tracefirst($_[1]),
2413 q{STRING},
2414 $tracelevel)
2415 if defined $::RD_TRACE;
2416 905 my $thisprod = $thisrule->{"prods"}[0];
2417 905 $text = $_[1];
2418 905 my $_savetext;
2419 905 @item = (q{STRING});
2420 905 %item = (__RULE__ => q{STRING});
2421 905 my $repcount = 0;
2422  
2423  
2424 905 ▶ Parse::RecDescent::_trace(q{Trying subrule: [DOUBLE_QUOTED_STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 905 905
2425 Parse::RecDescent::_tracefirst($text),
2426 q{STRING},
2427 $tracelevel)
2428 if defined $::RD_TRACE;
2429 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
2430 905 $expectation->is(q{})->at($text);
2431 905 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::DOUBLE_QUOTED_STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = DOUBLE_QUOTED_STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 184 721 905
2432 {
2433
2434 184 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [DOUBLE_QUOTED_STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 184 184
2435 Parse::RecDescent::_tracefirst($text),
2436 q{STRING},
2437 $tracelevel)
2438 if defined $::RD_TRACE;
2439 184 $expectation->failed();
2440 184 last;
2441 }
2442 721 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [DOUBLE_QUOTED_STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 721 721
2443 . $_tok . q{]},
2444  
2445 Parse::RecDescent::_tracefirst($text),
2446 q{STRING},
2447 $tracelevel)
2448 if defined $::RD_TRACE;
2449 721 $item{q{DOUBLE_QUOTED_STRING}} = $_tok;
2450 721 push @item, $_tok;
2451
2452 }
2453  
2454 721 ▶ Parse::RecDescent::_trace(q{>>Matched production: [DOUBLE_QUOTED_STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 721 721
2455 Parse::RecDescent::_tracefirst($text),
2456 q{STRING},
2457 $tracelevel)
2458 if defined $::RD_TRACE;
2459  
2460  
2461  
2462 721 $_matched = 1;
2463 721 last;
2464 }
2465  
2466 splice
2467 905 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 184 721 905
2468
2469 905 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 184 721 905
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
7210184
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2470 {
2471
2472 184 ▶ Parse::RecDescent::_trace(q{Trying production: [SINGLE_QUOTED_STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 184 184
2473 Parse::RecDescent::_tracefirst($_[1]),
2474 q{STRING},
2475 $tracelevel)
2476 if defined $::RD_TRACE;
2477 184 my $thisprod = $thisrule->{"prods"}[1];
2478 184 $text = $_[1];
2479 184 my $_savetext;
2480 184 @item = (q{STRING});
2481 184 %item = (__RULE__ => q{STRING});
2482 184 my $repcount = 0;
2483  
2484  
2485 184 ▶ Parse::RecDescent::_trace(q{Trying subrule: [SINGLE_QUOTED_STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 184 184
2486 Parse::RecDescent::_tracefirst($text),
2487 q{STRING},
2488 $tracelevel)
2489 if defined $::RD_TRACE;
2490 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
2491 184 $expectation->is(q{})->at($text);
2492 184 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::SINGLE_QUOTED_STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = SINGLE_QUOTED_STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 183 1 184
2493 {
2494
2495 183 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [SINGLE_QUOTED_STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
2496 Parse::RecDescent::_tracefirst($text),
2497 q{STRING},
2498 $tracelevel)
2499 if defined $::RD_TRACE;
2500 183 $expectation->failed();
2501 183 last;
2502 }
2503 1 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [SINGLE_QUOTED_STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2504 . $_tok . q{]},
2505  
2506 Parse::RecDescent::_tracefirst($text),
2507 q{STRING},
2508 $tracelevel)
2509 if defined $::RD_TRACE;
2510 1 $item{q{SINGLE_QUOTED_STRING}} = $_tok;
2511 1 push @item, $_tok;
2512
2513 }
2514  
2515 1 ▶ Parse::RecDescent::_trace(q{>>Matched production: [SINGLE_QUOTED_STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2516 Parse::RecDescent::_tracefirst($text),
2517 q{STRING},
2518 $tracelevel)
2519 if defined $::RD_TRACE;
2520  
2521  
2522  
2523 1 $_matched = 1;
2524 1 last;
2525 }
2526  
2527 splice
2528 905 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 183 722 905
2529
2530 905 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 183 722 905
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
7220183
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2531 {
2532
2533 183 ▶ Parse::RecDescent::_trace(q{Trying production: [BARESTRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
2534 Parse::RecDescent::_tracefirst($_[1]),
2535 q{STRING},
2536 $tracelevel)
2537 if defined $::RD_TRACE;
2538 183 my $thisprod = $thisrule->{"prods"}[2];
2539 183 $text = $_[1];
2540 183 my $_savetext;
2541 183 @item = (q{STRING});
2542 183 %item = (__RULE__ => q{STRING});
2543 183 my $repcount = 0;
2544  
2545  
2546 183 ▶ Parse::RecDescent::_trace(q{Trying subrule: [BARESTRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
2547 Parse::RecDescent::_tracefirst($text),
2548 q{STRING},
2549 $tracelevel)
2550 if defined $::RD_TRACE;
2551 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
2552 183 $expectation->is(q{})->at($text);
2553 183 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::BARESTRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = BARESTRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 183 0 183
2554 {
2555
2556 183 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [BARESTRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
2557 Parse::RecDescent::_tracefirst($text),
2558 q{STRING},
2559 $tracelevel)
2560 if defined $::RD_TRACE;
2561 183 $expectation->failed();
2562 183 last;
2563 }
2564 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [BARESTRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2565 . $_tok . q{]},
2566  
2567 Parse::RecDescent::_tracefirst($text),
2568 q{STRING},
2569 $tracelevel)
2570 if defined $::RD_TRACE;
2571 0 $item{q{BARESTRING}} = $_tok;
2572 0 push @item, $_tok;
2573
2574 }
2575  
2576 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [BARESTRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2577 Parse::RecDescent::_tracefirst($text),
2578 q{STRING},
2579 $tracelevel)
2580 if defined $::RD_TRACE;
2581  
2582  
2583  
2584 0 $_matched = 1;
2585 0 last;
2586 }
2587  
2588 splice
2589 905 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 183 722 905
2590
2591 905 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 183 722 905
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
7220183
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
2592 {
2593 183 splice @{$thisparser->{deferred}}, $def_at;
2594
2595  
2596 183 $_[1] = $text; # NOT SURE THIS IS NEEDED
2597 183 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 183 183
2598 Parse::RecDescent::_tracefirst($_[1]),
2599 q{STRING},
2600 $tracelevel)
2601 if defined $::RD_TRACE;
2602 183 return undef;
2603 }
2604 722 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 722 722
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
07220
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
2605 {
2606 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2607 q{STRING},
2608 $tracelevel)
2609 if defined $::RD_TRACE;
2610 0 $return = $score_return;
2611 }
2612 722 splice @{$thisparser->{errors}}, $err_at;
2613 722 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 722 0 722
2614 722 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 722 722
2615 {
2616 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2617 $return . q{])}, "",
2618 q{STRING},
2619 $tracelevel);
2620 0 Parse::RecDescent::_trace(q{(consumed: [} .
2621 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2622 Parse::RecDescent::_tracefirst($text),
2623 , q{STRING},
2624 $tracelevel)
2625 }
2626 722 $_[1] = $text;
2627 722 return $return;
2628 }
2629  
2630 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
2631 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRINGS
2632 58 ▶{
Subroutine STRINGS: called CC=45 SCAR=46.3
2633 58 my $thisparser = $_[0];
2634 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
2635 58 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
580
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
2636 58 $ERRORS = 0;
2637 58 my $thisrule = $thisparser->{"rules"}{"STRINGS"};
2638  
2639 58 ▶ Parse::RecDescent::_trace(q{Trying rule: [STRINGS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 58 58
2640 Parse::RecDescent::_tracefirst($_[1]),
2641 q{STRINGS},
2642 $tracelevel)
2643 if defined $::RD_TRACE;
2644  
2645 58 my $def_at = @{$thisparser->{deferred}};
2646 58 my $err_at = @{$thisparser->{errors}};
2647  
2648 58 my $score;
2649 my $score_return;
2650 58 my $_tok;
2651 58 my $return = undef;
2652 58 my $_matched=0;
2653 58 my $commit=0;
2654 58 my @item = ();
2655 58 my %item = ();
2656 58 my $repeating = $_[2];
2657 58 my $_noactions = $_[3];
2658 58 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 58 0 58
2659 58 my $_itempos = $_[5];
2660 58 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 58 0 58
2661 58 my $text;
2662 my $lastsep;
2663 58 my $current_match;
2664 58 my $expectation = new Parse::RecDescent::Expectation(q{'('});
2665 58 $expectation->at($_[1]);
2666
2667 58 my $thisline;
2668 58 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2669  
2670
2671  
2672 58 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 58 0 58
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0058
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2673 {
2674
2675 58 ▶ Parse::RecDescent::_trace(q{Trying production: ['(' STRING ')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 58 58
2676 Parse::RecDescent::_tracefirst($_[1]),
2677 q{STRINGS},
2678 $tracelevel)
2679 if defined $::RD_TRACE;
2680 58 my $thisprod = $thisrule->{"prods"}[0];
2681 58 $text = $_[1];
2682 58 my $_savetext;
2683 58 @item = (q{STRINGS});
2684 58 %item = (__RULE__ => q{STRINGS});
2685 58 my $repcount = 0;
2686  
2687  
2688 58 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['(']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 58 58
2689 Parse::RecDescent::_tracefirst($text),
2690 q{STRINGS},
2691 $tracelevel)
2692 if defined $::RD_TRACE;
2693 58 undef $lastsep;
2694 58 $expectation->is(q{})->at($text);
2695
2696  
2697 58 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "("; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 57 1 58
Condition63%7/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
5701
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0571
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 }
!ll&&!rl&&r
0058
($lastsep = $1) && ''
!ll
571
MC/DC25%1/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = "("; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table40%2/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = "("; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
2698 substr($text,0,length($_tok)) eq $_tok and
2699 1 do { substr($text,0,length($_tok)) = ""; 1; }
2700 )
2701 {
2702 57 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 57 0 57
2703
2704 57 $expectation->failed();
2705 57 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 57 57
2706 Parse::RecDescent::_tracefirst($text))
2707 if defined $::RD_TRACE;
2708 57 last;
2709 }
2710 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2711 . $_tok . q{])},
2712 Parse::RecDescent::_tracefirst($text))
2713 if defined $::RD_TRACE;
2714 1 push @item, $item{__STRING1__}=$_tok;
2715
2716  
2717 1 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2718 Parse::RecDescent::_tracefirst($text),
2719 q{STRINGS},
2720 $tracelevel)
2721 if defined $::RD_TRACE;
2722 1 $expectation->is(q{STRING})->at($text);
2723
2724 1 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING, 1, 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::Mail::IMAPClient::BodyStructure::Parse::STRING, 1, 100000000, $_noactions, $expectation, sub { \@arg; } , undef))) 0 1 1
2725 {
2726 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2727 Parse::RecDescent::_tracefirst($text),
2728 q{STRINGS},
2729 $tracelevel)
2730 if defined $::RD_TRACE;
2731 0 last;
2732 }
2733 1 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [STRING]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2734 . @$_tok . q{ times)},
2735  
2736 Parse::RecDescent::_tracefirst($text),
2737 q{STRINGS},
2738 $tracelevel)
2739 if defined $::RD_TRACE;
2740 1 $item{q{STRING(s)}} = $_tok;
2741 1 push @item, $_tok;
2742
2743  
2744  
2745 1 ▶ Parse::RecDescent::_trace(q{Trying terminal: [')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2746 Parse::RecDescent::_tracefirst($text),
2747 q{STRINGS},
2748 $tracelevel)
2749 if defined $::RD_TRACE;
2750 1 undef $lastsep;
2751 1 $expectation->is(q{')'})->at($text);
2752
2753  
2754 1 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = ")"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 1 1
Condition36%4/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
001
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
001
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 }
!ll&&!rl&&r
001
($lastsep = $1) && ''
!ll
10
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = ")"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table20%1/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = ")"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
2755 substr($text,0,length($_tok)) eq $_tok and
2756 1 do { substr($text,0,length($_tok)) = ""; 1; }
2757 )
2758 {
2759 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
2760
2761 0 $expectation->failed();
2762 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2763 Parse::RecDescent::_tracefirst($text))
2764 if defined $::RD_TRACE;
2765 0 last;
2766 }
2767 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2768 . $_tok . q{])},
2769 Parse::RecDescent::_tracefirst($text))
2770 if defined $::RD_TRACE;
2771 1 push @item, $item{__STRING2__}=$_tok;
2772
2773  
2774 1 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2775 Parse::RecDescent::_tracefirst($text),
2776 q{STRINGS},
2777 $tracelevel)
2778 if defined $::RD_TRACE;
2779
2780  
2781 1 ▶ $_tok = ($_noactions) ? 0 : do { $return = $item{'STRING(s)'} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 1 1
2782 1 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 1 1
2783 {
2784 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2785 if defined $::RD_TRACE;
2786 0 last;
2787 }
2788 1 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2789 . $_tok . q{])},
2790 Parse::RecDescent::_tracefirst($text))
2791 if defined $::RD_TRACE;
2792 1 push @item, $_tok;
2793 1 $item{__ACTION1__}=$_tok;
2794
2795  
2796 1 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['(' STRING ')']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
2797 Parse::RecDescent::_tracefirst($text),
2798 q{STRINGS},
2799 $tracelevel)
2800 if defined $::RD_TRACE;
2801  
2802  
2803  
2804 1 $_matched = 1;
2805 1 last;
2806 }
2807  
2808 splice
2809 58 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 57 1 58
2810
2811 58 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 57 1 58
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
1057
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
2812 {
2813 57 splice @{$thisparser->{deferred}}, $def_at;
2814
2815  
2816 57 $_[1] = $text; # NOT SURE THIS IS NEEDED
2817 57 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 57 57
2818 Parse::RecDescent::_tracefirst($_[1]),
2819 q{STRINGS},
2820 $tracelevel)
2821 if defined $::RD_TRACE;
2822 57 return undef;
2823 }
2824 1 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 1 1
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
100
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
2825 {
2826 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2827 q{STRINGS},
2828 $tracelevel)
2829 if defined $::RD_TRACE;
2830 0 $return = $score_return;
2831 }
2832 1 splice @{$thisparser->{errors}}, $err_at;
2833 1 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 1 1
2834 1 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 1 1
2835 {
2836 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2837 $return . q{])}, "",
2838 q{STRINGS},
2839 $tracelevel);
2840 0 Parse::RecDescent::_trace(q{(consumed: [} .
2841 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2842 Parse::RecDescent::_tracefirst($text),
2843 , q{STRINGS},
2844 $tracelevel)
2845 }
2846 1 $_[1] = $text;
2847 1 return $return;
2848 }
2849  
2850 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
2851 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::TEXT
2852 94 ▶{
Subroutine TEXT: called CC=30 SCAR=37.7
2853 94 my $thisparser = $_[0];
2854 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
2855 94 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
940
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
2856 94 $ERRORS = 0;
2857 94 my $thisrule = $thisparser->{"rules"}{"TEXT"};
2858  
2859 94 ▶ Parse::RecDescent::_trace(q{Trying rule: [TEXT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
2860 Parse::RecDescent::_tracefirst($_[1]),
2861 q{TEXT},
2862 $tracelevel)
2863 if defined $::RD_TRACE;
2864  
2865 94 my $def_at = @{$thisparser->{deferred}};
2866 94 my $err_at = @{$thisparser->{errors}};
2867  
2868 94 my $score;
2869 my $score_return;
2870 94 my $_tok;
2871 94 my $return = undef;
2872 94 my $_matched=0;
2873 94 my $commit=0;
2874 94 my @item = ();
2875 94 my %item = ();
2876 94 my $repeating = $_[2];
2877 94 my $_noactions = $_[3];
2878 94 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 94 0 94
2879 94 my $_itempos = $_[5];
2880 94 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 94 0 94
2881 94 my $text;
2882 my $lastsep;
2883 94 my $current_match;
2884 94 my $expectation = new Parse::RecDescent::Expectation(q{/^"TEXT"|^TEXT/i});
2885 94 $expectation->at($_[1]);
2886
2887 94 my $thisline;
2888 94 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2889  
2890
2891  
2892 94 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 94 0 94
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0094
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2893 {
2894
2895 94 ▶ Parse::RecDescent::_trace(q{Trying production: [/^"TEXT"|^TEXT/i]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
2896 Parse::RecDescent::_tracefirst($_[1]),
2897 q{TEXT},
2898 $tracelevel)
2899 if defined $::RD_TRACE;
2900 94 my $thisprod = $thisrule->{"prods"}[0];
2901 94 $text = $_[1];
2902 94 my $_savetext;
2903 94 @item = (q{TEXT});
2904 94 %item = (__RULE__ => q{TEXT});
2905 94 my $repcount = 0;
2906  
2907  
2908 94 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^"TEXT"|^TEXT/i]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
2909 q{TEXT},
2910 $tracelevel)
2911 if defined $::RD_TRACE;
2912 94 undef $lastsep;
2913 94 $expectation->is(q{})->at($text);
2914
2915  
2916 94 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^"TEXT"|^TEXT)/i)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"TEXT"|^TEXT)/i) 53 41 94
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"TEXT"|^TEXT)/i
!ll&&!rl&&r
05341
($lastsep = $1) && ''
!ll
940
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^"TEXT"|^TEXT)/i
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^"TEXT"|^TEXT)/i
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^"TEXT"|^TEXT)/i
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
2917 {
2918 53 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 53 0 53
2919 53 $expectation->failed();
2920 53 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
2921 Parse::RecDescent::_tracefirst($text))
2922 if defined $::RD_TRACE;
2923  
2924 53 last;
2925 }
2926 41 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2927 41 substr($text,0,length($current_match),q{});
2928 41 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
2929 . $current_match . q{])},
2930 Parse::RecDescent::_tracefirst($text))
2931 if defined $::RD_TRACE;
2932 41 push @item, $item{__PATTERN1__}=$current_match;
2933
2934  
2935 41 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
2936 Parse::RecDescent::_tracefirst($text),
2937 q{TEXT},
2938 $tracelevel)
2939 if defined $::RD_TRACE;
2940
2941  
2942 41 ▶ $_tok = ($_noactions) ? 0 : do { $return = "TEXT" };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 41 41
2943 41 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 41 41
2944 {
2945 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2946 if defined $::RD_TRACE;
2947 0 last;
2948 }
2949 41 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
2950 . $_tok . q{])},
2951 Parse::RecDescent::_tracefirst($text))
2952 if defined $::RD_TRACE;
2953 41 push @item, $_tok;
2954 41 $item{__ACTION1__}=$_tok;
2955
2956  
2957 41 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/^"TEXT"|^TEXT/i]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
2958 Parse::RecDescent::_tracefirst($text),
2959 q{TEXT},
2960 $tracelevel)
2961 if defined $::RD_TRACE;
2962  
2963  
2964  
2965 41 $_matched = 1;
2966 41 last;
2967 }
2968  
2969 splice
2970 94 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 53 41 94
2971
2972 94 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 53 41 94
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
41053
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
2973 {
2974 53 splice @{$thisparser->{deferred}}, $def_at;
2975
2976  
2977 53 $_[1] = $text; # NOT SURE THIS IS NEEDED
2978 53 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
2979 Parse::RecDescent::_tracefirst($_[1]),
2980 q{TEXT},
2981 $tracelevel)
2982 if defined $::RD_TRACE;
2983 53 return undef;
2984 }
2985 41 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 41 41
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
4100
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
2986 {
2987 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2988 q{TEXT},
2989 $tracelevel)
2990 if defined $::RD_TRACE;
2991 0 $return = $score_return;
2992 }
2993 41 splice @{$thisparser->{errors}}, $err_at;
2994 41 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 41 41
2995 41 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 41 41
2996 {
2997 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2998 $return . q{])}, "",
2999 q{TEXT},
3000 $tracelevel);
3001 0 Parse::RecDescent::_trace(q{(consumed: [} .
3002 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3003 Parse::RecDescent::_tracefirst($text),
3004 , q{TEXT},
3005 $tracelevel)
3006 }
3007 41 $_[1] = $text;
3008 41 return $return;
3009 }
3010  
3011 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3012 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::addressstruct
3013 188 ▶{
Subroutine addressstruct: called CC=57 SCAR=51.0
3014 188 my $thisparser = $_[0];
3015 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3016 188 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1880
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
3017 188 $ERRORS = 0;
3018 188 my $thisrule = $thisparser->{"rules"}{"addressstruct"};
3019  
3020 188 ▶ Parse::RecDescent::_trace(q{Trying rule: [addressstruct]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 188 188
3021 Parse::RecDescent::_tracefirst($_[1]),
3022 q{addressstruct},
3023 $tracelevel)
3024 if defined $::RD_TRACE;
3025  
3026 188 my $def_at = @{$thisparser->{deferred}};
3027 188 my $err_at = @{$thisparser->{errors}};
3028  
3029 188 my $score;
3030 my $score_return;
3031 188 my $_tok;
3032 188 my $return = undef;
3033 188 my $_matched=0;
3034 188 my $commit=0;
3035 188 my @item = ();
3036 188 my %item = ();
3037 188 my $repeating = $_[2];
3038 188 my $_noactions = $_[3];
3039 188 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 188 0 188
3040 188 my $_itempos = $_[5];
3041 188 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 188 0 188
3042 188 my $text;
3043 my $lastsep;
3044 188 my $current_match;
3045 188 my $expectation = new Parse::RecDescent::Expectation(q{'('});
3046 188 $expectation->at($_[1]);
3047
3048 188 my $thisline;
3049 188 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
3050  
3051
3052  
3053 188 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 188 0 188
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00188
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3054 {
3055
3056 188 ▶ Parse::RecDescent::_trace(q{Trying production: ['(' personalname sourceroute mailboxname hostname ')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 188 188
3057 Parse::RecDescent::_tracefirst($_[1]),
3058 q{addressstruct},
3059 $tracelevel)
3060 if defined $::RD_TRACE;
3061 188 my $thisprod = $thisrule->{"prods"}[0];
3062 188 $text = $_[1];
3063 188 my $_savetext;
3064 188 @item = (q{addressstruct});
3065 188 %item = (__RULE__ => q{addressstruct});
3066 188 my $repcount = 0;
3067  
3068  
3069 188 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['(']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 188 188
3070 Parse::RecDescent::_tracefirst($text),
3071 q{addressstruct},
3072 $tracelevel)
3073 if defined $::RD_TRACE;
3074 188 undef $lastsep;
3075 188 $expectation->is(q{})->at($text);
3076
3077  
3078 188 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "("; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 94 94 188
Condition54%6/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
94094
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
09494
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 }
!ll&&!rl&&r
00188
($lastsep = $1) && ''
!ll
1880
MC/DC25%1/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = "("; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table40%2/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = "("; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
3079 substr($text,0,length($_tok)) eq $_tok and
3080 94 do { substr($text,0,length($_tok)) = ""; 1; }
3081 )
3082 {
3083 94 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 94 0 94
3084
3085 94 $expectation->failed();
3086 94 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3087 Parse::RecDescent::_tracefirst($text))
3088 if defined $::RD_TRACE;
3089 94 last;
3090 }
3091 94 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3092 . $_tok . q{])},
3093 Parse::RecDescent::_tracefirst($text))
3094 if defined $::RD_TRACE;
3095 94 push @item, $item{__STRING1__}=$_tok;
3096
3097  
3098 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [personalname]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3099 Parse::RecDescent::_tracefirst($text),
3100 q{addressstruct},
3101 $tracelevel)
3102 if defined $::RD_TRACE;
3103 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3104 94 $expectation->is(q{personalname})->at($text);
3105 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::personalname($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = personalname($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 94 94
3106 {
3107
3108 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [personalname]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3109 Parse::RecDescent::_tracefirst($text),
3110 q{addressstruct},
3111 $tracelevel)
3112 if defined $::RD_TRACE;
3113 0 $expectation->failed();
3114 0 last;
3115 }
3116 94 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [personalname]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3117 . $_tok . q{]},
3118  
3119 Parse::RecDescent::_tracefirst($text),
3120 q{addressstruct},
3121 $tracelevel)
3122 if defined $::RD_TRACE;
3123 94 $item{q{personalname}} = $_tok;
3124 94 push @item, $_tok;
3125
3126 }
3127  
3128 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [sourceroute]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3129 Parse::RecDescent::_tracefirst($text),
3130 q{addressstruct},
3131 $tracelevel)
3132 if defined $::RD_TRACE;
3133 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3134 94 $expectation->is(q{sourceroute})->at($text);
3135 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::sourceroute($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = sourceroute($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 94 94
3136 {
3137
3138 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [sourceroute]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3139 Parse::RecDescent::_tracefirst($text),
3140 q{addressstruct},
3141 $tracelevel)
3142 if defined $::RD_TRACE;
3143 0 $expectation->failed();
3144 0 last;
3145 }
3146 94 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [sourceroute]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3147 . $_tok . q{]},
3148  
3149 Parse::RecDescent::_tracefirst($text),
3150 q{addressstruct},
3151 $tracelevel)
3152 if defined $::RD_TRACE;
3153 94 $item{q{sourceroute}} = $_tok;
3154 94 push @item, $_tok;
3155
3156 }
3157  
3158 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [mailboxname]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3159 Parse::RecDescent::_tracefirst($text),
3160 q{addressstruct},
3161 $tracelevel)
3162 if defined $::RD_TRACE;
3163 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3164 94 $expectation->is(q{mailboxname})->at($text);
3165 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::mailboxname($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = mailboxname($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 94 94
3166 {
3167
3168 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [mailboxname]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3169 Parse::RecDescent::_tracefirst($text),
3170 q{addressstruct},
3171 $tracelevel)
3172 if defined $::RD_TRACE;
3173 0 $expectation->failed();
3174 0 last;
3175 }
3176 94 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [mailboxname]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3177 . $_tok . q{]},
3178  
3179 Parse::RecDescent::_tracefirst($text),
3180 q{addressstruct},
3181 $tracelevel)
3182 if defined $::RD_TRACE;
3183 94 $item{q{mailboxname}} = $_tok;
3184 94 push @item, $_tok;
3185
3186 }
3187  
3188 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [hostname]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3189 Parse::RecDescent::_tracefirst($text),
3190 q{addressstruct},
3191 $tracelevel)
3192 if defined $::RD_TRACE;
3193 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3194 94 $expectation->is(q{hostname})->at($text);
3195 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::hostname($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = hostname($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 94 94
3196 {
3197
3198 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [hostname]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3199 Parse::RecDescent::_tracefirst($text),
3200 q{addressstruct},
3201 $tracelevel)
3202 if defined $::RD_TRACE;
3203 0 $expectation->failed();
3204 0 last;
3205 }
3206 94 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [hostname]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3207 . $_tok . q{]},
3208  
3209 Parse::RecDescent::_tracefirst($text),
3210 q{addressstruct},
3211 $tracelevel)
3212 if defined $::RD_TRACE;
3213 94 $item{q{hostname}} = $_tok;
3214 94 push @item, $_tok;
3215
3216 }
3217  
3218 94 ▶ Parse::RecDescent::_trace(q{Trying terminal: [')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3219 Parse::RecDescent::_tracefirst($text),
3220 q{addressstruct},
3221 $tracelevel)
3222 if defined $::RD_TRACE;
3223 94 undef $lastsep;
3224 94 $expectation->is(q{')'})->at($text);
3225
3226  
3227 94 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = ")"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 94 94
Condition36%4/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
0094
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0094
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 }
!ll&&!rl&&r
0094
($lastsep = $1) && ''
!ll
940
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = ")"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table20%1/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = ")"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
3228 substr($text,0,length($_tok)) eq $_tok and
3229 94 do { substr($text,0,length($_tok)) = ""; 1; }
3230 )
3231 {
3232 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
3233
3234 0 $expectation->failed();
3235 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3236 Parse::RecDescent::_tracefirst($text))
3237 if defined $::RD_TRACE;
3238 0 last;
3239 }
3240 94 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3241 . $_tok . q{])},
3242 Parse::RecDescent::_tracefirst($text))
3243 if defined $::RD_TRACE;
3244 94 push @item, $item{__STRING2__}=$_tok;
3245
3246  
3247 94 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3248 Parse::RecDescent::_tracefirst($text),
3249 q{addressstruct},
3250 $tracelevel)
3251 if defined $::RD_TRACE;
3252
3253  
3254 94 ▶ $_tok = ($_noactions) ? 0 : do { bless { personalname => $item{personalname}
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 94 94
3255 , sourceroute => $item{sourceroute}
3256 , mailboxname => $item{mailboxname}
3257 , hostname => $item{hostname}
3258 94 }, 'Mail::IMAPClient::BodyStructure::Address';
3259 };
3260 94 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 94 94
3261 {
3262 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3263 if defined $::RD_TRACE;
3264 0 last;
3265 }
3266 94 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3267 . $_tok . q{])},
3268 Parse::RecDescent::_tracefirst($text))
3269 if defined $::RD_TRACE;
3270 94 push @item, $_tok;
3271 94 $item{__ACTION1__}=$_tok;
3272
3273  
3274 94 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['(' personalname sourceroute mailboxname hostname ')']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3275 Parse::RecDescent::_tracefirst($text),
3276 q{addressstruct},
3277 $tracelevel)
3278 if defined $::RD_TRACE;
3279  
3280  
3281  
3282 94 $_matched = 1;
3283 94 last;
3284 }
3285  
3286 splice
3287 188 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 94 94 188
3288
3289 188 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 94 94 188
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
94094
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
3290 {
3291 94 splice @{$thisparser->{deferred}}, $def_at;
3292
3293  
3294 94 $_[1] = $text; # NOT SURE THIS IS NEEDED
3295 94 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
3296 Parse::RecDescent::_tracefirst($_[1]),
3297 q{addressstruct},
3298 $tracelevel)
3299 if defined $::RD_TRACE;
3300 94 return undef;
3301 }
3302 94 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 94 94
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0940
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
3303 {
3304 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3305 q{addressstruct},
3306 $tracelevel)
3307 if defined $::RD_TRACE;
3308 0 $return = $score_return;
3309 }
3310 94 splice @{$thisparser->{errors}}, $err_at;
3311 94 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 94 0 94
3312 94 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 94 94
3313 {
3314 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3315 $return . q{])}, "",
3316 q{addressstruct},
3317 $tracelevel);
3318 0 Parse::RecDescent::_trace(q{(consumed: [} .
3319 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3320 Parse::RecDescent::_tracefirst($text),
3321 , q{addressstruct},
3322 $tracelevel)
3323 }
3324 94 $_[1] = $text;
3325 94 return $return;
3326 }
3327  
3328 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3329 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::basicfields
3330 53 ▶{
Subroutine basicfields: called CC=47 SCAR=50.4
3331 53 my $thisparser = $_[0];
3332 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3333 53 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
530
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
3334 53 $ERRORS = 0;
3335 53 my $thisrule = $thisparser->{"rules"}{"basicfields"};
3336  
3337 53 ▶ Parse::RecDescent::_trace(q{Trying rule: [basicfields]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3338 Parse::RecDescent::_tracefirst($_[1]),
3339 q{basicfields},
3340 $tracelevel)
3341 if defined $::RD_TRACE;
3342  
3343 53 my $def_at = @{$thisparser->{deferred}};
3344 53 my $err_at = @{$thisparser->{errors}};
3345  
3346 53 my $score;
3347 my $score_return;
3348 53 my $_tok;
3349 53 my $return = undef;
3350 53 my $_matched=0;
3351 53 my $commit=0;
3352 53 my @item = ();
3353 53 my %item = ();
3354 53 my $repeating = $_[2];
3355 53 my $_noactions = $_[3];
3356 53 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 53 0 53
3357 53 my $_itempos = $_[5];
3358 53 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 53 0 53
3359 53 my $text;
3360 my $lastsep;
3361 53 my $current_match;
3362 53 my $expectation = new Parse::RecDescent::Expectation(q{bodysubtype});
3363 53 $expectation->at($_[1]);
3364
3365 53 my $thisline;
3366 53 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
3367  
3368
3369  
3370 53 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 53 0 53
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0053
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3371 {
3372
3373 53 ▶ Parse::RecDescent::_trace(q{Trying production: [bodysubtype bodyparms bodyid bodydesc bodyenc bodysize]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3374 Parse::RecDescent::_tracefirst($_[1]),
3375 q{basicfields},
3376 $tracelevel)
3377 if defined $::RD_TRACE;
3378 53 my $thisprod = $thisrule->{"prods"}[0];
3379 53 $text = $_[1];
3380 53 my $_savetext;
3381 53 @item = (q{basicfields});
3382 53 %item = (__RULE__ => q{basicfields});
3383 53 my $repcount = 0;
3384  
3385  
3386 53 ▶ Parse::RecDescent::_trace(q{Trying subrule: [bodysubtype]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3387 Parse::RecDescent::_tracefirst($text),
3388 q{basicfields},
3389 $tracelevel)
3390 if defined $::RD_TRACE;
3391 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3392 53 $expectation->is(q{})->at($text);
3393 53 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodysubtype($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = bodysubtype($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 53 53
3394 {
3395
3396 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [bodysubtype]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3397 Parse::RecDescent::_tracefirst($text),
3398 q{basicfields},
3399 $tracelevel)
3400 if defined $::RD_TRACE;
3401 0 $expectation->failed();
3402 0 last;
3403 }
3404 53 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [bodysubtype]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3405 . $_tok . q{]},
3406  
3407 Parse::RecDescent::_tracefirst($text),
3408 q{basicfields},
3409 $tracelevel)
3410 if defined $::RD_TRACE;
3411 53 $item{q{bodysubtype}} = $_tok;
3412 53 push @item, $_tok;
3413
3414 }
3415  
3416 53 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyparms]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3417 Parse::RecDescent::_tracefirst($text),
3418 q{basicfields},
3419 $tracelevel)
3420 if defined $::RD_TRACE;
3421 53 $expectation->is(q{bodyparms})->at($text);
3422
3423 53 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyparms, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyparms, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 53 53
3424 {
3425 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyparms]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3426 Parse::RecDescent::_tracefirst($text),
3427 q{basicfields},
3428 $tracelevel)
3429 if defined $::RD_TRACE;
3430 0 last;
3431 }
3432 53 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyparms]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3433 . @$_tok . q{ times)},
3434  
3435 Parse::RecDescent::_tracefirst($text),
3436 q{basicfields},
3437 $tracelevel)
3438 if defined $::RD_TRACE;
3439 53 $item{q{bodyparms(?)}} = $_tok;
3440 53 push @item, $_tok;
3441
3442  
3443  
3444 53 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyid]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3445 Parse::RecDescent::_tracefirst($text),
3446 q{basicfields},
3447 $tracelevel)
3448 if defined $::RD_TRACE;
3449 53 $expectation->is(q{bodyid})->at($text);
3450
3451 53 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyid, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyid, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 53 53
3452 {
3453 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyid]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3454 Parse::RecDescent::_tracefirst($text),
3455 q{basicfields},
3456 $tracelevel)
3457 if defined $::RD_TRACE;
3458 0 last;
3459 }
3460 53 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyid]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3461 . @$_tok . q{ times)},
3462  
3463 Parse::RecDescent::_tracefirst($text),
3464 q{basicfields},
3465 $tracelevel)
3466 if defined $::RD_TRACE;
3467 53 $item{q{bodyid(?)}} = $_tok;
3468 53 push @item, $_tok;
3469
3470  
3471  
3472 53 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodydesc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3473 Parse::RecDescent::_tracefirst($text),
3474 q{basicfields},
3475 $tracelevel)
3476 if defined $::RD_TRACE;
3477 53 $expectation->is(q{bodydesc})->at($text);
3478
3479 53 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodydesc, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodydesc, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 53 53
3480 {
3481 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodydesc]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3482 Parse::RecDescent::_tracefirst($text),
3483 q{basicfields},
3484 $tracelevel)
3485 if defined $::RD_TRACE;
3486 0 last;
3487 }
3488 53 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodydesc]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3489 . @$_tok . q{ times)},
3490  
3491 Parse::RecDescent::_tracefirst($text),
3492 q{basicfields},
3493 $tracelevel)
3494 if defined $::RD_TRACE;
3495 53 $item{q{bodydesc(?)}} = $_tok;
3496 53 push @item, $_tok;
3497
3498  
3499  
3500 53 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyenc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3501 Parse::RecDescent::_tracefirst($text),
3502 q{basicfields},
3503 $tracelevel)
3504 if defined $::RD_TRACE;
3505 53 $expectation->is(q{bodyenc})->at($text);
3506
3507 53 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyenc, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyenc, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 53 53
3508 {
3509 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyenc]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3510 Parse::RecDescent::_tracefirst($text),
3511 q{basicfields},
3512 $tracelevel)
3513 if defined $::RD_TRACE;
3514 0 last;
3515 }
3516 53 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyenc]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3517 . @$_tok . q{ times)},
3518  
3519 Parse::RecDescent::_tracefirst($text),
3520 q{basicfields},
3521 $tracelevel)
3522 if defined $::RD_TRACE;
3523 53 $item{q{bodyenc(?)}} = $_tok;
3524 53 push @item, $_tok;
3525
3526  
3527  
3528 53 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodysize]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3529 Parse::RecDescent::_tracefirst($text),
3530 q{basicfields},
3531 $tracelevel)
3532 if defined $::RD_TRACE;
3533 53 $expectation->is(q{bodysize})->at($text);
3534
3535 53 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodysize, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodysize, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 53 53
3536 {
3537 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodysize]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3538 Parse::RecDescent::_tracefirst($text),
3539 q{basicfields},
3540 $tracelevel)
3541 if defined $::RD_TRACE;
3542 0 last;
3543 }
3544 53 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodysize]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3545 . @$_tok . q{ times)},
3546  
3547 Parse::RecDescent::_tracefirst($text),
3548 q{basicfields},
3549 $tracelevel)
3550 if defined $::RD_TRACE;
3551 53 $item{q{bodysize(?)}} = $_tok;
3552 53 push @item, $_tok;
3553
3554  
3555  
3556 53 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3557 Parse::RecDescent::_tracefirst($text),
3558 q{basicfields},
3559 $tracelevel)
3560 if defined $::RD_TRACE;
3561
3562  
3563 53 ▶ $_tok = ($_noactions) ? 0 : do { $return = { bodysubtype => $item{bodysubtype} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 53 53
3564 53 take_optional_items($return, \%item,
3565 qw/bodyparms bodyid bodydesc bodyenc bodysize/);
3566 53 1;
3567 };
3568 53 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 53 53
3569 {
3570 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3571 if defined $::RD_TRACE;
3572 0 last;
3573 }
3574 53 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3575 . $_tok . q{])},
3576 Parse::RecDescent::_tracefirst($text))
3577 if defined $::RD_TRACE;
3578 53 push @item, $_tok;
3579 53 $item{__ACTION1__}=$_tok;
3580
3581  
3582 53 ▶ Parse::RecDescent::_trace(q{>>Matched production: [bodysubtype bodyparms bodyid bodydesc bodyenc bodysize]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
3583 Parse::RecDescent::_tracefirst($text),
3584 q{basicfields},
3585 $tracelevel)
3586 if defined $::RD_TRACE;
3587  
3588  
3589  
3590 53 $_matched = 1;
3591 53 last;
3592 }
3593  
3594 splice
3595 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 53 53
3596
3597 53 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 53 53
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
5300
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
3598 {
3599 0 splice @{$thisparser->{deferred}}, $def_at;
3600
3601  
3602 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
3603 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3604 Parse::RecDescent::_tracefirst($_[1]),
3605 q{basicfields},
3606 $tracelevel)
3607 if defined $::RD_TRACE;
3608 0 return undef;
3609 }
3610 53 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 53 53
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
5300
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
3611 {
3612 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3613 q{basicfields},
3614 $tracelevel)
3615 if defined $::RD_TRACE;
3616 0 $return = $score_return;
3617 }
3618 53 splice @{$thisparser->{errors}}, $err_at;
3619 53 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 53 53
3620 53 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 53 53
3621 {
3622 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3623 $return . q{])}, "",
3624 q{basicfields},
3625 $tracelevel);
3626 0 Parse::RecDescent::_trace(q{(consumed: [} .
3627 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3628 Parse::RecDescent::_tracefirst($text),
3629 , q{basicfields},
3630 $tracelevel)
3631 }
3632 53 $_[1] = $text;
3633 53 return $return;
3634 }
3635  
3636 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3637 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bcc
3638 24 ▶{
Subroutine bcc: called CC=22 SCAR=36.8
3639 24 my $thisparser = $_[0];
3640 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3641 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
240
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
3642 24 $ERRORS = 0;
3643 24 my $thisrule = $thisparser->{"rules"}{"bcc"};
3644  
3645 24 ▶ Parse::RecDescent::_trace(q{Trying rule: [bcc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3646 Parse::RecDescent::_tracefirst($_[1]),
3647 q{bcc},
3648 $tracelevel)
3649 if defined $::RD_TRACE;
3650  
3651 24 my $def_at = @{$thisparser->{deferred}};
3652 24 my $err_at = @{$thisparser->{errors}};
3653  
3654 24 my $score;
3655 my $score_return;
3656 24 my $_tok;
3657 24 my $return = undef;
3658 24 my $_matched=0;
3659 24 my $commit=0;
3660 24 my @item = ();
3661 24 my %item = ();
3662 24 my $repeating = $_[2];
3663 24 my $_noactions = $_[3];
3664 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
3665 24 my $_itempos = $_[5];
3666 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 24 0 24
3667 24 my $text;
3668 my $lastsep;
3669 24 my $current_match;
3670 24 my $expectation = new Parse::RecDescent::Expectation(q{ADDRESSES});
3671 24 $expectation->at($_[1]);
3672
3673 24 my $thisline;
3674 24 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
3675  
3676
3677  
3678 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3679 {
3680
3681 24 ▶ Parse::RecDescent::_trace(q{Trying production: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3682 Parse::RecDescent::_tracefirst($_[1]),
3683 q{bcc},
3684 $tracelevel)
3685 if defined $::RD_TRACE;
3686 24 my $thisprod = $thisrule->{"prods"}[0];
3687 24 $text = $_[1];
3688 24 my $_savetext;
3689 24 @item = (q{bcc});
3690 24 %item = (__RULE__ => q{bcc});
3691 24 my $repcount = 0;
3692  
3693  
3694 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3695 Parse::RecDescent::_tracefirst($text),
3696 q{bcc},
3697 $tracelevel)
3698 if defined $::RD_TRACE;
3699 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3700 24 $expectation->is(q{})->at($text);
3701 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::ADDRESSES($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = ADDRESSES($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
3702 {
3703
3704 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [ADDRESSES]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3705 Parse::RecDescent::_tracefirst($text),
3706 q{bcc},
3707 $tracelevel)
3708 if defined $::RD_TRACE;
3709 0 $expectation->failed();
3710 0 last;
3711 }
3712 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [ADDRESSES]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3713 . $_tok . q{]},
3714  
3715 Parse::RecDescent::_tracefirst($text),
3716 q{bcc},
3717 $tracelevel)
3718 if defined $::RD_TRACE;
3719 24 $item{q{ADDRESSES}} = $_tok;
3720 24 push @item, $_tok;
3721
3722 }
3723  
3724 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [ADDRESSES]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3725 Parse::RecDescent::_tracefirst($text),
3726 q{bcc},
3727 $tracelevel)
3728 if defined $::RD_TRACE;
3729  
3730  
3731  
3732 24 $_matched = 1;
3733 24 last;
3734 }
3735  
3736 splice
3737 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 24 24
3738
3739 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
3740 {
3741 0 splice @{$thisparser->{deferred}}, $def_at;
3742
3743  
3744 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
3745 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3746 Parse::RecDescent::_tracefirst($_[1]),
3747 q{bcc},
3748 $tracelevel)
3749 if defined $::RD_TRACE;
3750 0 return undef;
3751 }
3752 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0240
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
3753 {
3754 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3755 q{bcc},
3756 $tracelevel)
3757 if defined $::RD_TRACE;
3758 0 $return = $score_return;
3759 }
3760 24 splice @{$thisparser->{errors}}, $err_at;
3761 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
3762 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
3763 {
3764 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3765 $return . q{])}, "",
3766 q{bcc},
3767 $tracelevel);
3768 0 Parse::RecDescent::_trace(q{(consumed: [} .
3769 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3770 Parse::RecDescent::_tracefirst($text),
3771 , q{bcc},
3772 $tracelevel)
3773 }
3774 24 $_[1] = $text;
3775 24 return $return;
3776 }
3777  
3778 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3779 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyMD5
3780 74 ▶{
Subroutine bodyMD5: called CC=31 SCAR=36.1
3781 74 my $thisparser = $_[0];
3782 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3783 74 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
740
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
3784 74 $ERRORS = 0;
3785 74 my $thisrule = $thisparser->{"rules"}{"bodyMD5"};
3786  
3787 74 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodyMD5]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
3788 Parse::RecDescent::_tracefirst($_[1]),
3789 q{bodyMD5},
3790 $tracelevel)
3791 if defined $::RD_TRACE;
3792  
3793 74 my $def_at = @{$thisparser->{deferred}};
3794 74 my $err_at = @{$thisparser->{errors}};
3795  
3796 74 my $score;
3797 my $score_return;
3798 74 my $_tok;
3799 74 my $return = undef;
3800 74 my $_matched=0;
3801 74 my $commit=0;
3802 74 my @item = ();
3803 74 my %item = ();
3804 74 my $repeating = $_[2];
3805 74 my $_noactions = $_[3];
3806 74 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 74 0 74
3807 74 my $_itempos = $_[5];
3808 74 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 74 0 74
3809 74 my $text;
3810 my $lastsep;
3811 74 my $current_match;
3812 74 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING});
3813 74 $expectation->at($_[1]);
3814
3815 74 my $thisline;
3816 74 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
3817  
3818
3819  
3820 74 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 74 0 74
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0074
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3821 {
3822
3823 74 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
3824 Parse::RecDescent::_tracefirst($_[1]),
3825 q{bodyMD5},
3826 $tracelevel)
3827 if defined $::RD_TRACE;
3828 74 my $thisprod = $thisrule->{"prods"}[0];
3829 74 $text = $_[1];
3830 74 my $_savetext;
3831 74 @item = (q{bodyMD5});
3832 74 %item = (__RULE__ => q{bodyMD5});
3833 74 my $repcount = 0;
3834  
3835  
3836 74 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
3837 Parse::RecDescent::_tracefirst($text),
3838 q{bodyMD5},
3839 $tracelevel)
3840 if defined $::RD_TRACE;
3841 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3842 74 $expectation->is(q{})->at($text);
3843 74 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 8 66 74
3844 {
3845
3846 8 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3847 Parse::RecDescent::_tracefirst($text),
3848 q{bodyMD5},
3849 $tracelevel)
3850 if defined $::RD_TRACE;
3851 8 $expectation->failed();
3852 8 last;
3853 }
3854 66 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
3855 . $_tok . q{]},
3856  
3857 Parse::RecDescent::_tracefirst($text),
3858 q{bodyMD5},
3859 $tracelevel)
3860 if defined $::RD_TRACE;
3861 66 $item{q{NIL}} = $_tok;
3862 66 push @item, $_tok;
3863
3864 }
3865  
3866 66 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
3867 Parse::RecDescent::_tracefirst($text),
3868 q{bodyMD5},
3869 $tracelevel)
3870 if defined $::RD_TRACE;
3871  
3872  
3873  
3874 66 $_matched = 1;
3875 66 last;
3876 }
3877  
3878 splice
3879 74 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 8 66 74
3880
3881 74 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 8 66 74
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
6608
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3882 {
3883
3884 8 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3885 Parse::RecDescent::_tracefirst($_[1]),
3886 q{bodyMD5},
3887 $tracelevel)
3888 if defined $::RD_TRACE;
3889 8 my $thisprod = $thisrule->{"prods"}[1];
3890 8 $text = $_[1];
3891 8 my $_savetext;
3892 8 @item = (q{bodyMD5});
3893 8 %item = (__RULE__ => q{bodyMD5});
3894 8 my $repcount = 0;
3895  
3896  
3897 8 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3898 Parse::RecDescent::_tracefirst($text),
3899 q{bodyMD5},
3900 $tracelevel)
3901 if defined $::RD_TRACE;
3902 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3903 8 $expectation->is(q{})->at($text);
3904 8 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 7 1 8
3905 {
3906
3907 7 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 7 7
3908 Parse::RecDescent::_tracefirst($text),
3909 q{bodyMD5},
3910 $tracelevel)
3911 if defined $::RD_TRACE;
3912 7 $expectation->failed();
3913 7 last;
3914 }
3915 1 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
3916 . $_tok . q{]},
3917  
3918 Parse::RecDescent::_tracefirst($text),
3919 q{bodyMD5},
3920 $tracelevel)
3921 if defined $::RD_TRACE;
3922 1 $item{q{STRING}} = $_tok;
3923 1 push @item, $_tok;
3924
3925 }
3926  
3927 1 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
3928 Parse::RecDescent::_tracefirst($text),
3929 q{bodyMD5},
3930 $tracelevel)
3931 if defined $::RD_TRACE;
3932  
3933  
3934  
3935 1 $_matched = 1;
3936 1 last;
3937 }
3938  
3939 splice
3940 74 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 7 67 74
3941
3942 74 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 7 67 74
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
6707
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
3943 {
3944 7 splice @{$thisparser->{deferred}}, $def_at;
3945
3946  
3947 7 $_[1] = $text; # NOT SURE THIS IS NEEDED
3948 7 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 7 7
3949 Parse::RecDescent::_tracefirst($_[1]),
3950 q{bodyMD5},
3951 $tracelevel)
3952 if defined $::RD_TRACE;
3953 7 return undef;
3954 }
3955 67 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 67 67
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0670
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
3956 {
3957 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3958 q{bodyMD5},
3959 $tracelevel)
3960 if defined $::RD_TRACE;
3961 0 $return = $score_return;
3962 }
3963 67 splice @{$thisparser->{errors}}, $err_at;
3964 67 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 67 0 67
3965 67 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 67 67
3966 {
3967 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3968 $return . q{])}, "",
3969 q{bodyMD5},
3970 $tracelevel);
3971 0 Parse::RecDescent::_trace(q{(consumed: [} .
3972 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3973 Parse::RecDescent::_tracefirst($text),
3974 , q{bodyMD5},
3975 $tracelevel)
3976 }
3977 67 $_[1] = $text;
3978 67 return $return;
3979 }
3980  
3981 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3982 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodydesc
3983 74 ▶{
Subroutine bodydesc: called CC=37 SCAR=42.9
3984 74 my $thisparser = $_[0];
3985 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3986 74 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
740
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
3987 74 $ERRORS = 0;
3988 74 my $thisrule = $thisparser->{"rules"}{"bodydesc"};
3989  
3990 74 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodydesc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
3991 Parse::RecDescent::_tracefirst($_[1]),
3992 q{bodydesc},
3993 $tracelevel)
3994 if defined $::RD_TRACE;
3995  
3996 74 my $def_at = @{$thisparser->{deferred}};
3997 74 my $err_at = @{$thisparser->{errors}};
3998  
3999 74 my $score;
4000 my $score_return;
4001 74 my $_tok;
4002 74 my $return = undef;
4003 74 my $_matched=0;
4004 74 my $commit=0;
4005 74 my @item = ();
4006 74 my %item = ();
4007 74 my $repeating = $_[2];
4008 74 my $_noactions = $_[3];
4009 74 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 74 0 74
4010 74 my $_itempos = $_[5];
4011 74 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 74 0 74
4012 74 my $text;
4013 my $lastsep;
4014 74 my $current_match;
4015 74 my $expectation = new Parse::RecDescent::Expectation(q{/[()]/, or STRING});
4016 74 $expectation->at($_[1]);
4017
4018 74 my $thisline;
4019 74 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4020  
4021
4022  
4023 74 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 74 0 74
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0074
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4024 {
4025
4026 74 ▶ Parse::RecDescent::_trace(q{Trying production: [/[()]/ NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4027 Parse::RecDescent::_tracefirst($_[1]),
4028 q{bodydesc},
4029 $tracelevel)
4030 if defined $::RD_TRACE;
4031 74 my $thisprod = $thisrule->{"prods"}[0];
4032 74 $text = $_[1];
4033 74 my $_savetext;
4034 74 @item = (q{bodydesc});
4035 74 %item = (__RULE__ => q{bodydesc});
4036 74 my $repcount = 0;
4037  
4038  
4039 74 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/[()]/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4040 q{bodydesc},
4041 $tracelevel)
4042 if defined $::RD_TRACE;
4043 74 undef $lastsep;
4044 74 $expectation->is(q{})->at($text);
4045 74 $_savetext = $text;
4046  
4047 74 ▶ if ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[()])/)
Branch: 1 branch
BranchTrueFalseTotal
if ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[()])/) 0 74 74
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[()])/
!ll&&!rl&&r
0740
($lastsep = $1) && ''
!ll
074
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[()])/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[()])/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[()])/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
4048 {
4049 0 $text = $_savetext;
4050 0 $expectation->failed();
4051 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4052 Parse::RecDescent::_tracefirst($text))
4053 if defined $::RD_TRACE;
4054  
4055 0 last;
4056 }
4057 74 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4058 74 substr($text,0,length($current_match),q{});
4059 74 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4060 . $current_match . q{])},
4061 Parse::RecDescent::_tracefirst($text))
4062 if defined $::RD_TRACE;
4063 74 push @item, $item{__PATTERN1__}=$current_match;
4064 74 $text = $_savetext;
4065  
4066 74 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4067 Parse::RecDescent::_tracefirst($text),
4068 q{bodydesc},
4069 $tracelevel)
4070 if defined $::RD_TRACE;
4071 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4072 74 $expectation->is(q{NIL})->at($text);
4073 74 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 21 53 74
4074 {
4075
4076 21 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
4077 Parse::RecDescent::_tracefirst($text),
4078 q{bodydesc},
4079 $tracelevel)
4080 if defined $::RD_TRACE;
4081 21 $expectation->failed();
4082 21 last;
4083 }
4084 53 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
4085 . $_tok . q{]},
4086  
4087 Parse::RecDescent::_tracefirst($text),
4088 q{bodydesc},
4089 $tracelevel)
4090 if defined $::RD_TRACE;
4091 53 $item{q{NIL}} = $_tok;
4092 53 push @item, $_tok;
4093
4094 }
4095  
4096 53 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/[()]/ NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
4097 Parse::RecDescent::_tracefirst($text),
4098 q{bodydesc},
4099 $tracelevel)
4100 if defined $::RD_TRACE;
4101  
4102  
4103  
4104 53 $_matched = 1;
4105 53 last;
4106 }
4107  
4108 splice
4109 74 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 21 53 74
4110
4111 74 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 21 53 74
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
53021
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4112 {
4113
4114 21 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
4115 Parse::RecDescent::_tracefirst($_[1]),
4116 q{bodydesc},
4117 $tracelevel)
4118 if defined $::RD_TRACE;
4119 21 my $thisprod = $thisrule->{"prods"}[1];
4120 21 $text = $_[1];
4121 21 my $_savetext;
4122 21 @item = (q{bodydesc});
4123 21 %item = (__RULE__ => q{bodydesc});
4124 21 my $repcount = 0;
4125  
4126  
4127 21 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
4128 Parse::RecDescent::_tracefirst($text),
4129 q{bodydesc},
4130 $tracelevel)
4131 if defined $::RD_TRACE;
4132 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4133 21 $expectation->is(q{})->at($text);
4134 21 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 21 21
4135 {
4136
4137 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4138 Parse::RecDescent::_tracefirst($text),
4139 q{bodydesc},
4140 $tracelevel)
4141 if defined $::RD_TRACE;
4142 0 $expectation->failed();
4143 0 last;
4144 }
4145 21 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
4146 . $_tok . q{]},
4147  
4148 Parse::RecDescent::_tracefirst($text),
4149 q{bodydesc},
4150 $tracelevel)
4151 if defined $::RD_TRACE;
4152 21 $item{q{STRING}} = $_tok;
4153 21 push @item, $_tok;
4154
4155 }
4156  
4157 21 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
4158 Parse::RecDescent::_tracefirst($text),
4159 q{bodydesc},
4160 $tracelevel)
4161 if defined $::RD_TRACE;
4162  
4163  
4164  
4165 21 $_matched = 1;
4166 21 last;
4167 }
4168  
4169 splice
4170 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 74 74
4171
4172 74 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 74 74
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
7400
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
4173 {
4174 0 splice @{$thisparser->{deferred}}, $def_at;
4175
4176  
4177 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
4178 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4179 Parse::RecDescent::_tracefirst($_[1]),
4180 q{bodydesc},
4181 $tracelevel)
4182 if defined $::RD_TRACE;
4183 0 return undef;
4184 }
4185 74 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 74 74
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0740
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
4186 {
4187 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4188 q{bodydesc},
4189 $tracelevel)
4190 if defined $::RD_TRACE;
4191 0 $return = $score_return;
4192 }
4193 74 splice @{$thisparser->{errors}}, $err_at;
4194 74 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 74 0 74
4195 74 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 74 74
4196 {
4197 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
4198 $return . q{])}, "",
4199 q{bodydesc},
4200 $tracelevel);
4201 0 Parse::RecDescent::_trace(q{(consumed: [} .
4202 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
4203 Parse::RecDescent::_tracefirst($text),
4204 , q{bodydesc},
4205 $tracelevel)
4206 }
4207 74 $_[1] = $text;
4208 74 return $return;
4209 }
4210  
4211 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4212 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodydisp
4213 105 ▶{
Subroutine bodydisp: called CC=31 SCAR=36.1
4214 105 my $thisparser = $_[0];
4215 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4216 105 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1050
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
4217 105 $ERRORS = 0;
4218 105 my $thisrule = $thisparser->{"rules"}{"bodydisp"};
4219  
4220 105 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodydisp]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
4221 Parse::RecDescent::_tracefirst($_[1]),
4222 q{bodydisp},
4223 $tracelevel)
4224 if defined $::RD_TRACE;
4225  
4226 105 my $def_at = @{$thisparser->{deferred}};
4227 105 my $err_at = @{$thisparser->{errors}};
4228  
4229 105 my $score;
4230 my $score_return;
4231 105 my $_tok;
4232 105 my $return = undef;
4233 105 my $_matched=0;
4234 105 my $commit=0;
4235 105 my @item = ();
4236 105 my %item = ();
4237 105 my $repeating = $_[2];
4238 105 my $_noactions = $_[3];
4239 105 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 105 0 105
4240 105 my $_itempos = $_[5];
4241 105 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 105 0 105
4242 105 my $text;
4243 my $lastsep;
4244 105 my $current_match;
4245 105 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or KVPAIRS});
4246 105 $expectation->at($_[1]);
4247
4248 105 my $thisline;
4249 105 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4250  
4251
4252  
4253 105 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 105 0 105
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00105
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4254 {
4255
4256 105 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
4257 Parse::RecDescent::_tracefirst($_[1]),
4258 q{bodydisp},
4259 $tracelevel)
4260 if defined $::RD_TRACE;
4261 105 my $thisprod = $thisrule->{"prods"}[0];
4262 105 $text = $_[1];
4263 105 my $_savetext;
4264 105 @item = (q{bodydisp});
4265 105 %item = (__RULE__ => q{bodydisp});
4266 105 my $repcount = 0;
4267  
4268  
4269 105 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
4270 Parse::RecDescent::_tracefirst($text),
4271 q{bodydisp},
4272 $tracelevel)
4273 if defined $::RD_TRACE;
4274 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4275 105 $expectation->is(q{})->at($text);
4276 105 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 38 67 105
4277 {
4278
4279 38 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
4280 Parse::RecDescent::_tracefirst($text),
4281 q{bodydisp},
4282 $tracelevel)
4283 if defined $::RD_TRACE;
4284 38 $expectation->failed();
4285 38 last;
4286 }
4287 67 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 67 67
4288 . $_tok . q{]},
4289  
4290 Parse::RecDescent::_tracefirst($text),
4291 q{bodydisp},
4292 $tracelevel)
4293 if defined $::RD_TRACE;
4294 67 $item{q{NIL}} = $_tok;
4295 67 push @item, $_tok;
4296
4297 }
4298  
4299 67 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 67 67
4300 Parse::RecDescent::_tracefirst($text),
4301 q{bodydisp},
4302 $tracelevel)
4303 if defined $::RD_TRACE;
4304  
4305  
4306  
4307 67 $_matched = 1;
4308 67 last;
4309 }
4310  
4311 splice
4312 105 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 38 67 105
4313
4314 105 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 38 67 105
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
67038
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4315 {
4316
4317 38 ▶ Parse::RecDescent::_trace(q{Trying production: [KVPAIRS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
4318 Parse::RecDescent::_tracefirst($_[1]),
4319 q{bodydisp},
4320 $tracelevel)
4321 if defined $::RD_TRACE;
4322 38 my $thisprod = $thisrule->{"prods"}[1];
4323 38 $text = $_[1];
4324 38 my $_savetext;
4325 38 @item = (q{bodydisp});
4326 38 %item = (__RULE__ => q{bodydisp});
4327 38 my $repcount = 0;
4328  
4329  
4330 38 ▶ Parse::RecDescent::_trace(q{Trying subrule: [KVPAIRS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
4331 Parse::RecDescent::_tracefirst($text),
4332 q{bodydisp},
4333 $tracelevel)
4334 if defined $::RD_TRACE;
4335 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4336 38 $expectation->is(q{})->at($text);
4337 38 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::KVPAIRS($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = KVPAIRS($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 10 28 38
4338 {
4339
4340 10 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [KVPAIRS]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
4341 Parse::RecDescent::_tracefirst($text),
4342 q{bodydisp},
4343 $tracelevel)
4344 if defined $::RD_TRACE;
4345 10 $expectation->failed();
4346 10 last;
4347 }
4348 28 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [KVPAIRS]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 28 28
4349 . $_tok . q{]},
4350  
4351 Parse::RecDescent::_tracefirst($text),
4352 q{bodydisp},
4353 $tracelevel)
4354 if defined $::RD_TRACE;
4355 28 $item{q{KVPAIRS}} = $_tok;
4356 28 push @item, $_tok;
4357
4358 }
4359  
4360 28 ▶ Parse::RecDescent::_trace(q{>>Matched production: [KVPAIRS]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 28 28
4361 Parse::RecDescent::_tracefirst($text),
4362 q{bodydisp},
4363 $tracelevel)
4364 if defined $::RD_TRACE;
4365  
4366  
4367  
4368 28 $_matched = 1;
4369 28 last;
4370 }
4371  
4372 splice
4373 105 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 10 95 105
4374
4375 105 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 10 95 105
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
95010
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
4376 {
4377 10 splice @{$thisparser->{deferred}}, $def_at;
4378
4379  
4380 10 $_[1] = $text; # NOT SURE THIS IS NEEDED
4381 10 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
4382 Parse::RecDescent::_tracefirst($_[1]),
4383 q{bodydisp},
4384 $tracelevel)
4385 if defined $::RD_TRACE;
4386 10 return undef;
4387 }
4388 95 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 95 95
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0950
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
4389 {
4390 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4391 q{bodydisp},
4392 $tracelevel)
4393 if defined $::RD_TRACE;
4394 0 $return = $score_return;
4395 }
4396 95 splice @{$thisparser->{errors}}, $err_at;
4397 95 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 95 0 95
4398 95 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 95 95
4399 {
4400 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
4401 $return . q{])}, "",
4402 q{bodydisp},
4403 $tracelevel);
4404 0 Parse::RecDescent::_trace(q{(consumed: [} .
4405 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
4406 Parse::RecDescent::_tracefirst($text),
4407 , q{bodydisp},
4408 $tracelevel)
4409 }
4410 95 $_[1] = $text;
4411 95 return $return;
4412 }
4413  
4414 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4415 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyenc
4416 74 ▶{
Subroutine bodyenc: called CC=40 SCAR=52.3
4417 74 my $thisparser = $_[0];
4418 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4419 74 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
740
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
4420 74 $ERRORS = 0;
4421 74 my $thisrule = $thisparser->{"rules"}{"bodyenc"};
4422  
4423 74 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodyenc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4424 Parse::RecDescent::_tracefirst($_[1]),
4425 q{bodyenc},
4426 $tracelevel)
4427 if defined $::RD_TRACE;
4428  
4429 74 my $def_at = @{$thisparser->{deferred}};
4430 74 my $err_at = @{$thisparser->{errors}};
4431  
4432 74 my $score;
4433 my $score_return;
4434 74 my $_tok;
4435 74 my $return = undef;
4436 74 my $_matched=0;
4437 74 my $commit=0;
4438 74 my @item = ();
4439 74 my %item = ();
4440 74 my $repeating = $_[2];
4441 74 my $_noactions = $_[3];
4442 74 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 74 0 74
4443 74 my $_itempos = $_[5];
4444 74 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 74 0 74
4445 74 my $text;
4446 my $lastsep;
4447 74 my $current_match;
4448 74 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING, or KVPAIRS});
4449 74 $expectation->at($_[1]);
4450
4451 74 my $thisline;
4452 74 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4453  
4454
4455  
4456 74 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 74 0 74
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0074
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4457 {
4458
4459 74 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4460 Parse::RecDescent::_tracefirst($_[1]),
4461 q{bodyenc},
4462 $tracelevel)
4463 if defined $::RD_TRACE;
4464 74 my $thisprod = $thisrule->{"prods"}[0];
4465 74 $text = $_[1];
4466 74 my $_savetext;
4467 74 @item = (q{bodyenc});
4468 74 %item = (__RULE__ => q{bodyenc});
4469 74 my $repcount = 0;
4470  
4471  
4472 74 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4473 Parse::RecDescent::_tracefirst($text),
4474 q{bodyenc},
4475 $tracelevel)
4476 if defined $::RD_TRACE;
4477 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4478 74 $expectation->is(q{})->at($text);
4479 74 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 74 0 74
4480 {
4481
4482 74 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4483 Parse::RecDescent::_tracefirst($text),
4484 q{bodyenc},
4485 $tracelevel)
4486 if defined $::RD_TRACE;
4487 74 $expectation->failed();
4488 74 last;
4489 }
4490 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4491 . $_tok . q{]},
4492  
4493 Parse::RecDescent::_tracefirst($text),
4494 q{bodyenc},
4495 $tracelevel)
4496 if defined $::RD_TRACE;
4497 0 $item{q{NIL}} = $_tok;
4498 0 push @item, $_tok;
4499
4500 }
4501  
4502 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4503 Parse::RecDescent::_tracefirst($text),
4504 q{bodyenc},
4505 $tracelevel)
4506 if defined $::RD_TRACE;
4507  
4508  
4509  
4510 0 $_matched = 1;
4511 0 last;
4512 }
4513  
4514 splice
4515 74 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 74 0 74
4516
4517 74 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 74 0 74
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0074
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4518 {
4519
4520 74 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4521 Parse::RecDescent::_tracefirst($_[1]),
4522 q{bodyenc},
4523 $tracelevel)
4524 if defined $::RD_TRACE;
4525 74 my $thisprod = $thisrule->{"prods"}[1];
4526 74 $text = $_[1];
4527 74 my $_savetext;
4528 74 @item = (q{bodyenc});
4529 74 %item = (__RULE__ => q{bodyenc});
4530 74 my $repcount = 0;
4531  
4532  
4533 74 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4534 Parse::RecDescent::_tracefirst($text),
4535 q{bodyenc},
4536 $tracelevel)
4537 if defined $::RD_TRACE;
4538 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4539 74 $expectation->is(q{})->at($text);
4540 74 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 74 74
4541 {
4542
4543 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4544 Parse::RecDescent::_tracefirst($text),
4545 q{bodyenc},
4546 $tracelevel)
4547 if defined $::RD_TRACE;
4548 0 $expectation->failed();
4549 0 last;
4550 }
4551 74 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4552 . $_tok . q{]},
4553  
4554 Parse::RecDescent::_tracefirst($text),
4555 q{bodyenc},
4556 $tracelevel)
4557 if defined $::RD_TRACE;
4558 74 $item{q{STRING}} = $_tok;
4559 74 push @item, $_tok;
4560
4561 }
4562  
4563 74 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
4564 Parse::RecDescent::_tracefirst($text),
4565 q{bodyenc},
4566 $tracelevel)
4567 if defined $::RD_TRACE;
4568  
4569  
4570  
4571 74 $_matched = 1;
4572 74 last;
4573 }
4574  
4575 splice
4576 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 74 74
4577
4578 74 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 0 74 74
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
7400
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4579 {
4580
4581 0 ▶ Parse::RecDescent::_trace(q{Trying production: [KVPAIRS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4582 Parse::RecDescent::_tracefirst($_[1]),
4583 q{bodyenc},
4584 $tracelevel)
4585 if defined $::RD_TRACE;
4586 0 my $thisprod = $thisrule->{"prods"}[2];
4587 0 $text = $_[1];
4588 0 my $_savetext;
4589 0 @item = (q{bodyenc});
4590 0 %item = (__RULE__ => q{bodyenc});
4591 0 my $repcount = 0;
4592  
4593  
4594 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [KVPAIRS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4595 Parse::RecDescent::_tracefirst($text),
4596 q{bodyenc},
4597 $tracelevel)
4598 if defined $::RD_TRACE;
4599 0 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
4600 0 $expectation->is(q{})->at($text);
4601 0 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::KVPAIRS($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = KVPAIRS($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 0 0
4602 {
4603
4604 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [KVPAIRS]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4605 Parse::RecDescent::_tracefirst($text),
4606 q{bodyenc},
4607 $tracelevel)
4608 if defined $::RD_TRACE;
4609 0 $expectation->failed();
4610 0 last;
4611 }
4612 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [KVPAIRS]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4613 . $_tok . q{]},
4614  
4615 Parse::RecDescent::_tracefirst($text),
4616 q{bodyenc},
4617 $tracelevel)
4618 if defined $::RD_TRACE;
4619 0 $item{q{KVPAIRS}} = $_tok;
4620 0 push @item, $_tok;
4621
4622 }
4623  
4624 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [KVPAIRS]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4625 Parse::RecDescent::_tracefirst($text),
4626 q{bodyenc},
4627 $tracelevel)
4628 if defined $::RD_TRACE;
4629  
4630  
4631  
4632 0 $_matched = 1;
4633 0 last;
4634 }
4635  
4636 splice
4637 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 74 74
4638
4639 74 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 74 74
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
7400
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
4640 {
4641 0 splice @{$thisparser->{deferred}}, $def_at;
4642
4643  
4644 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
4645 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4646 Parse::RecDescent::_tracefirst($_[1]),
4647 q{bodyenc},
4648 $tracelevel)
4649 if defined $::RD_TRACE;
4650 0 return undef;
4651 }
4652 74 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 74 74
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0740
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
4653 {
4654 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4655 q{bodyenc},
4656 $tracelevel)
4657 if defined $::RD_TRACE;
4658 0 $return = $score_return;
4659 }
4660 74 splice @{$thisparser->{errors}}, $err_at;
4661 74 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 74 0 74
4662 74 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 74 74
4663 {
4664 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
4665 $return . q{])}, "",
4666 q{bodyenc},
4667 $tracelevel);
4668 0 Parse::RecDescent::_trace(q{(consumed: [} .
4669 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
4670 Parse::RecDescent::_tracefirst($text),
4671 , q{bodyenc},
4672 $tracelevel)
4673 }
4674 74 $_[1] = $text;
4675 74 return $return;
4676 }
4677  
4678 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4679 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyextensions
4680 77 ▶{
Subroutine bodyextensions: called CC=31 SCAR=37.9
4681 77 my $thisparser = $_[0];
4682 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4683 77 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
770
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
4684 77 $ERRORS = 0;
4685 77 my $thisrule = $thisparser->{"rules"}{"bodyextensions"};
4686  
4687 77 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodyextensions]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 77 77
4688 Parse::RecDescent::_tracefirst($_[1]),
4689 q{bodyextensions},
4690 $tracelevel)
4691 if defined $::RD_TRACE;
4692  
4693 77 my $def_at = @{$thisparser->{deferred}};
4694 77 my $err_at = @{$thisparser->{errors}};
4695  
4696 77 my $score;
4697 my $score_return;
4698 77 my $_tok;
4699 77 my $return = undef;
4700 77 my $_matched=0;
4701 77 my $commit=0;
4702 77 my @item = ();
4703 77 my %item = ();
4704 77 my $repeating = $_[2];
4705 77 my $_noactions = $_[3];
4706 77 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 77 0 77
4707 77 my $_itempos = $_[5];
4708 77 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 77 0 77
4709 77 my $text;
4710 my $lastsep;
4711 77 my $current_match;
4712 77 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING});
4713 77 $expectation->at($_[1]);
4714
4715 77 my $thisline;
4716 77 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4717  
4718
4719  
4720 77 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 77 0 77
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0077
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4721 {
4722
4723 77 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 77 77
4724 Parse::RecDescent::_tracefirst($_[1]),
4725 q{bodyextensions},
4726 $tracelevel)
4727 if defined $::RD_TRACE;
4728 77 my $thisprod = $thisrule->{"prods"}[0];
4729 77 $text = $_[1];
4730 77 my $_savetext;
4731 77 @item = (q{bodyextensions});
4732 77 %item = (__RULE__ => q{bodyextensions});
4733 77 my $repcount = 0;
4734  
4735  
4736 77 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 77 77
4737 Parse::RecDescent::_tracefirst($text),
4738 q{bodyextensions},
4739 $tracelevel)
4740 if defined $::RD_TRACE;
4741 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4742 77 $expectation->is(q{})->at($text);
4743 77 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 72 5 77
4744 {
4745
4746 72 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4747 Parse::RecDescent::_tracefirst($text),
4748 q{bodyextensions},
4749 $tracelevel)
4750 if defined $::RD_TRACE;
4751 72 $expectation->failed();
4752 72 last;
4753 }
4754 5 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
4755 . $_tok . q{]},
4756  
4757 Parse::RecDescent::_tracefirst($text),
4758 q{bodyextensions},
4759 $tracelevel)
4760 if defined $::RD_TRACE;
4761 5 $item{q{NIL}} = $_tok;
4762 5 push @item, $_tok;
4763
4764 }
4765  
4766 5 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
4767 Parse::RecDescent::_tracefirst($text),
4768 q{bodyextensions},
4769 $tracelevel)
4770 if defined $::RD_TRACE;
4771  
4772  
4773  
4774 5 $_matched = 1;
4775 5 last;
4776 }
4777  
4778 splice
4779 77 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 72 5 77
4780
4781 77 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 72 5 77
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
5072
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4782 {
4783
4784 72 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4785 Parse::RecDescent::_tracefirst($_[1]),
4786 q{bodyextensions},
4787 $tracelevel)
4788 if defined $::RD_TRACE;
4789 72 my $thisprod = $thisrule->{"prods"}[1];
4790 72 $text = $_[1];
4791 72 my $_savetext;
4792 72 @item = (q{bodyextensions});
4793 72 %item = (__RULE__ => q{bodyextensions});
4794 72 my $repcount = 0;
4795  
4796  
4797 72 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4798 Parse::RecDescent::_tracefirst($text),
4799 q{bodyextensions},
4800 $tracelevel)
4801 if defined $::RD_TRACE;
4802 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4803 72 $expectation->is(q{})->at($text);
4804 72 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 72 0 72
4805 {
4806
4807 72 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4808 Parse::RecDescent::_tracefirst($text),
4809 q{bodyextensions},
4810 $tracelevel)
4811 if defined $::RD_TRACE;
4812 72 $expectation->failed();
4813 72 last;
4814 }
4815 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4816 . $_tok . q{]},
4817  
4818 Parse::RecDescent::_tracefirst($text),
4819 q{bodyextensions},
4820 $tracelevel)
4821 if defined $::RD_TRACE;
4822 0 $item{q{STRING}} = $_tok;
4823 0 push @item, $_tok;
4824
4825 }
4826  
4827 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4828 Parse::RecDescent::_tracefirst($text),
4829 q{bodyextensions},
4830 $tracelevel)
4831 if defined $::RD_TRACE;
4832  
4833  
4834  
4835 0 $_matched = 1;
4836 0 last;
4837 }
4838  
4839 splice
4840 77 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 72 5 77
4841
4842 77 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 72 5 77
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
5072
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
4843 {
4844 72 splice @{$thisparser->{deferred}}, $def_at;
4845
4846  
4847 72 $_[1] = $text; # NOT SURE THIS IS NEEDED
4848 72 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4849 Parse::RecDescent::_tracefirst($_[1]),
4850 q{bodyextensions},
4851 $tracelevel)
4852 if defined $::RD_TRACE;
4853 72 return undef;
4854 }
4855 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
4856 {
4857 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4858 q{bodyextensions},
4859 $tracelevel)
4860 if defined $::RD_TRACE;
4861 0 $return = $score_return;
4862 }
4863 5 splice @{$thisparser->{errors}}, $err_at;
4864 5 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 5 0 5
4865 5 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 5 5
4866 {
4867 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
4868 $return . q{])}, "",
4869 q{bodyextensions},
4870 $tracelevel);
4871 0 Parse::RecDescent::_trace(q{(consumed: [} .
4872 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
4873 Parse::RecDescent::_tracefirst($text),
4874 , q{bodyextensions},
4875 $tracelevel)
4876 }
4877 5 $_[1] = $text;
4878 5 return $return;
4879 }
4880  
4881 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4882 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyextra
4883 105 ▶{
Subroutine bodyextra: called CC=40 SCAR=42.1
4884 105 my $thisparser = $_[0];
4885 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4886 105 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1050
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
4887 105 $ERRORS = 0;
4888 105 my $thisrule = $thisparser->{"rules"}{"bodyextra"};
4889  
4890 105 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodyextra]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
4891 Parse::RecDescent::_tracefirst($_[1]),
4892 q{bodyextra},
4893 $tracelevel)
4894 if defined $::RD_TRACE;
4895  
4896 105 my $def_at = @{$thisparser->{deferred}};
4897 105 my $err_at = @{$thisparser->{errors}};
4898  
4899 105 my $score;
4900 my $score_return;
4901 105 my $_tok;
4902 105 my $return = undef;
4903 105 my $_matched=0;
4904 105 my $commit=0;
4905 105 my @item = ();
4906 105 my %item = ();
4907 105 my $repeating = $_[2];
4908 105 my $_noactions = $_[3];
4909 105 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 105 0 105
4910 105 my $_itempos = $_[5];
4911 105 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 105 0 105
4912 105 my $text;
4913 my $lastsep;
4914 105 my $current_match;
4915 105 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING, or STRINGS});
4916 105 $expectation->at($_[1]);
4917
4918 105 my $thisline;
4919 105 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4920  
4921
4922  
4923 105 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 105 0 105
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00105
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4924 {
4925
4926 105 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
4927 Parse::RecDescent::_tracefirst($_[1]),
4928 q{bodyextra},
4929 $tracelevel)
4930 if defined $::RD_TRACE;
4931 105 my $thisprod = $thisrule->{"prods"}[0];
4932 105 $text = $_[1];
4933 105 my $_savetext;
4934 105 @item = (q{bodyextra});
4935 105 %item = (__RULE__ => q{bodyextra});
4936 105 my $repcount = 0;
4937  
4938  
4939 105 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
4940 Parse::RecDescent::_tracefirst($text),
4941 q{bodyextra},
4942 $tracelevel)
4943 if defined $::RD_TRACE;
4944 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4945 105 $expectation->is(q{})->at($text);
4946 105 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 47 58 105
4947 {
4948
4949 47 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 47 47
4950 Parse::RecDescent::_tracefirst($text),
4951 q{bodyextra},
4952 $tracelevel)
4953 if defined $::RD_TRACE;
4954 47 $expectation->failed();
4955 47 last;
4956 }
4957 58 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 58 58
4958 . $_tok . q{]},
4959  
4960 Parse::RecDescent::_tracefirst($text),
4961 q{bodyextra},
4962 $tracelevel)
4963 if defined $::RD_TRACE;
4964 58 $item{q{NIL}} = $_tok;
4965 58 push @item, $_tok;
4966
4967 }
4968  
4969 58 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 58 58
4970 Parse::RecDescent::_tracefirst($text),
4971 q{bodyextra},
4972 $tracelevel)
4973 if defined $::RD_TRACE;
4974  
4975  
4976  
4977 58 $_matched = 1;
4978 58 last;
4979 }
4980  
4981 splice
4982 105 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 47 58 105
4983
4984 105 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 47 58 105
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
58047
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4985 {
4986
4987 47 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 47 47
4988 Parse::RecDescent::_tracefirst($_[1]),
4989 q{bodyextra},
4990 $tracelevel)
4991 if defined $::RD_TRACE;
4992 47 my $thisprod = $thisrule->{"prods"}[1];
4993 47 $text = $_[1];
4994 47 my $_savetext;
4995 47 @item = (q{bodyextra});
4996 47 %item = (__RULE__ => q{bodyextra});
4997 47 my $repcount = 0;
4998  
4999  
5000 47 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 47 47
5001 Parse::RecDescent::_tracefirst($text),
5002 q{bodyextra},
5003 $tracelevel)
5004 if defined $::RD_TRACE;
5005 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5006 47 $expectation->is(q{})->at($text);
5007 47 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 47 0 47
5008 {
5009
5010 47 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 47 47
5011 Parse::RecDescent::_tracefirst($text),
5012 q{bodyextra},
5013 $tracelevel)
5014 if defined $::RD_TRACE;
5015 47 $expectation->failed();
5016 47 last;
5017 }
5018 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5019 . $_tok . q{]},
5020  
5021 Parse::RecDescent::_tracefirst($text),
5022 q{bodyextra},
5023 $tracelevel)
5024 if defined $::RD_TRACE;
5025 0 $item{q{STRING}} = $_tok;
5026 0 push @item, $_tok;
5027
5028 }
5029  
5030 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5031 Parse::RecDescent::_tracefirst($text),
5032 q{bodyextra},
5033 $tracelevel)
5034 if defined $::RD_TRACE;
5035  
5036  
5037  
5038 0 $_matched = 1;
5039 0 last;
5040 }
5041  
5042 splice
5043 105 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 47 58 105
5044
5045 105 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 47 58 105
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
58047
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5046 {
5047
5048 47 ▶ Parse::RecDescent::_trace(q{Trying production: [STRINGS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 47 47
5049 Parse::RecDescent::_tracefirst($_[1]),
5050 q{bodyextra},
5051 $tracelevel)
5052 if defined $::RD_TRACE;
5053 47 my $thisprod = $thisrule->{"prods"}[2];
5054 47 $text = $_[1];
5055 47 my $_savetext;
5056 47 @item = (q{bodyextra});
5057 47 %item = (__RULE__ => q{bodyextra});
5058 47 my $repcount = 0;
5059  
5060  
5061 47 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRINGS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 47 47
5062 Parse::RecDescent::_tracefirst($text),
5063 q{bodyextra},
5064 $tracelevel)
5065 if defined $::RD_TRACE;
5066 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5067 47 $expectation->is(q{})->at($text);
5068 47 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRINGS($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRINGS($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 47 0 47
5069 {
5070
5071 47 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRINGS]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 47 47
5072 Parse::RecDescent::_tracefirst($text),
5073 q{bodyextra},
5074 $tracelevel)
5075 if defined $::RD_TRACE;
5076 47 $expectation->failed();
5077 47 last;
5078 }
5079 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRINGS]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5080 . $_tok . q{]},
5081  
5082 Parse::RecDescent::_tracefirst($text),
5083 q{bodyextra},
5084 $tracelevel)
5085 if defined $::RD_TRACE;
5086 0 $item{q{STRINGS}} = $_tok;
5087 0 push @item, $_tok;
5088
5089 }
5090  
5091 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRINGS]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5092 Parse::RecDescent::_tracefirst($text),
5093 q{bodyextra},
5094 $tracelevel)
5095 if defined $::RD_TRACE;
5096  
5097  
5098  
5099 0 $_matched = 1;
5100 0 last;
5101 }
5102  
5103 splice
5104 105 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 47 58 105
5105
5106 105 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 47 58 105
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
58047
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
5107 {
5108 47 splice @{$thisparser->{deferred}}, $def_at;
5109
5110  
5111 47 $_[1] = $text; # NOT SURE THIS IS NEEDED
5112 47 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 47 47
5113 Parse::RecDescent::_tracefirst($_[1]),
5114 q{bodyextra},
5115 $tracelevel)
5116 if defined $::RD_TRACE;
5117 47 return undef;
5118 }
5119 58 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 58 58
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0580
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
5120 {
5121 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5122 q{bodyextra},
5123 $tracelevel)
5124 if defined $::RD_TRACE;
5125 0 $return = $score_return;
5126 }
5127 58 splice @{$thisparser->{errors}}, $err_at;
5128 58 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 58 0 58
5129 58 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 58 58
5130 {
5131 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
5132 $return . q{])}, "",
5133 q{bodyextra},
5134 $tracelevel);
5135 0 Parse::RecDescent::_trace(q{(consumed: [} .
5136 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
5137 Parse::RecDescent::_tracefirst($text),
5138 , q{bodyextra},
5139 $tracelevel)
5140 }
5141 58 $_[1] = $text;
5142 58 return $return;
5143 }
5144  
5145 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5146 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyid
5147 74 ▶{
Subroutine bodyid: called CC=37 SCAR=42.9
5148 74 my $thisparser = $_[0];
5149 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5150 74 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
740
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
5151 74 $ERRORS = 0;
5152 74 my $thisrule = $thisparser->{"rules"}{"bodyid"};
5153  
5154 74 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodyid]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
5155 Parse::RecDescent::_tracefirst($_[1]),
5156 q{bodyid},
5157 $tracelevel)
5158 if defined $::RD_TRACE;
5159  
5160 74 my $def_at = @{$thisparser->{deferred}};
5161 74 my $err_at = @{$thisparser->{errors}};
5162  
5163 74 my $score;
5164 my $score_return;
5165 74 my $_tok;
5166 74 my $return = undef;
5167 74 my $_matched=0;
5168 74 my $commit=0;
5169 74 my @item = ();
5170 74 my %item = ();
5171 74 my $repeating = $_[2];
5172 74 my $_noactions = $_[3];
5173 74 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 74 0 74
5174 74 my $_itempos = $_[5];
5175 74 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 74 0 74
5176 74 my $text;
5177 my $lastsep;
5178 74 my $current_match;
5179 74 my $expectation = new Parse::RecDescent::Expectation(q{/[()]/, or STRING});
5180 74 $expectation->at($_[1]);
5181
5182 74 my $thisline;
5183 74 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
5184  
5185
5186  
5187 74 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 74 0 74
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0074
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5188 {
5189
5190 74 ▶ Parse::RecDescent::_trace(q{Trying production: [/[()]/ NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
5191 Parse::RecDescent::_tracefirst($_[1]),
5192 q{bodyid},
5193 $tracelevel)
5194 if defined $::RD_TRACE;
5195 74 my $thisprod = $thisrule->{"prods"}[0];
5196 74 $text = $_[1];
5197 74 my $_savetext;
5198 74 @item = (q{bodyid});
5199 74 %item = (__RULE__ => q{bodyid});
5200 74 my $repcount = 0;
5201  
5202  
5203 74 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/[()]/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
5204 q{bodyid},
5205 $tracelevel)
5206 if defined $::RD_TRACE;
5207 74 undef $lastsep;
5208 74 $expectation->is(q{})->at($text);
5209 74 $_savetext = $text;
5210  
5211 74 ▶ if ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[()])/)
Branch: 1 branch
BranchTrueFalseTotal
if ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[()])/) 0 74 74
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[()])/
!ll&&!rl&&r
0740
($lastsep = $1) && ''
!ll
074
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[()])/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[()])/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[()])/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
5212 {
5213 0 $text = $_savetext;
5214 0 $expectation->failed();
5215 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5216 Parse::RecDescent::_tracefirst($text))
5217 if defined $::RD_TRACE;
5218  
5219 0 last;
5220 }
5221 74 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5222 74 substr($text,0,length($current_match),q{});
5223 74 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
5224 . $current_match . q{])},
5225 Parse::RecDescent::_tracefirst($text))
5226 if defined $::RD_TRACE;
5227 74 push @item, $item{__PATTERN1__}=$current_match;
5228 74 $text = $_savetext;
5229  
5230 74 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
5231 Parse::RecDescent::_tracefirst($text),
5232 q{bodyid},
5233 $tracelevel)
5234 if defined $::RD_TRACE;
5235 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5236 74 $expectation->is(q{NIL})->at($text);
5237 74 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 2 72 74
5238 {
5239
5240 2 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
5241 Parse::RecDescent::_tracefirst($text),
5242 q{bodyid},
5243 $tracelevel)
5244 if defined $::RD_TRACE;
5245 2 $expectation->failed();
5246 2 last;
5247 }
5248 72 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
5249 . $_tok . q{]},
5250  
5251 Parse::RecDescent::_tracefirst($text),
5252 q{bodyid},
5253 $tracelevel)
5254 if defined $::RD_TRACE;
5255 72 $item{q{NIL}} = $_tok;
5256 72 push @item, $_tok;
5257
5258 }
5259  
5260 72 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/[()]/ NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
5261 Parse::RecDescent::_tracefirst($text),
5262 q{bodyid},
5263 $tracelevel)
5264 if defined $::RD_TRACE;
5265  
5266  
5267  
5268 72 $_matched = 1;
5269 72 last;
5270 }
5271  
5272 splice
5273 74 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 2 72 74
5274
5275 74 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 2 72 74
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
7202
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5276 {
5277
5278 2 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
5279 Parse::RecDescent::_tracefirst($_[1]),
5280 q{bodyid},
5281 $tracelevel)
5282 if defined $::RD_TRACE;
5283 2 my $thisprod = $thisrule->{"prods"}[1];
5284 2 $text = $_[1];
5285 2 my $_savetext;
5286 2 @item = (q{bodyid});
5287 2 %item = (__RULE__ => q{bodyid});
5288 2 my $repcount = 0;
5289  
5290  
5291 2 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
5292 Parse::RecDescent::_tracefirst($text),
5293 q{bodyid},
5294 $tracelevel)
5295 if defined $::RD_TRACE;
5296 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5297 2 $expectation->is(q{})->at($text);
5298 2 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 2 2
5299 {
5300
5301 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5302 Parse::RecDescent::_tracefirst($text),
5303 q{bodyid},
5304 $tracelevel)
5305 if defined $::RD_TRACE;
5306 0 $expectation->failed();
5307 0 last;
5308 }
5309 2 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
5310 . $_tok . q{]},
5311  
5312 Parse::RecDescent::_tracefirst($text),
5313 q{bodyid},
5314 $tracelevel)
5315 if defined $::RD_TRACE;
5316 2 $item{q{STRING}} = $_tok;
5317 2 push @item, $_tok;
5318
5319 }
5320  
5321 2 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
5322 Parse::RecDescent::_tracefirst($text),
5323 q{bodyid},
5324 $tracelevel)
5325 if defined $::RD_TRACE;
5326  
5327  
5328  
5329 2 $_matched = 1;
5330 2 last;
5331 }
5332  
5333 splice
5334 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 74 74
5335
5336 74 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 74 74
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
7400
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
5337 {
5338 0 splice @{$thisparser->{deferred}}, $def_at;
5339
5340  
5341 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
5342 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5343 Parse::RecDescent::_tracefirst($_[1]),
5344 q{bodyid},
5345 $tracelevel)
5346 if defined $::RD_TRACE;
5347 0 return undef;
5348 }
5349 74 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 74 74
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0740
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
5350 {
5351 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5352 q{bodyid},
5353 $tracelevel)
5354 if defined $::RD_TRACE;
5355 0 $return = $score_return;
5356 }
5357 74 splice @{$thisparser->{errors}}, $err_at;
5358 74 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 74 0 74
5359 74 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 74 74
5360 {
5361 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
5362 $return . q{])}, "",
5363 q{bodyid},
5364 $tracelevel);
5365 0 Parse::RecDescent::_trace(q{(consumed: [} .
5366 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
5367 Parse::RecDescent::_tracefirst($text),
5368 , q{bodyid},
5369 $tracelevel)
5370 }
5371 74 $_[1] = $text;
5372 74 return $return;
5373 }
5374  
5375 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5376 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodylang
5377 105 ▶{
Subroutine bodylang: called CC=40 SCAR=40.3
5378 105 my $thisparser = $_[0];
5379 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5380 105 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1050
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
5381 105 $ERRORS = 0;
5382 105 my $thisrule = $thisparser->{"rules"}{"bodylang"};
5383  
5384 105 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodylang]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
5385 Parse::RecDescent::_tracefirst($_[1]),
5386 q{bodylang},
5387 $tracelevel)
5388 if defined $::RD_TRACE;
5389  
5390 105 my $def_at = @{$thisparser->{deferred}};
5391 105 my $err_at = @{$thisparser->{errors}};
5392  
5393 105 my $score;
5394 my $score_return;
5395 105 my $_tok;
5396 105 my $return = undef;
5397 105 my $_matched=0;
5398 105 my $commit=0;
5399 105 my @item = ();
5400 105 my %item = ();
5401 105 my $repeating = $_[2];
5402 105 my $_noactions = $_[3];
5403 105 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 105 0 105
5404 105 my $_itempos = $_[5];
5405 105 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 105 0 105
5406 105 my $text;
5407 my $lastsep;
5408 105 my $current_match;
5409 105 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING, or STRINGS});
5410 105 $expectation->at($_[1]);
5411
5412 105 my $thisline;
5413 105 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
5414  
5415
5416  
5417 105 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 105 0 105
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00105
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5418 {
5419
5420 105 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
5421 Parse::RecDescent::_tracefirst($_[1]),
5422 q{bodylang},
5423 $tracelevel)
5424 if defined $::RD_TRACE;
5425 105 my $thisprod = $thisrule->{"prods"}[0];
5426 105 $text = $_[1];
5427 105 my $_savetext;
5428 105 @item = (q{bodylang});
5429 105 %item = (__RULE__ => q{bodylang});
5430 105 my $repcount = 0;
5431  
5432  
5433 105 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
5434 Parse::RecDescent::_tracefirst($text),
5435 q{bodylang},
5436 $tracelevel)
5437 if defined $::RD_TRACE;
5438 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5439 105 $expectation->is(q{})->at($text);
5440 105 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 11 94 105
5441 {
5442
5443 11 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
5444 Parse::RecDescent::_tracefirst($text),
5445 q{bodylang},
5446 $tracelevel)
5447 if defined $::RD_TRACE;
5448 11 $expectation->failed();
5449 11 last;
5450 }
5451 94 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
5452 . $_tok . q{]},
5453  
5454 Parse::RecDescent::_tracefirst($text),
5455 q{bodylang},
5456 $tracelevel)
5457 if defined $::RD_TRACE;
5458 94 $item{q{NIL}} = $_tok;
5459 94 push @item, $_tok;
5460
5461 }
5462  
5463 94 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
5464 Parse::RecDescent::_tracefirst($text),
5465 q{bodylang},
5466 $tracelevel)
5467 if defined $::RD_TRACE;
5468  
5469  
5470  
5471 94 $_matched = 1;
5472 94 last;
5473 }
5474  
5475 splice
5476 105 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 11 94 105
5477
5478 105 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 11 94 105
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
94011
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5479 {
5480
5481 11 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
5482 Parse::RecDescent::_tracefirst($_[1]),
5483 q{bodylang},
5484 $tracelevel)
5485 if defined $::RD_TRACE;
5486 11 my $thisprod = $thisrule->{"prods"}[1];
5487 11 $text = $_[1];
5488 11 my $_savetext;
5489 11 @item = (q{bodylang});
5490 11 %item = (__RULE__ => q{bodylang});
5491 11 my $repcount = 0;
5492  
5493  
5494 11 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
5495 Parse::RecDescent::_tracefirst($text),
5496 q{bodylang},
5497 $tracelevel)
5498 if defined $::RD_TRACE;
5499 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5500 11 $expectation->is(q{})->at($text);
5501 11 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 11 0 11
5502 {
5503
5504 11 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
5505 Parse::RecDescent::_tracefirst($text),
5506 q{bodylang},
5507 $tracelevel)
5508 if defined $::RD_TRACE;
5509 11 $expectation->failed();
5510 11 last;
5511 }
5512 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5513 . $_tok . q{]},
5514  
5515 Parse::RecDescent::_tracefirst($text),
5516 q{bodylang},
5517 $tracelevel)
5518 if defined $::RD_TRACE;
5519 0 $item{q{STRING}} = $_tok;
5520 0 push @item, $_tok;
5521
5522 }
5523  
5524 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5525 Parse::RecDescent::_tracefirst($text),
5526 q{bodylang},
5527 $tracelevel)
5528 if defined $::RD_TRACE;
5529  
5530  
5531  
5532 0 $_matched = 1;
5533 0 last;
5534 }
5535  
5536 splice
5537 105 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 11 94 105
5538
5539 105 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 11 94 105
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
94011
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5540 {
5541
5542 11 ▶ Parse::RecDescent::_trace(q{Trying production: [STRINGS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
5543 Parse::RecDescent::_tracefirst($_[1]),
5544 q{bodylang},
5545 $tracelevel)
5546 if defined $::RD_TRACE;
5547 11 my $thisprod = $thisrule->{"prods"}[2];
5548 11 $text = $_[1];
5549 11 my $_savetext;
5550 11 @item = (q{bodylang});
5551 11 %item = (__RULE__ => q{bodylang});
5552 11 my $repcount = 0;
5553  
5554  
5555 11 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRINGS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
5556 Parse::RecDescent::_tracefirst($text),
5557 q{bodylang},
5558 $tracelevel)
5559 if defined $::RD_TRACE;
5560 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5561 11 $expectation->is(q{})->at($text);
5562 11 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRINGS($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRINGS($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 10 1 11
5563 {
5564
5565 10 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRINGS]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
5566 Parse::RecDescent::_tracefirst($text),
5567 q{bodylang},
5568 $tracelevel)
5569 if defined $::RD_TRACE;
5570 10 $expectation->failed();
5571 10 last;
5572 }
5573 1 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRINGS]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
5574 . $_tok . q{]},
5575  
5576 Parse::RecDescent::_tracefirst($text),
5577 q{bodylang},
5578 $tracelevel)
5579 if defined $::RD_TRACE;
5580 1 $item{q{STRINGS}} = $_tok;
5581 1 push @item, $_tok;
5582
5583 }
5584  
5585 1 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRINGS]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
5586 Parse::RecDescent::_tracefirst($text),
5587 q{bodylang},
5588 $tracelevel)
5589 if defined $::RD_TRACE;
5590  
5591  
5592  
5593 1 $_matched = 1;
5594 1 last;
5595 }
5596  
5597 splice
5598 105 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 10 95 105
5599
5600 105 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 10 95 105
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
95010
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
5601 {
5602 10 splice @{$thisparser->{deferred}}, $def_at;
5603
5604  
5605 10 $_[1] = $text; # NOT SURE THIS IS NEEDED
5606 10 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
5607 Parse::RecDescent::_tracefirst($_[1]),
5608 q{bodylang},
5609 $tracelevel)
5610 if defined $::RD_TRACE;
5611 10 return undef;
5612 }
5613 95 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 95 95
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0950
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
5614 {
5615 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5616 q{bodylang},
5617 $tracelevel)
5618 if defined $::RD_TRACE;
5619 0 $return = $score_return;
5620 }
5621 95 splice @{$thisparser->{errors}}, $err_at;
5622 95 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 95 0 95
5623 95 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 95 95
5624 {
5625 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
5626 $return . q{])}, "",
5627 q{bodylang},
5628 $tracelevel);
5629 0 Parse::RecDescent::_trace(q{(consumed: [} .
5630 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
5631 Parse::RecDescent::_tracefirst($text),
5632 , q{bodylang},
5633 $tracelevel)
5634 }
5635 95 $_[1] = $text;
5636 95 return $return;
5637 }
5638  
5639 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5640 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyloc
5641 31 ▶{
Subroutine bodyloc: called CC=31 SCAR=37.9
5642 31 my $thisparser = $_[0];
5643 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5644 31 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
310
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
5645 31 $ERRORS = 0;
5646 31 my $thisrule = $thisparser->{"rules"}{"bodyloc"};
5647  
5648 31 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodyloc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
5649 Parse::RecDescent::_tracefirst($_[1]),
5650 q{bodyloc},
5651 $tracelevel)
5652 if defined $::RD_TRACE;
5653  
5654 31 my $def_at = @{$thisparser->{deferred}};
5655 31 my $err_at = @{$thisparser->{errors}};
5656  
5657 31 my $score;
5658 my $score_return;
5659 31 my $_tok;
5660 31 my $return = undef;
5661 31 my $_matched=0;
5662 31 my $commit=0;
5663 31 my @item = ();
5664 31 my %item = ();
5665 31 my $repeating = $_[2];
5666 31 my $_noactions = $_[3];
5667 31 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 31 0 31
5668 31 my $_itempos = $_[5];
5669 31 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 31 0 31
5670 31 my $text;
5671 my $lastsep;
5672 31 my $current_match;
5673 31 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING});
5674 31 $expectation->at($_[1]);
5675
5676 31 my $thisline;
5677 31 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
5678  
5679
5680  
5681 31 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 31 0 31
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0031
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5682 {
5683
5684 31 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
5685 Parse::RecDescent::_tracefirst($_[1]),
5686 q{bodyloc},
5687 $tracelevel)
5688 if defined $::RD_TRACE;
5689 31 my $thisprod = $thisrule->{"prods"}[0];
5690 31 $text = $_[1];
5691 31 my $_savetext;
5692 31 @item = (q{bodyloc});
5693 31 %item = (__RULE__ => q{bodyloc});
5694 31 my $repcount = 0;
5695  
5696  
5697 31 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
5698 Parse::RecDescent::_tracefirst($text),
5699 q{bodyloc},
5700 $tracelevel)
5701 if defined $::RD_TRACE;
5702 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5703 31 $expectation->is(q{})->at($text);
5704 31 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 9 22 31
5705 {
5706
5707 9 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
5708 Parse::RecDescent::_tracefirst($text),
5709 q{bodyloc},
5710 $tracelevel)
5711 if defined $::RD_TRACE;
5712 9 $expectation->failed();
5713 9 last;
5714 }
5715 22 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
5716 . $_tok . q{]},
5717  
5718 Parse::RecDescent::_tracefirst($text),
5719 q{bodyloc},
5720 $tracelevel)
5721 if defined $::RD_TRACE;
5722 22 $item{q{NIL}} = $_tok;
5723 22 push @item, $_tok;
5724
5725 }
5726  
5727 22 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
5728 Parse::RecDescent::_tracefirst($text),
5729 q{bodyloc},
5730 $tracelevel)
5731 if defined $::RD_TRACE;
5732  
5733  
5734  
5735 22 $_matched = 1;
5736 22 last;
5737 }
5738  
5739 splice
5740 31 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 9 22 31
5741
5742 31 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 9 22 31
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
2209
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5743 {
5744
5745 9 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
5746 Parse::RecDescent::_tracefirst($_[1]),
5747 q{bodyloc},
5748 $tracelevel)
5749 if defined $::RD_TRACE;
5750 9 my $thisprod = $thisrule->{"prods"}[1];
5751 9 $text = $_[1];
5752 9 my $_savetext;
5753 9 @item = (q{bodyloc});
5754 9 %item = (__RULE__ => q{bodyloc});
5755 9 my $repcount = 0;
5756  
5757  
5758 9 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
5759 Parse::RecDescent::_tracefirst($text),
5760 q{bodyloc},
5761 $tracelevel)
5762 if defined $::RD_TRACE;
5763 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5764 9 $expectation->is(q{})->at($text);
5765 9 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 9 0 9
5766 {
5767
5768 9 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
5769 Parse::RecDescent::_tracefirst($text),
5770 q{bodyloc},
5771 $tracelevel)
5772 if defined $::RD_TRACE;
5773 9 $expectation->failed();
5774 9 last;
5775 }
5776 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5777 . $_tok . q{]},
5778  
5779 Parse::RecDescent::_tracefirst($text),
5780 q{bodyloc},
5781 $tracelevel)
5782 if defined $::RD_TRACE;
5783 0 $item{q{STRING}} = $_tok;
5784 0 push @item, $_tok;
5785
5786 }
5787  
5788 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5789 Parse::RecDescent::_tracefirst($text),
5790 q{bodyloc},
5791 $tracelevel)
5792 if defined $::RD_TRACE;
5793  
5794  
5795  
5796 0 $_matched = 1;
5797 0 last;
5798 }
5799  
5800 splice
5801 31 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 9 22 31
5802
5803 31 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 9 22 31
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
2209
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
5804 {
5805 9 splice @{$thisparser->{deferred}}, $def_at;
5806
5807  
5808 9 $_[1] = $text; # NOT SURE THIS IS NEEDED
5809 9 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
5810 Parse::RecDescent::_tracefirst($_[1]),
5811 q{bodyloc},
5812 $tracelevel)
5813 if defined $::RD_TRACE;
5814 9 return undef;
5815 }
5816 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
5817 {
5818 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5819 q{bodyloc},
5820 $tracelevel)
5821 if defined $::RD_TRACE;
5822 0 $return = $score_return;
5823 }
5824 22 splice @{$thisparser->{errors}}, $err_at;
5825 22 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 22 0 22
5826 22 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 22 22
5827 {
5828 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
5829 $return . q{])}, "",
5830 q{bodyloc},
5831 $tracelevel);
5832 0 Parse::RecDescent::_trace(q{(consumed: [} .
5833 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
5834 Parse::RecDescent::_tracefirst($text),
5835 , q{bodyloc},
5836 $tracelevel)
5837 }
5838 22 $_[1] = $text;
5839 22 return $return;
5840 }
5841  
5842 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5843 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyparms
5844 105 ▶{
Subroutine bodyparms: called CC=31 SCAR=36.1
5845 105 my $thisparser = $_[0];
5846 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5847 105 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1050
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
5848 105 $ERRORS = 0;
5849 105 my $thisrule = $thisparser->{"rules"}{"bodyparms"};
5850  
5851 105 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodyparms]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
5852 Parse::RecDescent::_tracefirst($_[1]),
5853 q{bodyparms},
5854 $tracelevel)
5855 if defined $::RD_TRACE;
5856  
5857 105 my $def_at = @{$thisparser->{deferred}};
5858 105 my $err_at = @{$thisparser->{errors}};
5859  
5860 105 my $score;
5861 my $score_return;
5862 105 my $_tok;
5863 105 my $return = undef;
5864 105 my $_matched=0;
5865 105 my $commit=0;
5866 105 my @item = ();
5867 105 my %item = ();
5868 105 my $repeating = $_[2];
5869 105 my $_noactions = $_[3];
5870 105 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 105 0 105
5871 105 my $_itempos = $_[5];
5872 105 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 105 0 105
5873 105 my $text;
5874 my $lastsep;
5875 105 my $current_match;
5876 105 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or KVPAIRS});
5877 105 $expectation->at($_[1]);
5878
5879 105 my $thisline;
5880 105 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
5881  
5882
5883  
5884 105 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 105 0 105
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00105
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5885 {
5886
5887 105 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
5888 Parse::RecDescent::_tracefirst($_[1]),
5889 q{bodyparms},
5890 $tracelevel)
5891 if defined $::RD_TRACE;
5892 105 my $thisprod = $thisrule->{"prods"}[0];
5893 105 $text = $_[1];
5894 105 my $_savetext;
5895 105 @item = (q{bodyparms});
5896 105 %item = (__RULE__ => q{bodyparms});
5897 105 my $repcount = 0;
5898  
5899  
5900 105 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 105 105
5901 Parse::RecDescent::_tracefirst($text),
5902 q{bodyparms},
5903 $tracelevel)
5904 if defined $::RD_TRACE;
5905 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5906 105 $expectation->is(q{})->at($text);
5907 105 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 82 23 105
5908 {
5909
5910 82 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 82 82
5911 Parse::RecDescent::_tracefirst($text),
5912 q{bodyparms},
5913 $tracelevel)
5914 if defined $::RD_TRACE;
5915 82 $expectation->failed();
5916 82 last;
5917 }
5918 23 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 23 23
5919 . $_tok . q{]},
5920  
5921 Parse::RecDescent::_tracefirst($text),
5922 q{bodyparms},
5923 $tracelevel)
5924 if defined $::RD_TRACE;
5925 23 $item{q{NIL}} = $_tok;
5926 23 push @item, $_tok;
5927
5928 }
5929  
5930 23 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 23 23
5931 Parse::RecDescent::_tracefirst($text),
5932 q{bodyparms},
5933 $tracelevel)
5934 if defined $::RD_TRACE;
5935  
5936  
5937  
5938 23 $_matched = 1;
5939 23 last;
5940 }
5941  
5942 splice
5943 105 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 82 23 105
5944
5945 105 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 82 23 105
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
23082
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5946 {
5947
5948 82 ▶ Parse::RecDescent::_trace(q{Trying production: [KVPAIRS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 82 82
5949 Parse::RecDescent::_tracefirst($_[1]),
5950 q{bodyparms},
5951 $tracelevel)
5952 if defined $::RD_TRACE;
5953 82 my $thisprod = $thisrule->{"prods"}[1];
5954 82 $text = $_[1];
5955 82 my $_savetext;
5956 82 @item = (q{bodyparms});
5957 82 %item = (__RULE__ => q{bodyparms});
5958 82 my $repcount = 0;
5959  
5960  
5961 82 ▶ Parse::RecDescent::_trace(q{Trying subrule: [KVPAIRS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 82 82
5962 Parse::RecDescent::_tracefirst($text),
5963 q{bodyparms},
5964 $tracelevel)
5965 if defined $::RD_TRACE;
5966 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5967 82 $expectation->is(q{})->at($text);
5968 82 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::KVPAIRS($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = KVPAIRS($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 3 79 82
5969 {
5970
5971 3 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [KVPAIRS]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
5972 Parse::RecDescent::_tracefirst($text),
5973 q{bodyparms},
5974 $tracelevel)
5975 if defined $::RD_TRACE;
5976 3 $expectation->failed();
5977 3 last;
5978 }
5979 79 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [KVPAIRS]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 79 79
5980 . $_tok . q{]},
5981  
5982 Parse::RecDescent::_tracefirst($text),
5983 q{bodyparms},
5984 $tracelevel)
5985 if defined $::RD_TRACE;
5986 79 $item{q{KVPAIRS}} = $_tok;
5987 79 push @item, $_tok;
5988
5989 }
5990  
5991 79 ▶ Parse::RecDescent::_trace(q{>>Matched production: [KVPAIRS]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 79 79
5992 Parse::RecDescent::_tracefirst($text),
5993 q{bodyparms},
5994 $tracelevel)
5995 if defined $::RD_TRACE;
5996  
5997  
5998  
5999 79 $_matched = 1;
6000 79 last;
6001 }
6002  
6003 splice
6004 105 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 3 102 105
6005
6006 105 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 3 102 105
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
10203
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
6007 {
6008 3 splice @{$thisparser->{deferred}}, $def_at;
6009
6010  
6011 3 $_[1] = $text; # NOT SURE THIS IS NEEDED
6012 3 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
6013 Parse::RecDescent::_tracefirst($_[1]),
6014 q{bodyparms},
6015 $tracelevel)
6016 if defined $::RD_TRACE;
6017 3 return undef;
6018 }
6019 102 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 102 102
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
01020
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
6020 {
6021 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6022 q{bodyparms},
6023 $tracelevel)
6024 if defined $::RD_TRACE;
6025 0 $return = $score_return;
6026 }
6027 102 splice @{$thisparser->{errors}}, $err_at;
6028 102 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 102 0 102
6029 102 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 102 102
6030 {
6031 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
6032 $return . q{])}, "",
6033 q{bodyparms},
6034 $tracelevel);
6035 0 Parse::RecDescent::_trace(q{(consumed: [} .
6036 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
6037 Parse::RecDescent::_tracefirst($text),
6038 , q{bodyparms},
6039 $tracelevel)
6040 }
6041 102 $_[1] = $text;
6042 102 return $return;
6043 }
6044  
6045 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6046 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodysize
6047 74 ▶{
Subroutine bodysize: called CC=37 SCAR=46.1
6048 74 my $thisparser = $_[0];
6049 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6050 74 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
740
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
6051 74 $ERRORS = 0;
6052 74 my $thisrule = $thisparser->{"rules"}{"bodysize"};
6053  
6054 74 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodysize]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
6055 Parse::RecDescent::_tracefirst($_[1]),
6056 q{bodysize},
6057 $tracelevel)
6058 if defined $::RD_TRACE;
6059  
6060 74 my $def_at = @{$thisparser->{deferred}};
6061 74 my $err_at = @{$thisparser->{errors}};
6062  
6063 74 my $score;
6064 my $score_return;
6065 74 my $_tok;
6066 74 my $return = undef;
6067 74 my $_matched=0;
6068 74 my $commit=0;
6069 74 my @item = ();
6070 74 my %item = ();
6071 74 my $repeating = $_[2];
6072 74 my $_noactions = $_[3];
6073 74 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 74 0 74
6074 74 my $_itempos = $_[5];
6075 74 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 74 0 74
6076 74 my $text;
6077 my $lastsep;
6078 74 my $current_match;
6079 74 my $expectation = new Parse::RecDescent::Expectation(q{/[()]/, or NUMBER});
6080 74 $expectation->at($_[1]);
6081
6082 74 my $thisline;
6083 74 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
6084  
6085
6086  
6087 74 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 74 0 74
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0074
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6088 {
6089
6090 74 ▶ Parse::RecDescent::_trace(q{Trying production: [/[()]/ NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
6091 Parse::RecDescent::_tracefirst($_[1]),
6092 q{bodysize},
6093 $tracelevel)
6094 if defined $::RD_TRACE;
6095 74 my $thisprod = $thisrule->{"prods"}[0];
6096 74 $text = $_[1];
6097 74 my $_savetext;
6098 74 @item = (q{bodysize});
6099 74 %item = (__RULE__ => q{bodysize});
6100 74 my $repcount = 0;
6101  
6102  
6103 74 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/[()]/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
6104 q{bodysize},
6105 $tracelevel)
6106 if defined $::RD_TRACE;
6107 74 undef $lastsep;
6108 74 $expectation->is(q{})->at($text);
6109 74 $_savetext = $text;
6110  
6111 74 ▶ if ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[()])/)
Branch: 1 branch
BranchTrueFalseTotal
if ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[()])/) 0 74 74
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[()])/
!ll&&!rl&&r
0740
($lastsep = $1) && ''
!ll
074
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[()])/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[()])/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[()])/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
6112 {
6113 0 $text = $_savetext;
6114 0 $expectation->failed();
6115 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6116 Parse::RecDescent::_tracefirst($text))
6117 if defined $::RD_TRACE;
6118  
6119 0 last;
6120 }
6121 74 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6122 74 substr($text,0,length($current_match),q{});
6123 74 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
6124 . $current_match . q{])},
6125 Parse::RecDescent::_tracefirst($text))
6126 if defined $::RD_TRACE;
6127 74 push @item, $item{__PATTERN1__}=$current_match;
6128 74 $text = $_savetext;
6129  
6130 74 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
6131 Parse::RecDescent::_tracefirst($text),
6132 q{bodysize},
6133 $tracelevel)
6134 if defined $::RD_TRACE;
6135 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6136 74 $expectation->is(q{NIL})->at($text);
6137 74 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 74 0 74
6138 {
6139
6140 74 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
6141 Parse::RecDescent::_tracefirst($text),
6142 q{bodysize},
6143 $tracelevel)
6144 if defined $::RD_TRACE;
6145 74 $expectation->failed();
6146 74 last;
6147 }
6148 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6149 . $_tok . q{]},
6150  
6151 Parse::RecDescent::_tracefirst($text),
6152 q{bodysize},
6153 $tracelevel)
6154 if defined $::RD_TRACE;
6155 0 $item{q{NIL}} = $_tok;
6156 0 push @item, $_tok;
6157
6158 }
6159  
6160 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/[()]/ NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6161 Parse::RecDescent::_tracefirst($text),
6162 q{bodysize},
6163 $tracelevel)
6164 if defined $::RD_TRACE;
6165  
6166  
6167  
6168 0 $_matched = 1;
6169 0 last;
6170 }
6171  
6172 splice
6173 74 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 74 0 74
6174
6175 74 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 74 0 74
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0074
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6176 {
6177
6178 74 ▶ Parse::RecDescent::_trace(q{Trying production: [NUMBER]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
6179 Parse::RecDescent::_tracefirst($_[1]),
6180 q{bodysize},
6181 $tracelevel)
6182 if defined $::RD_TRACE;
6183 74 my $thisprod = $thisrule->{"prods"}[1];
6184 74 $text = $_[1];
6185 74 my $_savetext;
6186 74 @item = (q{bodysize});
6187 74 %item = (__RULE__ => q{bodysize});
6188 74 my $repcount = 0;
6189  
6190  
6191 74 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NUMBER]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
6192 Parse::RecDescent::_tracefirst($text),
6193 q{bodysize},
6194 $tracelevel)
6195 if defined $::RD_TRACE;
6196 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6197 74 $expectation->is(q{})->at($text);
6198 74 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NUMBER($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NUMBER($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 74 74
6199 {
6200
6201 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NUMBER]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6202 Parse::RecDescent::_tracefirst($text),
6203 q{bodysize},
6204 $tracelevel)
6205 if defined $::RD_TRACE;
6206 0 $expectation->failed();
6207 0 last;
6208 }
6209 74 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NUMBER]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
6210 . $_tok . q{]},
6211  
6212 Parse::RecDescent::_tracefirst($text),
6213 q{bodysize},
6214 $tracelevel)
6215 if defined $::RD_TRACE;
6216 74 $item{q{NUMBER}} = $_tok;
6217 74 push @item, $_tok;
6218
6219 }
6220  
6221 74 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NUMBER]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 74 74
6222 Parse::RecDescent::_tracefirst($text),
6223 q{bodysize},
6224 $tracelevel)
6225 if defined $::RD_TRACE;
6226  
6227  
6228  
6229 74 $_matched = 1;
6230 74 last;
6231 }
6232  
6233 splice
6234 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 74 74
6235
6236 74 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 74 74
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
7400
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
6237 {
6238 0 splice @{$thisparser->{deferred}}, $def_at;
6239
6240  
6241 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
6242 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6243 Parse::RecDescent::_tracefirst($_[1]),
6244 q{bodysize},
6245 $tracelevel)
6246 if defined $::RD_TRACE;
6247 0 return undef;
6248 }
6249 74 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 74 74
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0740
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
6250 {
6251 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6252 q{bodysize},
6253 $tracelevel)
6254 if defined $::RD_TRACE;
6255 0 $return = $score_return;
6256 }
6257 74 splice @{$thisparser->{errors}}, $err_at;
6258 74 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 74 0 74
6259 74 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 74 74
6260 {
6261 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
6262 $return . q{])}, "",
6263 q{bodysize},
6264 $tracelevel);
6265 0 Parse::RecDescent::_trace(q{(consumed: [} .
6266 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
6267 Parse::RecDescent::_tracefirst($text),
6268 , q{bodysize},
6269 $tracelevel)
6270 }
6271 74 $_[1] = $text;
6272 74 return $return;
6273 }
6274  
6275 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6276 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodystructure
6277 21 ▶{
Subroutine bodystructure: called CC=45 SCAR=46.3
6278 21 my $thisparser = $_[0];
6279 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6280 21 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
210
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
6281 21 $ERRORS = 0;
6282 21 my $thisrule = $thisparser->{"rules"}{"bodystructure"};
6283  
6284 21 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodystructure]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
6285 Parse::RecDescent::_tracefirst($_[1]),
6286 q{bodystructure},
6287 $tracelevel)
6288 if defined $::RD_TRACE;
6289  
6290 21 my $def_at = @{$thisparser->{deferred}};
6291 21 my $err_at = @{$thisparser->{errors}};
6292  
6293 21 my $score;
6294 my $score_return;
6295 21 my $_tok;
6296 21 my $return = undef;
6297 21 my $_matched=0;
6298 21 my $commit=0;
6299 21 my @item = ();
6300 21 my %item = ();
6301 21 my $repeating = $_[2];
6302 21 my $_noactions = $_[3];
6303 21 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 21 0 21
6304 21 my $_itempos = $_[5];
6305 21 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 21 0 21
6306 21 my $text;
6307 my $lastsep;
6308 21 my $current_match;
6309 21 my $expectation = new Parse::RecDescent::Expectation(q{'('});
6310 21 $expectation->at($_[1]);
6311
6312 21 my $thisline;
6313 21 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
6314  
6315
6316  
6317 21 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 21 0 21
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0021
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6318 {
6319
6320 21 ▶ Parse::RecDescent::_trace(q{Trying production: ['(' part ')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
6321 Parse::RecDescent::_tracefirst($_[1]),
6322 q{bodystructure},
6323 $tracelevel)
6324 if defined $::RD_TRACE;
6325 21 my $thisprod = $thisrule->{"prods"}[0];
6326 21 $text = $_[1];
6327 21 my $_savetext;
6328 21 @item = (q{bodystructure});
6329 21 %item = (__RULE__ => q{bodystructure});
6330 21 my $repcount = 0;
6331  
6332  
6333 21 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['(']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
6334 Parse::RecDescent::_tracefirst($text),
6335 q{bodystructure},
6336 $tracelevel)
6337 if defined $::RD_TRACE;
6338 21 undef $lastsep;
6339 21 $expectation->is(q{})->at($text);
6340
6341  
6342 21 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "("; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 1 20 21
Condition63%7/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
1020
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0120
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 }
!ll&&!rl&&r
0021
($lastsep = $1) && ''
!ll
120
MC/DC25%1/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = "("; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table40%2/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = "("; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
6343 substr($text,0,length($_tok)) eq $_tok and
6344 20 do { substr($text,0,length($_tok)) = ""; 1; }
6345 )
6346 {
6347 1 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 1 0 1
6348
6349 1 $expectation->failed();
6350 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6351 Parse::RecDescent::_tracefirst($text))
6352 if defined $::RD_TRACE;
6353 1 last;
6354 }
6355 20 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
6356 . $_tok . q{])},
6357 Parse::RecDescent::_tracefirst($text))
6358 if defined $::RD_TRACE;
6359 20 push @item, $item{__STRING1__}=$_tok;
6360
6361  
6362 20 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [part]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
6363 Parse::RecDescent::_tracefirst($text),
6364 q{bodystructure},
6365 $tracelevel)
6366 if defined $::RD_TRACE;
6367 20 $expectation->is(q{part})->at($text);
6368
6369 20 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::part, 1, 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::Mail::IMAPClient::BodyStructure::Parse::part, 1, 100000000, $_noactions, $expectation, sub { \@arg; } , undef))) 0 20 20
6370 {
6371 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [part]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6372 Parse::RecDescent::_tracefirst($text),
6373 q{bodystructure},
6374 $tracelevel)
6375 if defined $::RD_TRACE;
6376 0 last;
6377 }
6378 20 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [part]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
6379 . @$_tok . q{ times)},
6380  
6381 Parse::RecDescent::_tracefirst($text),
6382 q{bodystructure},
6383 $tracelevel)
6384 if defined $::RD_TRACE;
6385 20 $item{q{part(s)}} = $_tok;
6386 20 push @item, $_tok;
6387
6388  
6389  
6390 20 ▶ Parse::RecDescent::_trace(q{Trying terminal: [')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
6391 Parse::RecDescent::_tracefirst($text),
6392 q{bodystructure},
6393 $tracelevel)
6394 if defined $::RD_TRACE;
6395 20 undef $lastsep;
6396 20 $expectation->is(q{')'})->at($text);
6397
6398  
6399 20 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = ")"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 20 20
Condition36%4/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
0020
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0020
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 }
!ll&&!rl&&r
0020
($lastsep = $1) && ''
!ll
200
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = ")"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table20%1/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = ")"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
6400 substr($text,0,length($_tok)) eq $_tok and
6401 20 do { substr($text,0,length($_tok)) = ""; 1; }
6402 )
6403 {
6404 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
6405
6406 0 $expectation->failed();
6407 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6408 Parse::RecDescent::_tracefirst($text))
6409 if defined $::RD_TRACE;
6410 0 last;
6411 }
6412 20 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
6413 . $_tok . q{])},
6414 Parse::RecDescent::_tracefirst($text))
6415 if defined $::RD_TRACE;
6416 20 push @item, $item{__STRING2__}=$_tok;
6417
6418  
6419 20 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
6420 Parse::RecDescent::_tracefirst($text),
6421 q{bodystructure},
6422 $tracelevel)
6423 if defined $::RD_TRACE;
6424
6425  
6426 20 ▶ $_tok = ($_noactions) ? 0 : do { $return = $item{'part(s)'} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 20 20
6427 20 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 20 20
6428 {
6429 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6430 if defined $::RD_TRACE;
6431 0 last;
6432 }
6433 20 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
6434 . $_tok . q{])},
6435 Parse::RecDescent::_tracefirst($text))
6436 if defined $::RD_TRACE;
6437 20 push @item, $_tok;
6438 20 $item{__ACTION1__}=$_tok;
6439
6440  
6441 20 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['(' part ')']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
6442 Parse::RecDescent::_tracefirst($text),
6443 q{bodystructure},
6444 $tracelevel)
6445 if defined $::RD_TRACE;
6446  
6447  
6448  
6449 20 $_matched = 1;
6450 20 last;
6451 }
6452  
6453 splice
6454 21 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 1 20 21
6455
6456 21 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 1 20 21
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
2001
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
6457 {
6458 1 splice @{$thisparser->{deferred}}, $def_at;
6459
6460  
6461 1 $_[1] = $text; # NOT SURE THIS IS NEEDED
6462 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6463 Parse::RecDescent::_tracefirst($_[1]),
6464 q{bodystructure},
6465 $tracelevel)
6466 if defined $::RD_TRACE;
6467 1 return undef;
6468 }
6469 20 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 20 20
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
2000
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
6470 {
6471 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6472 q{bodystructure},
6473 $tracelevel)
6474 if defined $::RD_TRACE;
6475 0 $return = $score_return;
6476 }
6477 20 splice @{$thisparser->{errors}}, $err_at;
6478 20 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 20 20
6479 20 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 20 20
6480 {
6481 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
6482 $return . q{])}, "",
6483 q{bodystructure},
6484 $tracelevel);
6485 0 Parse::RecDescent::_trace(q{(consumed: [} .
6486 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
6487 Parse::RecDescent::_tracefirst($text),
6488 , q{bodystructure},
6489 $tracelevel)
6490 }
6491 20 $_[1] = $text;
6492 20 return $return;
6493 }
6494  
6495 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6496 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodysubtype
6497 84 ▶{
Subroutine bodysubtype: called CC=49 SCAR=45.1
6498 84 my $thisparser = $_[0];
6499 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6500 84 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
840
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
6501 84 $ERRORS = 0;
6502 84 my $thisrule = $thisparser->{"rules"}{"bodysubtype"};
6503  
6504 84 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodysubtype]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
6505 Parse::RecDescent::_tracefirst($_[1]),
6506 q{bodysubtype},
6507 $tracelevel)
6508 if defined $::RD_TRACE;
6509  
6510 84 my $def_at = @{$thisparser->{deferred}};
6511 84 my $err_at = @{$thisparser->{errors}};
6512  
6513 84 my $score;
6514 my $score_return;
6515 84 my $_tok;
6516 84 my $return = undef;
6517 84 my $_matched=0;
6518 84 my $commit=0;
6519 84 my @item = ();
6520 84 my %item = ();
6521 84 my $repeating = $_[2];
6522 84 my $_noactions = $_[3];
6523 84 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 84 0 84
6524 84 my $_itempos = $_[5];
6525 84 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 84 0 84
6526 84 my $text;
6527 my $lastsep;
6528 84 my $current_match;
6529 84 my $expectation = new Parse::RecDescent::Expectation(q{PLAIN, or HTML, or NIL, or STRING});
6530 84 $expectation->at($_[1]);
6531
6532 84 my $thisline;
6533 84 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
6534  
6535
6536  
6537 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
6538 {
6539
6540 84 ▶ Parse::RecDescent::_trace(q{Trying production: [PLAIN]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
6541 Parse::RecDescent::_tracefirst($_[1]),
6542 q{bodysubtype},
6543 $tracelevel)
6544 if defined $::RD_TRACE;
6545 84 my $thisprod = $thisrule->{"prods"}[0];
6546 84 $text = $_[1];
6547 84 my $_savetext;
6548 84 @item = (q{bodysubtype});
6549 84 %item = (__RULE__ => q{bodysubtype});
6550 84 my $repcount = 0;
6551  
6552  
6553 84 ▶ Parse::RecDescent::_trace(q{Trying subrule: [PLAIN]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
6554 Parse::RecDescent::_tracefirst($text),
6555 q{bodysubtype},
6556 $tracelevel)
6557 if defined $::RD_TRACE;
6558 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6559 84 $expectation->is(q{})->at($text);
6560 84 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::PLAIN($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PLAIN($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 53 31 84
6561 {
6562
6563 53 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [PLAIN]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
6564 Parse::RecDescent::_tracefirst($text),
6565 q{bodysubtype},
6566 $tracelevel)
6567 if defined $::RD_TRACE;
6568 53 $expectation->failed();
6569 53 last;
6570 }
6571 31 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [PLAIN]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
6572 . $_tok . q{]},
6573  
6574 Parse::RecDescent::_tracefirst($text),
6575 q{bodysubtype},
6576 $tracelevel)
6577 if defined $::RD_TRACE;
6578 31 $item{q{PLAIN}} = $_tok;
6579 31 push @item, $_tok;
6580
6581 }
6582  
6583 31 ▶ Parse::RecDescent::_trace(q{>>Matched production: [PLAIN]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
6584 Parse::RecDescent::_tracefirst($text),
6585 q{bodysubtype},
6586 $tracelevel)
6587 if defined $::RD_TRACE;
6588  
6589  
6590  
6591 31 $_matched = 1;
6592 31 last;
6593 }
6594  
6595 splice
6596 84 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 53 31 84
6597
6598 84 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 53 31 84
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
31053
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6599 {
6600
6601 53 ▶ Parse::RecDescent::_trace(q{Trying production: [HTML]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
6602 Parse::RecDescent::_tracefirst($_[1]),
6603 q{bodysubtype},
6604 $tracelevel)
6605 if defined $::RD_TRACE;
6606 53 my $thisprod = $thisrule->{"prods"}[1];
6607 53 $text = $_[1];
6608 53 my $_savetext;
6609 53 @item = (q{bodysubtype});
6610 53 %item = (__RULE__ => q{bodysubtype});
6611 53 my $repcount = 0;
6612  
6613  
6614 53 ▶ Parse::RecDescent::_trace(q{Trying subrule: [HTML]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
6615 Parse::RecDescent::_tracefirst($text),
6616 q{bodysubtype},
6617 $tracelevel)
6618 if defined $::RD_TRACE;
6619 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6620 53 $expectation->is(q{})->at($text);
6621 53 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::HTML($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = HTML($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 44 9 53
6622 {
6623
6624 44 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [HTML]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
6625 Parse::RecDescent::_tracefirst($text),
6626 q{bodysubtype},
6627 $tracelevel)
6628 if defined $::RD_TRACE;
6629 44 $expectation->failed();
6630 44 last;
6631 }
6632 9 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [HTML]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
6633 . $_tok . q{]},
6634  
6635 Parse::RecDescent::_tracefirst($text),
6636 q{bodysubtype},
6637 $tracelevel)
6638 if defined $::RD_TRACE;
6639 9 $item{q{HTML}} = $_tok;
6640 9 push @item, $_tok;
6641
6642 }
6643  
6644 9 ▶ Parse::RecDescent::_trace(q{>>Matched production: [HTML]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
6645 Parse::RecDescent::_tracefirst($text),
6646 q{bodysubtype},
6647 $tracelevel)
6648 if defined $::RD_TRACE;
6649  
6650  
6651  
6652 9 $_matched = 1;
6653 9 last;
6654 }
6655  
6656 splice
6657 84 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 44 40 84
6658
6659 84 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 44 40 84
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
40044
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6660 {
6661
6662 44 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
6663 Parse::RecDescent::_tracefirst($_[1]),
6664 q{bodysubtype},
6665 $tracelevel)
6666 if defined $::RD_TRACE;
6667 44 my $thisprod = $thisrule->{"prods"}[2];
6668 44 $text = $_[1];
6669 44 my $_savetext;
6670 44 @item = (q{bodysubtype});
6671 44 %item = (__RULE__ => q{bodysubtype});
6672 44 my $repcount = 0;
6673  
6674  
6675 44 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
6676 Parse::RecDescent::_tracefirst($text),
6677 q{bodysubtype},
6678 $tracelevel)
6679 if defined $::RD_TRACE;
6680 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6681 44 $expectation->is(q{})->at($text);
6682 44 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 44 0 44
6683 {
6684
6685 44 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
6686 Parse::RecDescent::_tracefirst($text),
6687 q{bodysubtype},
6688 $tracelevel)
6689 if defined $::RD_TRACE;
6690 44 $expectation->failed();
6691 44 last;
6692 }
6693 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6694 . $_tok . q{]},
6695  
6696 Parse::RecDescent::_tracefirst($text),
6697 q{bodysubtype},
6698 $tracelevel)
6699 if defined $::RD_TRACE;
6700 0 $item{q{NIL}} = $_tok;
6701 0 push @item, $_tok;
6702
6703 }
6704  
6705 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6706 Parse::RecDescent::_tracefirst($text),
6707 q{bodysubtype},
6708 $tracelevel)
6709 if defined $::RD_TRACE;
6710  
6711  
6712  
6713 0 $_matched = 1;
6714 0 last;
6715 }
6716  
6717 splice
6718 84 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 44 40 84
6719
6720 84 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 44 40 84
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
40044
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6721 {
6722
6723 44 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
6724 Parse::RecDescent::_tracefirst($_[1]),
6725 q{bodysubtype},
6726 $tracelevel)
6727 if defined $::RD_TRACE;
6728 44 my $thisprod = $thisrule->{"prods"}[3];
6729 44 $text = $_[1];
6730 44 my $_savetext;
6731 44 @item = (q{bodysubtype});
6732 44 %item = (__RULE__ => q{bodysubtype});
6733 44 my $repcount = 0;
6734  
6735  
6736 44 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
6737 Parse::RecDescent::_tracefirst($text),
6738 q{bodysubtype},
6739 $tracelevel)
6740 if defined $::RD_TRACE;
6741 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6742 44 $expectation->is(q{})->at($text);
6743 44 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 44 44
6744 {
6745
6746 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6747 Parse::RecDescent::_tracefirst($text),
6748 q{bodysubtype},
6749 $tracelevel)
6750 if defined $::RD_TRACE;
6751 0 $expectation->failed();
6752 0 last;
6753 }
6754 44 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
6755 . $_tok . q{]},
6756  
6757 Parse::RecDescent::_tracefirst($text),
6758 q{bodysubtype},
6759 $tracelevel)
6760 if defined $::RD_TRACE;
6761 44 $item{q{STRING}} = $_tok;
6762 44 push @item, $_tok;
6763
6764 }
6765  
6766 44 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
6767 Parse::RecDescent::_tracefirst($text),
6768 q{bodysubtype},
6769 $tracelevel)
6770 if defined $::RD_TRACE;
6771  
6772  
6773  
6774 44 $_matched = 1;
6775 44 last;
6776 }
6777  
6778 splice
6779 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 84 84
6780
6781 84 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 84 84
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
8400
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
6782 {
6783 0 splice @{$thisparser->{deferred}}, $def_at;
6784
6785  
6786 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
6787 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6788 Parse::RecDescent::_tracefirst($_[1]),
6789 q{bodysubtype},
6790 $tracelevel)
6791 if defined $::RD_TRACE;
6792 0 return undef;
6793 }
6794 84 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 84 84
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0840
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
6795 {
6796 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6797 q{bodysubtype},
6798 $tracelevel)
6799 if defined $::RD_TRACE;
6800 0 $return = $score_return;
6801 }
6802 84 splice @{$thisparser->{errors}}, $err_at;
6803 84 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 84 0 84
6804 84 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 84 84
6805 {
6806 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
6807 $return . q{])}, "",
6808 q{bodysubtype},
6809 $tracelevel);
6810 0 Parse::RecDescent::_trace(q{(consumed: [} .
6811 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
6812 Parse::RecDescent::_tracefirst($text),
6813 , q{bodysubtype},
6814 $tracelevel)
6815 }
6816 84 $_[1] = $text;
6817 84 return $return;
6818 }
6819  
6820 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6821 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodytype
6822 32 ▶{
Subroutine bodytype: called CC=22 SCAR=32.7
6823 32 my $thisparser = $_[0];
6824 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6825 32 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
320
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
6826 32 $ERRORS = 0;
6827 32 my $thisrule = $thisparser->{"rules"}{"bodytype"};
6828  
6829 32 ▶ Parse::RecDescent::_trace(q{Trying rule: [bodytype]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
6830 Parse::RecDescent::_tracefirst($_[1]),
6831 q{bodytype},
6832 $tracelevel)
6833 if defined $::RD_TRACE;
6834  
6835 32 my $def_at = @{$thisparser->{deferred}};
6836 32 my $err_at = @{$thisparser->{errors}};
6837  
6838 32 my $score;
6839 my $score_return;
6840 32 my $_tok;
6841 32 my $return = undef;
6842 32 my $_matched=0;
6843 32 my $commit=0;
6844 32 my @item = ();
6845 32 my %item = ();
6846 32 my $repeating = $_[2];
6847 32 my $_noactions = $_[3];
6848 32 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 32 0 32
6849 32 my $_itempos = $_[5];
6850 32 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 32 0 32
6851 32 my $text;
6852 my $lastsep;
6853 32 my $current_match;
6854 32 my $expectation = new Parse::RecDescent::Expectation(q{STRING});
6855 32 $expectation->at($_[1]);
6856
6857 32 my $thisline;
6858 32 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
6859  
6860
6861  
6862 32 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 32 0 32
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0032
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6863 {
6864
6865 32 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
6866 Parse::RecDescent::_tracefirst($_[1]),
6867 q{bodytype},
6868 $tracelevel)
6869 if defined $::RD_TRACE;
6870 32 my $thisprod = $thisrule->{"prods"}[0];
6871 32 $text = $_[1];
6872 32 my $_savetext;
6873 32 @item = (q{bodytype});
6874 32 %item = (__RULE__ => q{bodytype});
6875 32 my $repcount = 0;
6876  
6877  
6878 32 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
6879 Parse::RecDescent::_tracefirst($text),
6880 q{bodytype},
6881 $tracelevel)
6882 if defined $::RD_TRACE;
6883 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6884 32 $expectation->is(q{})->at($text);
6885 32 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 20 12 32
6886 {
6887
6888 20 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
6889 Parse::RecDescent::_tracefirst($text),
6890 q{bodytype},
6891 $tracelevel)
6892 if defined $::RD_TRACE;
6893 20 $expectation->failed();
6894 20 last;
6895 }
6896 12 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
6897 . $_tok . q{]},
6898  
6899 Parse::RecDescent::_tracefirst($text),
6900 q{bodytype},
6901 $tracelevel)
6902 if defined $::RD_TRACE;
6903 12 $item{q{STRING}} = $_tok;
6904 12 push @item, $_tok;
6905
6906 }
6907  
6908 12 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
6909 Parse::RecDescent::_tracefirst($text),
6910 q{bodytype},
6911 $tracelevel)
6912 if defined $::RD_TRACE;
6913  
6914  
6915  
6916 12 $_matched = 1;
6917 12 last;
6918 }
6919  
6920 splice
6921 32 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 20 12 32
6922
6923 32 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 20 12 32
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
12020
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
6924 {
6925 20 splice @{$thisparser->{deferred}}, $def_at;
6926
6927  
6928 20 $_[1] = $text; # NOT SURE THIS IS NEEDED
6929 20 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
6930 Parse::RecDescent::_tracefirst($_[1]),
6931 q{bodytype},
6932 $tracelevel)
6933 if defined $::RD_TRACE;
6934 20 return undef;
6935 }
6936 12 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 12 12
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0120
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
6937 {
6938 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6939 q{bodytype},
6940 $tracelevel)
6941 if defined $::RD_TRACE;
6942 0 $return = $score_return;
6943 }
6944 12 splice @{$thisparser->{errors}}, $err_at;
6945 12 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 12 0 12
6946 12 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 12 12
6947 {
6948 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
6949 $return . q{])}, "",
6950 q{bodytype},
6951 $tracelevel);
6952 0 Parse::RecDescent::_trace(q{(consumed: [} .
6953 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
6954 Parse::RecDescent::_tracefirst($text),
6955 , q{bodytype},
6956 $tracelevel)
6957 }
6958 12 $_[1] = $text;
6959 12 return $return;
6960 }
6961  
6962 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6963 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::cc
6964 24 ▶{
Subroutine cc: called CC=22 SCAR=36.8
6965 24 my $thisparser = $_[0];
6966 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6967 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
240
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
6968 24 $ERRORS = 0;
6969 24 my $thisrule = $thisparser->{"rules"}{"cc"};
6970  
6971 24 ▶ Parse::RecDescent::_trace(q{Trying rule: [cc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
6972 Parse::RecDescent::_tracefirst($_[1]),
6973 q{cc},
6974 $tracelevel)
6975 if defined $::RD_TRACE;
6976  
6977 24 my $def_at = @{$thisparser->{deferred}};
6978 24 my $err_at = @{$thisparser->{errors}};
6979  
6980 24 my $score;
6981 my $score_return;
6982 24 my $_tok;
6983 24 my $return = undef;
6984 24 my $_matched=0;
6985 24 my $commit=0;
6986 24 my @item = ();
6987 24 my %item = ();
6988 24 my $repeating = $_[2];
6989 24 my $_noactions = $_[3];
6990 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
6991 24 my $_itempos = $_[5];
6992 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 24 0 24
6993 24 my $text;
6994 my $lastsep;
6995 24 my $current_match;
6996 24 my $expectation = new Parse::RecDescent::Expectation(q{ADDRESSES});
6997 24 $expectation->at($_[1]);
6998
6999 24 my $thisline;
7000 24 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
7001  
7002
7003  
7004 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7005 {
7006
7007 24 ▶ Parse::RecDescent::_trace(q{Trying production: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7008 Parse::RecDescent::_tracefirst($_[1]),
7009 q{cc},
7010 $tracelevel)
7011 if defined $::RD_TRACE;
7012 24 my $thisprod = $thisrule->{"prods"}[0];
7013 24 $text = $_[1];
7014 24 my $_savetext;
7015 24 @item = (q{cc});
7016 24 %item = (__RULE__ => q{cc});
7017 24 my $repcount = 0;
7018  
7019  
7020 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7021 Parse::RecDescent::_tracefirst($text),
7022 q{cc},
7023 $tracelevel)
7024 if defined $::RD_TRACE;
7025 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7026 24 $expectation->is(q{})->at($text);
7027 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::ADDRESSES($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = ADDRESSES($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7028 {
7029
7030 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [ADDRESSES]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7031 Parse::RecDescent::_tracefirst($text),
7032 q{cc},
7033 $tracelevel)
7034 if defined $::RD_TRACE;
7035 0 $expectation->failed();
7036 0 last;
7037 }
7038 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [ADDRESSES]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7039 . $_tok . q{]},
7040  
7041 Parse::RecDescent::_tracefirst($text),
7042 q{cc},
7043 $tracelevel)
7044 if defined $::RD_TRACE;
7045 24 $item{q{ADDRESSES}} = $_tok;
7046 24 push @item, $_tok;
7047
7048 }
7049  
7050 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [ADDRESSES]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7051 Parse::RecDescent::_tracefirst($text),
7052 q{cc},
7053 $tracelevel)
7054 if defined $::RD_TRACE;
7055  
7056  
7057  
7058 24 $_matched = 1;
7059 24 last;
7060 }
7061  
7062 splice
7063 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 24 24
7064
7065 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
7066 {
7067 0 splice @{$thisparser->{deferred}}, $def_at;
7068
7069  
7070 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
7071 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7072 Parse::RecDescent::_tracefirst($_[1]),
7073 q{cc},
7074 $tracelevel)
7075 if defined $::RD_TRACE;
7076 0 return undef;
7077 }
7078 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0240
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
7079 {
7080 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7081 q{cc},
7082 $tracelevel)
7083 if defined $::RD_TRACE;
7084 0 $return = $score_return;
7085 }
7086 24 splice @{$thisparser->{errors}}, $err_at;
7087 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
7088 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
7089 {
7090 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
7091 $return . q{])}, "",
7092 q{cc},
7093 $tracelevel);
7094 0 Parse::RecDescent::_trace(q{(consumed: [} .
7095 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
7096 Parse::RecDescent::_tracefirst($text),
7097 , q{cc},
7098 $tracelevel)
7099 }
7100 24 $_[1] = $text;
7101 24 return $return;
7102 }
7103  
7104 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
7105 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::date
7106 24 ▶{
Subroutine date: called CC=31 SCAR=42.7
7107 24 my $thisparser = $_[0];
7108 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7109 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
240
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
7110 24 $ERRORS = 0;
7111 24 my $thisrule = $thisparser->{"rules"}{"date"};
7112  
7113 24 ▶ Parse::RecDescent::_trace(q{Trying rule: [date]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7114 Parse::RecDescent::_tracefirst($_[1]),
7115 q{date},
7116 $tracelevel)
7117 if defined $::RD_TRACE;
7118  
7119 24 my $def_at = @{$thisparser->{deferred}};
7120 24 my $err_at = @{$thisparser->{errors}};
7121  
7122 24 my $score;
7123 my $score_return;
7124 24 my $_tok;
7125 24 my $return = undef;
7126 24 my $_matched=0;
7127 24 my $commit=0;
7128 24 my @item = ();
7129 24 my %item = ();
7130 24 my $repeating = $_[2];
7131 24 my $_noactions = $_[3];
7132 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
7133 24 my $_itempos = $_[5];
7134 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 24 0 24
7135 24 my $text;
7136 my $lastsep;
7137 24 my $current_match;
7138 24 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING});
7139 24 $expectation->at($_[1]);
7140
7141 24 my $thisline;
7142 24 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
7143  
7144
7145  
7146 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7147 {
7148
7149 24 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7150 Parse::RecDescent::_tracefirst($_[1]),
7151 q{date},
7152 $tracelevel)
7153 if defined $::RD_TRACE;
7154 24 my $thisprod = $thisrule->{"prods"}[0];
7155 24 $text = $_[1];
7156 24 my $_savetext;
7157 24 @item = (q{date});
7158 24 %item = (__RULE__ => q{date});
7159 24 my $repcount = 0;
7160  
7161  
7162 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7163 Parse::RecDescent::_tracefirst($text),
7164 q{date},
7165 $tracelevel)
7166 if defined $::RD_TRACE;
7167 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7168 24 $expectation->is(q{})->at($text);
7169 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 24 0 24
7170 {
7171
7172 24 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7173 Parse::RecDescent::_tracefirst($text),
7174 q{date},
7175 $tracelevel)
7176 if defined $::RD_TRACE;
7177 24 $expectation->failed();
7178 24 last;
7179 }
7180 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7181 . $_tok . q{]},
7182  
7183 Parse::RecDescent::_tracefirst($text),
7184 q{date},
7185 $tracelevel)
7186 if defined $::RD_TRACE;
7187 0 $item{q{NIL}} = $_tok;
7188 0 push @item, $_tok;
7189
7190 }
7191  
7192 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7193 Parse::RecDescent::_tracefirst($text),
7194 q{date},
7195 $tracelevel)
7196 if defined $::RD_TRACE;
7197  
7198  
7199  
7200 0 $_matched = 1;
7201 0 last;
7202 }
7203  
7204 splice
7205 24 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 24 0 24
7206
7207 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7208 {
7209
7210 24 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7211 Parse::RecDescent::_tracefirst($_[1]),
7212 q{date},
7213 $tracelevel)
7214 if defined $::RD_TRACE;
7215 24 my $thisprod = $thisrule->{"prods"}[1];
7216 24 $text = $_[1];
7217 24 my $_savetext;
7218 24 @item = (q{date});
7219 24 %item = (__RULE__ => q{date});
7220 24 my $repcount = 0;
7221  
7222  
7223 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7224 Parse::RecDescent::_tracefirst($text),
7225 q{date},
7226 $tracelevel)
7227 if defined $::RD_TRACE;
7228 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7229 24 $expectation->is(q{})->at($text);
7230 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7231 {
7232
7233 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7234 Parse::RecDescent::_tracefirst($text),
7235 q{date},
7236 $tracelevel)
7237 if defined $::RD_TRACE;
7238 0 $expectation->failed();
7239 0 last;
7240 }
7241 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7242 . $_tok . q{]},
7243  
7244 Parse::RecDescent::_tracefirst($text),
7245 q{date},
7246 $tracelevel)
7247 if defined $::RD_TRACE;
7248 24 $item{q{STRING}} = $_tok;
7249 24 push @item, $_tok;
7250
7251 }
7252  
7253 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7254 Parse::RecDescent::_tracefirst($text),
7255 q{date},
7256 $tracelevel)
7257 if defined $::RD_TRACE;
7258  
7259  
7260  
7261 24 $_matched = 1;
7262 24 last;
7263 }
7264  
7265 splice
7266 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 24 24
7267
7268 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
7269 {
7270 0 splice @{$thisparser->{deferred}}, $def_at;
7271
7272  
7273 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
7274 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7275 Parse::RecDescent::_tracefirst($_[1]),
7276 q{date},
7277 $tracelevel)
7278 if defined $::RD_TRACE;
7279 0 return undef;
7280 }
7281 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0240
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
7282 {
7283 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7284 q{date},
7285 $tracelevel)
7286 if defined $::RD_TRACE;
7287 0 $return = $score_return;
7288 }
7289 24 splice @{$thisparser->{errors}}, $err_at;
7290 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
7291 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
7292 {
7293 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
7294 $return . q{])}, "",
7295 q{date},
7296 $tracelevel);
7297 0 Parse::RecDescent::_trace(q{(consumed: [} .
7298 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
7299 Parse::RecDescent::_tracefirst($text),
7300 , q{date},
7301 $tracelevel)
7302 }
7303 24 $_[1] = $text;
7304 24 return $return;
7305 }
7306  
7307 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
7308 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::envelope
7309 1 ▶{
Subroutine envelope: called CC=41 SCAR=49.3
7310 1 my $thisparser = $_[0];
7311 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7312 1 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
01
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
7313 1 $ERRORS = 0;
7314 1 my $thisrule = $thisparser->{"rules"}{"envelope"};
7315  
7316 1 ▶ Parse::RecDescent::_trace(q{Trying rule: [envelope]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7317 Parse::RecDescent::_tracefirst($_[1]),
7318 q{envelope},
7319 $tracelevel)
7320 if defined $::RD_TRACE;
7321  
7322 1 my $def_at = @{$thisparser->{deferred}};
7323 1 my $err_at = @{$thisparser->{errors}};
7324  
7325 1 my $score;
7326 my $score_return;
7327 1 my $_tok;
7328 1 my $return = undef;
7329 1 my $_matched=0;
7330 1 my $commit=0;
7331 1 my @item = ();
7332 1 my %item = ();
7333 1 my $repeating = $_[2];
7334 1 my $_noactions = $_[3];
7335 1 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 1 0 1
7336 1 my $_itempos = $_[5];
7337 1 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 1 0 1
7338 1 my $text;
7339 my $lastsep;
7340 1 my $current_match;
7341 1 my $expectation = new Parse::RecDescent::Expectation(q{/.*?\\(.*?ENVELOPE/});
7342 1 $expectation->at($_[1]);
7343
7344 1 my $thisline;
7345 1 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
7346  
7347
7348  
7349 1 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 1 0 1
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
001
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7350 {
7351
7352 1 ▶ Parse::RecDescent::_trace(q{Trying production: [/.*?\\(.*?ENVELOPE/ envelopestruct /.*\\)/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7353 Parse::RecDescent::_tracefirst($_[1]),
7354 q{envelope},
7355 $tracelevel)
7356 if defined $::RD_TRACE;
7357 1 my $thisprod = $thisrule->{"prods"}[0];
7358 1 $text = $_[1];
7359 1 my $_savetext;
7360 1 @item = (q{envelope});
7361 1 %item = (__RULE__ => q{envelope});
7362 1 my $repcount = 0;
7363  
7364  
7365 1 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/.*?\\(.*?ENVELOPE/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7366 q{envelope},
7367 $tracelevel)
7368 if defined $::RD_TRACE;
7369 1 undef $lastsep;
7370 1 $expectation->is(q{})->at($text);
7371
7372  
7373 1 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:.*?\(.*?ENVELOPE)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?\(.*?ENVELOPE)/) 0 1 1
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?\(.*?ENVELOPE)/
!ll&&!rl&&r
001
($lastsep = $1) && ''
!ll
10
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?\(.*?ENVELOPE)/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:.*?\(.*?ENVELOPE)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:.*?\(.*?ENVELOPE)/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
7374 {
7375 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
7376 0 $expectation->failed();
7377 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7378 Parse::RecDescent::_tracefirst($text))
7379 if defined $::RD_TRACE;
7380  
7381 0 last;
7382 }
7383 1 $current_match = substr($text, $-[0], $+[0] - $-[0]);
7384 1 substr($text,0,length($current_match),q{});
7385 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7386 . $current_match . q{])},
7387 Parse::RecDescent::_tracefirst($text))
7388 if defined $::RD_TRACE;
7389 1 push @item, $item{__PATTERN1__}=$current_match;
7390
7391  
7392 1 ▶ Parse::RecDescent::_trace(q{Trying subrule: [envelopestruct]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7393 Parse::RecDescent::_tracefirst($text),
7394 q{envelope},
7395 $tracelevel)
7396 if defined $::RD_TRACE;
7397 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7398 1 $expectation->is(q{envelopestruct})->at($text);
7399 1 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::envelopestruct($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = envelopestruct($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 1 1
7400 {
7401
7402 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [envelopestruct]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7403 Parse::RecDescent::_tracefirst($text),
7404 q{envelope},
7405 $tracelevel)
7406 if defined $::RD_TRACE;
7407 0 $expectation->failed();
7408 0 last;
7409 }
7410 1 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [envelopestruct]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7411 . $_tok . q{]},
7412  
7413 Parse::RecDescent::_tracefirst($text),
7414 q{envelope},
7415 $tracelevel)
7416 if defined $::RD_TRACE;
7417 1 $item{q{envelopestruct}} = $_tok;
7418 1 push @item, $_tok;
7419
7420 }
7421  
7422 1 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/.*\\)/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7423 q{envelope},
7424 $tracelevel)
7425 if defined $::RD_TRACE;
7426 1 undef $lastsep;
7427 1 $expectation->is(q{/.*\\)/})->at($text);
7428
7429  
7430 1 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:.*\))/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*\))/) 0 1 1
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*\))/
!ll&&!rl&&r
001
($lastsep = $1) && ''
!ll
10
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*\))/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:.*\))/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:.*\))/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
7431 {
7432 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
7433 0 $expectation->failed();
7434 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7435 Parse::RecDescent::_tracefirst($text))
7436 if defined $::RD_TRACE;
7437  
7438 0 last;
7439 }
7440 1 $current_match = substr($text, $-[0], $+[0] - $-[0]);
7441 1 substr($text,0,length($current_match),q{});
7442 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7443 . $current_match . q{])},
7444 Parse::RecDescent::_tracefirst($text))
7445 if defined $::RD_TRACE;
7446 1 push @item, $item{__PATTERN2__}=$current_match;
7447
7448  
7449 1 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7450 Parse::RecDescent::_tracefirst($text),
7451 q{envelope},
7452 $tracelevel)
7453 if defined $::RD_TRACE;
7454
7455  
7456 1 ▶ $_tok = ($_noactions) ? 0 : do { $return = $item{envelopestruct} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 1 1
7457 1 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 1 1
7458 {
7459 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7460 if defined $::RD_TRACE;
7461 0 last;
7462 }
7463 1 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7464 . $_tok . q{])},
7465 Parse::RecDescent::_tracefirst($text))
7466 if defined $::RD_TRACE;
7467 1 push @item, $_tok;
7468 1 $item{__ACTION1__}=$_tok;
7469
7470  
7471 1 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/.*?\\(.*?ENVELOPE/ envelopestruct /.*\\)/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7472 Parse::RecDescent::_tracefirst($text),
7473 q{envelope},
7474 $tracelevel)
7475 if defined $::RD_TRACE;
7476  
7477  
7478  
7479 1 $_matched = 1;
7480 1 last;
7481 }
7482  
7483 splice
7484 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 1 1
7485
7486 1 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 1 1
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
100
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
7487 {
7488 0 splice @{$thisparser->{deferred}}, $def_at;
7489
7490  
7491 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
7492 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7493 Parse::RecDescent::_tracefirst($_[1]),
7494 q{envelope},
7495 $tracelevel)
7496 if defined $::RD_TRACE;
7497 0 return undef;
7498 }
7499 1 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 1 1
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
100
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
7500 {
7501 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7502 q{envelope},
7503 $tracelevel)
7504 if defined $::RD_TRACE;
7505 0 $return = $score_return;
7506 }
7507 1 splice @{$thisparser->{errors}}, $err_at;
7508 1 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 1 1
7509 1 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 1 1
7510 {
7511 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
7512 $return . q{])}, "",
7513 q{envelope},
7514 $tracelevel);
7515 0 Parse::RecDescent::_trace(q{(consumed: [} .
7516 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
7517 Parse::RecDescent::_tracefirst($text),
7518 , q{envelope},
7519 $tracelevel)
7520 }
7521 1 $_[1] = $text;
7522 1 return $return;
7523 }
7524  
7525 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
7526 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::envelopestruct
7527 25 ▶{
Subroutine envelopestruct: called CC=82 SCAR=57.6
7528 25 my $thisparser = $_[0];
7529 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7530 25 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition100%2/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
223
MC/DC100%1/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table100%2/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
7531 25 $ERRORS = 0;
7532 25 my $thisrule = $thisparser->{"rules"}{"envelopestruct"};
7533  
7534 25 ▶ Parse::RecDescent::_trace(q{Trying rule: [envelopestruct]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 25 25
7535 Parse::RecDescent::_tracefirst($_[1]),
7536 q{envelopestruct},
7537 $tracelevel)
7538 if defined $::RD_TRACE;
7539  
7540 25 my $def_at = @{$thisparser->{deferred}};
7541 25 my $err_at = @{$thisparser->{errors}};
7542  
7543 25 my $score;
7544 my $score_return;
7545 25 my $_tok;
7546 25 my $return = undef;
7547 25 my $_matched=0;
7548 25 my $commit=0;
7549 25 my @item = ();
7550 25 my %item = ();
7551 25 my $repeating = $_[2];
7552 25 my $_noactions = $_[3];
7553 25 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 25 0 25
7554 25 my $_itempos = $_[5];
7555 25 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 25 0 25
7556 25 my $text;
7557 my $lastsep;
7558 25 my $current_match;
7559 25 my $expectation = new Parse::RecDescent::Expectation(q{'('});
7560 25 $expectation->at($_[1]);
7561
7562 25 my $thisline;
7563 25 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
7564  
7565
7566  
7567 25 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 25 0 25
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0025
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7568 {
7569
7570 25 ▶ Parse::RecDescent::_trace(q{Trying production: ['(' date subject from sender replyto to cc bcc inreplyto messageid ')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 25 25
7571 Parse::RecDescent::_tracefirst($_[1]),
7572 q{envelopestruct},
7573 $tracelevel)
7574 if defined $::RD_TRACE;
7575 25 my $thisprod = $thisrule->{"prods"}[0];
7576 25 $text = $_[1];
7577 25 my $_savetext;
7578 25 @item = (q{envelopestruct});
7579 25 %item = (__RULE__ => q{envelopestruct});
7580 25 my $repcount = 0;
7581  
7582  
7583 25 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['(']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 25 25
7584 Parse::RecDescent::_tracefirst($text),
7585 q{envelopestruct},
7586 $tracelevel)
7587 if defined $::RD_TRACE;
7588 25 undef $lastsep;
7589 25 $expectation->is(q{})->at($text);
7590
7591  
7592 25 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "("; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 1 24 25
Condition63%7/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
1024
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0124
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 }
!ll&&!rl&&r
0025
($lastsep = $1) && ''
!ll
421
MC/DC25%1/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = "("; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table40%2/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = "("; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
7593 substr($text,0,length($_tok)) eq $_tok and
7594 24 do { substr($text,0,length($_tok)) = ""; 1; }
7595 )
7596 {
7597 1 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 1 0 1
7598
7599 1 $expectation->failed();
7600 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7601 Parse::RecDescent::_tracefirst($text))
7602 if defined $::RD_TRACE;
7603 1 last;
7604 }
7605 24 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7606 . $_tok . q{])},
7607 Parse::RecDescent::_tracefirst($text))
7608 if defined $::RD_TRACE;
7609 24 push @item, $item{__STRING1__}=$_tok;
7610
7611  
7612 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [date]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7613 Parse::RecDescent::_tracefirst($text),
7614 q{envelopestruct},
7615 $tracelevel)
7616 if defined $::RD_TRACE;
7617 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7618 24 $expectation->is(q{date})->at($text);
7619 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::date($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = date($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7620 {
7621
7622 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [date]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7623 Parse::RecDescent::_tracefirst($text),
7624 q{envelopestruct},
7625 $tracelevel)
7626 if defined $::RD_TRACE;
7627 0 $expectation->failed();
7628 0 last;
7629 }
7630 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [date]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7631 . $_tok . q{]},
7632  
7633 Parse::RecDescent::_tracefirst($text),
7634 q{envelopestruct},
7635 $tracelevel)
7636 if defined $::RD_TRACE;
7637 24 $item{q{date}} = $_tok;
7638 24 push @item, $_tok;
7639
7640 }
7641  
7642 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [subject]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7643 Parse::RecDescent::_tracefirst($text),
7644 q{envelopestruct},
7645 $tracelevel)
7646 if defined $::RD_TRACE;
7647 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7648 24 $expectation->is(q{subject})->at($text);
7649 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::subject($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = subject($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7650 {
7651
7652 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [subject]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7653 Parse::RecDescent::_tracefirst($text),
7654 q{envelopestruct},
7655 $tracelevel)
7656 if defined $::RD_TRACE;
7657 0 $expectation->failed();
7658 0 last;
7659 }
7660 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [subject]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7661 . $_tok . q{]},
7662  
7663 Parse::RecDescent::_tracefirst($text),
7664 q{envelopestruct},
7665 $tracelevel)
7666 if defined $::RD_TRACE;
7667 24 $item{q{subject}} = $_tok;
7668 24 push @item, $_tok;
7669
7670 }
7671  
7672 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [from]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7673 Parse::RecDescent::_tracefirst($text),
7674 q{envelopestruct},
7675 $tracelevel)
7676 if defined $::RD_TRACE;
7677 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7678 24 $expectation->is(q{from})->at($text);
7679 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::from($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = from($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7680 {
7681
7682 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [from]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7683 Parse::RecDescent::_tracefirst($text),
7684 q{envelopestruct},
7685 $tracelevel)
7686 if defined $::RD_TRACE;
7687 0 $expectation->failed();
7688 0 last;
7689 }
7690 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [from]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7691 . $_tok . q{]},
7692  
7693 Parse::RecDescent::_tracefirst($text),
7694 q{envelopestruct},
7695 $tracelevel)
7696 if defined $::RD_TRACE;
7697 24 $item{q{from}} = $_tok;
7698 24 push @item, $_tok;
7699
7700 }
7701  
7702 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [sender]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7703 Parse::RecDescent::_tracefirst($text),
7704 q{envelopestruct},
7705 $tracelevel)
7706 if defined $::RD_TRACE;
7707 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7708 24 $expectation->is(q{sender})->at($text);
7709 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::sender($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = sender($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7710 {
7711
7712 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [sender]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7713 Parse::RecDescent::_tracefirst($text),
7714 q{envelopestruct},
7715 $tracelevel)
7716 if defined $::RD_TRACE;
7717 0 $expectation->failed();
7718 0 last;
7719 }
7720 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [sender]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7721 . $_tok . q{]},
7722  
7723 Parse::RecDescent::_tracefirst($text),
7724 q{envelopestruct},
7725 $tracelevel)
7726 if defined $::RD_TRACE;
7727 24 $item{q{sender}} = $_tok;
7728 24 push @item, $_tok;
7729
7730 }
7731  
7732 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [replyto]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7733 Parse::RecDescent::_tracefirst($text),
7734 q{envelopestruct},
7735 $tracelevel)
7736 if defined $::RD_TRACE;
7737 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7738 24 $expectation->is(q{replyto})->at($text);
7739 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::replyto($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = replyto($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7740 {
7741
7742 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [replyto]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7743 Parse::RecDescent::_tracefirst($text),
7744 q{envelopestruct},
7745 $tracelevel)
7746 if defined $::RD_TRACE;
7747 0 $expectation->failed();
7748 0 last;
7749 }
7750 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [replyto]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7751 . $_tok . q{]},
7752  
7753 Parse::RecDescent::_tracefirst($text),
7754 q{envelopestruct},
7755 $tracelevel)
7756 if defined $::RD_TRACE;
7757 24 $item{q{replyto}} = $_tok;
7758 24 push @item, $_tok;
7759
7760 }
7761  
7762 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [to]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7763 Parse::RecDescent::_tracefirst($text),
7764 q{envelopestruct},
7765 $tracelevel)
7766 if defined $::RD_TRACE;
7767 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7768 24 $expectation->is(q{to})->at($text);
7769 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::to($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = to($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7770 {
7771
7772 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [to]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7773 Parse::RecDescent::_tracefirst($text),
7774 q{envelopestruct},
7775 $tracelevel)
7776 if defined $::RD_TRACE;
7777 0 $expectation->failed();
7778 0 last;
7779 }
7780 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [to]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7781 . $_tok . q{]},
7782  
7783 Parse::RecDescent::_tracefirst($text),
7784 q{envelopestruct},
7785 $tracelevel)
7786 if defined $::RD_TRACE;
7787 24 $item{q{to}} = $_tok;
7788 24 push @item, $_tok;
7789
7790 }
7791  
7792 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [cc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7793 Parse::RecDescent::_tracefirst($text),
7794 q{envelopestruct},
7795 $tracelevel)
7796 if defined $::RD_TRACE;
7797 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7798 24 $expectation->is(q{cc})->at($text);
7799 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::cc($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = cc($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7800 {
7801
7802 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [cc]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7803 Parse::RecDescent::_tracefirst($text),
7804 q{envelopestruct},
7805 $tracelevel)
7806 if defined $::RD_TRACE;
7807 0 $expectation->failed();
7808 0 last;
7809 }
7810 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [cc]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7811 . $_tok . q{]},
7812  
7813 Parse::RecDescent::_tracefirst($text),
7814 q{envelopestruct},
7815 $tracelevel)
7816 if defined $::RD_TRACE;
7817 24 $item{q{cc}} = $_tok;
7818 24 push @item, $_tok;
7819
7820 }
7821  
7822 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [bcc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7823 Parse::RecDescent::_tracefirst($text),
7824 q{envelopestruct},
7825 $tracelevel)
7826 if defined $::RD_TRACE;
7827 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7828 24 $expectation->is(q{bcc})->at($text);
7829 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bcc($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = bcc($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7830 {
7831
7832 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [bcc]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7833 Parse::RecDescent::_tracefirst($text),
7834 q{envelopestruct},
7835 $tracelevel)
7836 if defined $::RD_TRACE;
7837 0 $expectation->failed();
7838 0 last;
7839 }
7840 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [bcc]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7841 . $_tok . q{]},
7842  
7843 Parse::RecDescent::_tracefirst($text),
7844 q{envelopestruct},
7845 $tracelevel)
7846 if defined $::RD_TRACE;
7847 24 $item{q{bcc}} = $_tok;
7848 24 push @item, $_tok;
7849
7850 }
7851  
7852 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [inreplyto]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7853 Parse::RecDescent::_tracefirst($text),
7854 q{envelopestruct},
7855 $tracelevel)
7856 if defined $::RD_TRACE;
7857 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7858 24 $expectation->is(q{inreplyto})->at($text);
7859 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::inreplyto($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = inreplyto($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7860 {
7861
7862 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [inreplyto]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7863 Parse::RecDescent::_tracefirst($text),
7864 q{envelopestruct},
7865 $tracelevel)
7866 if defined $::RD_TRACE;
7867 0 $expectation->failed();
7868 0 last;
7869 }
7870 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [inreplyto]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7871 . $_tok . q{]},
7872  
7873 Parse::RecDescent::_tracefirst($text),
7874 q{envelopestruct},
7875 $tracelevel)
7876 if defined $::RD_TRACE;
7877 24 $item{q{inreplyto}} = $_tok;
7878 24 push @item, $_tok;
7879
7880 }
7881  
7882 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [messageid]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7883 Parse::RecDescent::_tracefirst($text),
7884 q{envelopestruct},
7885 $tracelevel)
7886 if defined $::RD_TRACE;
7887 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7888 24 $expectation->is(q{messageid})->at($text);
7889 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::messageid($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = messageid($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
7890 {
7891
7892 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [messageid]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7893 Parse::RecDescent::_tracefirst($text),
7894 q{envelopestruct},
7895 $tracelevel)
7896 if defined $::RD_TRACE;
7897 0 $expectation->failed();
7898 0 last;
7899 }
7900 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [messageid]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7901 . $_tok . q{]},
7902  
7903 Parse::RecDescent::_tracefirst($text),
7904 q{envelopestruct},
7905 $tracelevel)
7906 if defined $::RD_TRACE;
7907 24 $item{q{messageid}} = $_tok;
7908 24 push @item, $_tok;
7909
7910 }
7911  
7912 24 ▶ Parse::RecDescent::_trace(q{Trying terminal: [')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7913 Parse::RecDescent::_tracefirst($text),
7914 q{envelopestruct},
7915 $tracelevel)
7916 if defined $::RD_TRACE;
7917 24 undef $lastsep;
7918 24 $expectation->is(q{')'})->at($text);
7919
7920  
7921 24 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = ")"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 24 24
Condition36%4/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
0024
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0024
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 }
!ll&&!rl&&r
0024
($lastsep = $1) && ''
!ll
240
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = ")"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table20%1/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = ")"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
7922 substr($text,0,length($_tok)) eq $_tok and
7923 24 do { substr($text,0,length($_tok)) = ""; 1; }
7924 )
7925 {
7926 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
7927
7928 0 $expectation->failed();
7929 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7930 Parse::RecDescent::_tracefirst($text))
7931 if defined $::RD_TRACE;
7932 0 last;
7933 }
7934 24 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7935 . $_tok . q{])},
7936 Parse::RecDescent::_tracefirst($text))
7937 if defined $::RD_TRACE;
7938 24 push @item, $item{__STRING2__}=$_tok;
7939
7940  
7941 24 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7942 Parse::RecDescent::_tracefirst($text),
7943 q{envelopestruct},
7944 $tracelevel)
7945 if defined $::RD_TRACE;
7946
7947  
7948 24 ▶ $_tok = ($_noactions) ? 0 : do { $return = bless {}, "Mail::IMAPClient::BodyStructure::Envelope";
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 24 24
7949 $return->{$_} = $item{$_}
7950 24 for qw/date subject from sender replyto to cc/
7951 , qw/bcc inreplyto messageid/;
7952 24 1;
7953 };
7954 24 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 24 24
7955 {
7956 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7957 if defined $::RD_TRACE;
7958 0 last;
7959 }
7960 24 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7961 . $_tok . q{])},
7962 Parse::RecDescent::_tracefirst($text))
7963 if defined $::RD_TRACE;
7964 24 push @item, $_tok;
7965 24 $item{__ACTION1__}=$_tok;
7966
7967  
7968 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['(' date subject from sender replyto to cc bcc inreplyto messageid ')']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7969 Parse::RecDescent::_tracefirst($text),
7970 q{envelopestruct},
7971 $tracelevel)
7972 if defined $::RD_TRACE;
7973  
7974  
7975  
7976 24 $_matched = 1;
7977 24 last;
7978 }
7979  
7980 splice
7981 25 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 1 24 25
7982
7983 25 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 1 24 25
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
2401
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
7984 {
7985 1 splice @{$thisparser->{deferred}}, $def_at;
7986
7987  
7988 1 $_[1] = $text; # NOT SURE THIS IS NEEDED
7989 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7990 Parse::RecDescent::_tracefirst($_[1]),
7991 q{envelopestruct},
7992 $tracelevel)
7993 if defined $::RD_TRACE;
7994 1 return undef;
7995 }
7996 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
2400
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
7997 {
7998 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7999 q{envelopestruct},
8000 $tracelevel)
8001 if defined $::RD_TRACE;
8002 0 $return = $score_return;
8003 }
8004 24 splice @{$thisparser->{errors}}, $err_at;
8005 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 24 24
8006 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
8007 {
8008 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
8009 $return . q{])}, "",
8010 q{envelopestruct},
8011 $tracelevel);
8012 0 Parse::RecDescent::_trace(q{(consumed: [} .
8013 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
8014 Parse::RecDescent::_tracefirst($text),
8015 , q{envelopestruct},
8016 $tracelevel)
8017 }
8018 24 $_[1] = $text;
8019 24 return $return;
8020 }
8021  
8022 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
8023 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::from
8024 24 ▶{
Subroutine from: called CC=22 SCAR=36.8
8025 24 my $thisparser = $_[0];
8026 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8027 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
240
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
8028 24 $ERRORS = 0;
8029 24 my $thisrule = $thisparser->{"rules"}{"from"};
8030  
8031 24 ▶ Parse::RecDescent::_trace(q{Trying rule: [from]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8032 Parse::RecDescent::_tracefirst($_[1]),
8033 q{from},
8034 $tracelevel)
8035 if defined $::RD_TRACE;
8036  
8037 24 my $def_at = @{$thisparser->{deferred}};
8038 24 my $err_at = @{$thisparser->{errors}};
8039  
8040 24 my $score;
8041 my $score_return;
8042 24 my $_tok;
8043 24 my $return = undef;
8044 24 my $_matched=0;
8045 24 my $commit=0;
8046 24 my @item = ();
8047 24 my %item = ();
8048 24 my $repeating = $_[2];
8049 24 my $_noactions = $_[3];
8050 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
8051 24 my $_itempos = $_[5];
8052 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 24 0 24
8053 24 my $text;
8054 my $lastsep;
8055 24 my $current_match;
8056 24 my $expectation = new Parse::RecDescent::Expectation(q{ADDRESSES});
8057 24 $expectation->at($_[1]);
8058
8059 24 my $thisline;
8060 24 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
8061  
8062
8063  
8064 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8065 {
8066
8067 24 ▶ Parse::RecDescent::_trace(q{Trying production: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8068 Parse::RecDescent::_tracefirst($_[1]),
8069 q{from},
8070 $tracelevel)
8071 if defined $::RD_TRACE;
8072 24 my $thisprod = $thisrule->{"prods"}[0];
8073 24 $text = $_[1];
8074 24 my $_savetext;
8075 24 @item = (q{from});
8076 24 %item = (__RULE__ => q{from});
8077 24 my $repcount = 0;
8078  
8079  
8080 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8081 Parse::RecDescent::_tracefirst($text),
8082 q{from},
8083 $tracelevel)
8084 if defined $::RD_TRACE;
8085 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8086 24 $expectation->is(q{})->at($text);
8087 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::ADDRESSES($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = ADDRESSES($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
8088 {
8089
8090 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [ADDRESSES]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8091 Parse::RecDescent::_tracefirst($text),
8092 q{from},
8093 $tracelevel)
8094 if defined $::RD_TRACE;
8095 0 $expectation->failed();
8096 0 last;
8097 }
8098 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [ADDRESSES]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8099 . $_tok . q{]},
8100  
8101 Parse::RecDescent::_tracefirst($text),
8102 q{from},
8103 $tracelevel)
8104 if defined $::RD_TRACE;
8105 24 $item{q{ADDRESSES}} = $_tok;
8106 24 push @item, $_tok;
8107
8108 }
8109  
8110 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [ADDRESSES]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8111 Parse::RecDescent::_tracefirst($text),
8112 q{from},
8113 $tracelevel)
8114 if defined $::RD_TRACE;
8115  
8116  
8117  
8118 24 $_matched = 1;
8119 24 last;
8120 }
8121  
8122 splice
8123 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 24 24
8124
8125 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
8126 {
8127 0 splice @{$thisparser->{deferred}}, $def_at;
8128
8129  
8130 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
8131 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8132 Parse::RecDescent::_tracefirst($_[1]),
8133 q{from},
8134 $tracelevel)
8135 if defined $::RD_TRACE;
8136 0 return undef;
8137 }
8138 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0240
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
8139 {
8140 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8141 q{from},
8142 $tracelevel)
8143 if defined $::RD_TRACE;
8144 0 $return = $score_return;
8145 }
8146 24 splice @{$thisparser->{errors}}, $err_at;
8147 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
8148 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
8149 {
8150 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
8151 $return . q{])}, "",
8152 q{from},
8153 $tracelevel);
8154 0 Parse::RecDescent::_trace(q{(consumed: [} .
8155 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
8156 Parse::RecDescent::_tracefirst($text),
8157 , q{from},
8158 $tracelevel)
8159 }
8160 24 $_[1] = $text;
8161 24 return $return;
8162 }
8163  
8164 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
8165 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::hostname
8166 94 ▶{
Subroutine hostname: called CC=31 SCAR=42.7
8167 94 my $thisparser = $_[0];
8168 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8169 94 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
940
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
8170 94 $ERRORS = 0;
8171 94 my $thisrule = $thisparser->{"rules"}{"hostname"};
8172  
8173 94 ▶ Parse::RecDescent::_trace(q{Trying rule: [hostname]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
8174 Parse::RecDescent::_tracefirst($_[1]),
8175 q{hostname},
8176 $tracelevel)
8177 if defined $::RD_TRACE;
8178  
8179 94 my $def_at = @{$thisparser->{deferred}};
8180 94 my $err_at = @{$thisparser->{errors}};
8181  
8182 94 my $score;
8183 my $score_return;
8184 94 my $_tok;
8185 94 my $return = undef;
8186 94 my $_matched=0;
8187 94 my $commit=0;
8188 94 my @item = ();
8189 94 my %item = ();
8190 94 my $repeating = $_[2];
8191 94 my $_noactions = $_[3];
8192 94 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 94 0 94
8193 94 my $_itempos = $_[5];
8194 94 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 94 0 94
8195 94 my $text;
8196 my $lastsep;
8197 94 my $current_match;
8198 94 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING});
8199 94 $expectation->at($_[1]);
8200
8201 94 my $thisline;
8202 94 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
8203  
8204
8205  
8206 94 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 94 0 94
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0094
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8207 {
8208
8209 94 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
8210 Parse::RecDescent::_tracefirst($_[1]),
8211 q{hostname},
8212 $tracelevel)
8213 if defined $::RD_TRACE;
8214 94 my $thisprod = $thisrule->{"prods"}[0];
8215 94 $text = $_[1];
8216 94 my $_savetext;
8217 94 @item = (q{hostname});
8218 94 %item = (__RULE__ => q{hostname});
8219 94 my $repcount = 0;
8220  
8221  
8222 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
8223 Parse::RecDescent::_tracefirst($text),
8224 q{hostname},
8225 $tracelevel)
8226 if defined $::RD_TRACE;
8227 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8228 94 $expectation->is(q{})->at($text);
8229 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 94 0 94
8230 {
8231
8232 94 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
8233 Parse::RecDescent::_tracefirst($text),
8234 q{hostname},
8235 $tracelevel)
8236 if defined $::RD_TRACE;
8237 94 $expectation->failed();
8238 94 last;
8239 }
8240 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8241 . $_tok . q{]},
8242  
8243 Parse::RecDescent::_tracefirst($text),
8244 q{hostname},
8245 $tracelevel)
8246 if defined $::RD_TRACE;
8247 0 $item{q{NIL}} = $_tok;
8248 0 push @item, $_tok;
8249
8250 }
8251  
8252 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8253 Parse::RecDescent::_tracefirst($text),
8254 q{hostname},
8255 $tracelevel)
8256 if defined $::RD_TRACE;
8257  
8258  
8259  
8260 0 $_matched = 1;
8261 0 last;
8262 }
8263  
8264 splice
8265 94 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 94 0 94
8266
8267 94 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 94 0 94
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0094
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8268 {
8269
8270 94 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
8271 Parse::RecDescent::_tracefirst($_[1]),
8272 q{hostname},
8273 $tracelevel)
8274 if defined $::RD_TRACE;
8275 94 my $thisprod = $thisrule->{"prods"}[1];
8276 94 $text = $_[1];
8277 94 my $_savetext;
8278 94 @item = (q{hostname});
8279 94 %item = (__RULE__ => q{hostname});
8280 94 my $repcount = 0;
8281  
8282  
8283 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
8284 Parse::RecDescent::_tracefirst($text),
8285 q{hostname},
8286 $tracelevel)
8287 if defined $::RD_TRACE;
8288 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8289 94 $expectation->is(q{})->at($text);
8290 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 94 94
8291 {
8292
8293 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8294 Parse::RecDescent::_tracefirst($text),
8295 q{hostname},
8296 $tracelevel)
8297 if defined $::RD_TRACE;
8298 0 $expectation->failed();
8299 0 last;
8300 }
8301 94 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
8302 . $_tok . q{]},
8303  
8304 Parse::RecDescent::_tracefirst($text),
8305 q{hostname},
8306 $tracelevel)
8307 if defined $::RD_TRACE;
8308 94 $item{q{STRING}} = $_tok;
8309 94 push @item, $_tok;
8310
8311 }
8312  
8313 94 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
8314 Parse::RecDescent::_tracefirst($text),
8315 q{hostname},
8316 $tracelevel)
8317 if defined $::RD_TRACE;
8318  
8319  
8320  
8321 94 $_matched = 1;
8322 94 last;
8323 }
8324  
8325 splice
8326 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 94 94
8327
8328 94 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 94 94
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
9400
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
8329 {
8330 0 splice @{$thisparser->{deferred}}, $def_at;
8331
8332  
8333 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
8334 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8335 Parse::RecDescent::_tracefirst($_[1]),
8336 q{hostname},
8337 $tracelevel)
8338 if defined $::RD_TRACE;
8339 0 return undef;
8340 }
8341 94 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 94 94
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0940
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
8342 {
8343 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8344 q{hostname},
8345 $tracelevel)
8346 if defined $::RD_TRACE;
8347 0 $return = $score_return;
8348 }
8349 94 splice @{$thisparser->{errors}}, $err_at;
8350 94 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 94 0 94
8351 94 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 94 94
8352 {
8353 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
8354 $return . q{])}, "",
8355 q{hostname},
8356 $tracelevel);
8357 0 Parse::RecDescent::_trace(q{(consumed: [} .
8358 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
8359 Parse::RecDescent::_tracefirst($text),
8360 , q{hostname},
8361 $tracelevel)
8362 }
8363 94 $_[1] = $text;
8364 94 return $return;
8365 }
8366  
8367 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
8368 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::inreplyto
8369 24 ▶{
Subroutine inreplyto: called CC=31 SCAR=39.3
8370 24 my $thisparser = $_[0];
8371 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8372 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
240
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
8373 24 $ERRORS = 0;
8374 24 my $thisrule = $thisparser->{"rules"}{"inreplyto"};
8375  
8376 24 ▶ Parse::RecDescent::_trace(q{Trying rule: [inreplyto]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8377 Parse::RecDescent::_tracefirst($_[1]),
8378 q{inreplyto},
8379 $tracelevel)
8380 if defined $::RD_TRACE;
8381  
8382 24 my $def_at = @{$thisparser->{deferred}};
8383 24 my $err_at = @{$thisparser->{errors}};
8384  
8385 24 my $score;
8386 my $score_return;
8387 24 my $_tok;
8388 24 my $return = undef;
8389 24 my $_matched=0;
8390 24 my $commit=0;
8391 24 my @item = ();
8392 24 my %item = ();
8393 24 my $repeating = $_[2];
8394 24 my $_noactions = $_[3];
8395 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
8396 24 my $_itempos = $_[5];
8397 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 24 0 24
8398 24 my $text;
8399 my $lastsep;
8400 24 my $current_match;
8401 24 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING});
8402 24 $expectation->at($_[1]);
8403
8404 24 my $thisline;
8405 24 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
8406  
8407
8408  
8409 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8410 {
8411
8412 24 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8413 Parse::RecDescent::_tracefirst($_[1]),
8414 q{inreplyto},
8415 $tracelevel)
8416 if defined $::RD_TRACE;
8417 24 my $thisprod = $thisrule->{"prods"}[0];
8418 24 $text = $_[1];
8419 24 my $_savetext;
8420 24 @item = (q{inreplyto});
8421 24 %item = (__RULE__ => q{inreplyto});
8422 24 my $repcount = 0;
8423  
8424  
8425 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8426 Parse::RecDescent::_tracefirst($text),
8427 q{inreplyto},
8428 $tracelevel)
8429 if defined $::RD_TRACE;
8430 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8431 24 $expectation->is(q{})->at($text);
8432 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 1 23 24
8433 {
8434
8435 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
8436 Parse::RecDescent::_tracefirst($text),
8437 q{inreplyto},
8438 $tracelevel)
8439 if defined $::RD_TRACE;
8440 1 $expectation->failed();
8441 1 last;
8442 }
8443 23 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 23 23
8444 . $_tok . q{]},
8445  
8446 Parse::RecDescent::_tracefirst($text),
8447 q{inreplyto},
8448 $tracelevel)
8449 if defined $::RD_TRACE;
8450 23 $item{q{NIL}} = $_tok;
8451 23 push @item, $_tok;
8452
8453 }
8454  
8455 23 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 23 23
8456 Parse::RecDescent::_tracefirst($text),
8457 q{inreplyto},
8458 $tracelevel)
8459 if defined $::RD_TRACE;
8460  
8461  
8462  
8463 23 $_matched = 1;
8464 23 last;
8465 }
8466  
8467 splice
8468 24 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 1 23 24
8469
8470 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 1 23 24
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
2301
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8471 {
8472
8473 1 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
8474 Parse::RecDescent::_tracefirst($_[1]),
8475 q{inreplyto},
8476 $tracelevel)
8477 if defined $::RD_TRACE;
8478 1 my $thisprod = $thisrule->{"prods"}[1];
8479 1 $text = $_[1];
8480 1 my $_savetext;
8481 1 @item = (q{inreplyto});
8482 1 %item = (__RULE__ => q{inreplyto});
8483 1 my $repcount = 0;
8484  
8485  
8486 1 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
8487 Parse::RecDescent::_tracefirst($text),
8488 q{inreplyto},
8489 $tracelevel)
8490 if defined $::RD_TRACE;
8491 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8492 1 $expectation->is(q{})->at($text);
8493 1 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 1 1
8494 {
8495
8496 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8497 Parse::RecDescent::_tracefirst($text),
8498 q{inreplyto},
8499 $tracelevel)
8500 if defined $::RD_TRACE;
8501 0 $expectation->failed();
8502 0 last;
8503 }
8504 1 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
8505 . $_tok . q{]},
8506  
8507 Parse::RecDescent::_tracefirst($text),
8508 q{inreplyto},
8509 $tracelevel)
8510 if defined $::RD_TRACE;
8511 1 $item{q{STRING}} = $_tok;
8512 1 push @item, $_tok;
8513
8514 }
8515  
8516 1 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
8517 Parse::RecDescent::_tracefirst($text),
8518 q{inreplyto},
8519 $tracelevel)
8520 if defined $::RD_TRACE;
8521  
8522  
8523  
8524 1 $_matched = 1;
8525 1 last;
8526 }
8527  
8528 splice
8529 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 24 24
8530
8531 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
8532 {
8533 0 splice @{$thisparser->{deferred}}, $def_at;
8534
8535  
8536 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
8537 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8538 Parse::RecDescent::_tracefirst($_[1]),
8539 q{inreplyto},
8540 $tracelevel)
8541 if defined $::RD_TRACE;
8542 0 return undef;
8543 }
8544 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0240
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
8545 {
8546 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8547 q{inreplyto},
8548 $tracelevel)
8549 if defined $::RD_TRACE;
8550 0 $return = $score_return;
8551 }
8552 24 splice @{$thisparser->{errors}}, $err_at;
8553 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
8554 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
8555 {
8556 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
8557 $return . q{])}, "",
8558 q{inreplyto},
8559 $tracelevel);
8560 0 Parse::RecDescent::_trace(q{(consumed: [} .
8561 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
8562 Parse::RecDescent::_tracefirst($text),
8563 , q{inreplyto},
8564 $tracelevel)
8565 }
8566 24 $_[1] = $text;
8567 24 return $return;
8568 }
8569  
8570 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
8571 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::key
8572 132 ▶{
Subroutine key: called CC=22 SCAR=36.8
8573 132 my $thisparser = $_[0];
8574 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8575 132 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1320
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
8576 132 $ERRORS = 0;
8577 132 my $thisrule = $thisparser->{"rules"}{"key"};
8578  
8579 132 ▶ Parse::RecDescent::_trace(q{Trying rule: [key]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8580 Parse::RecDescent::_tracefirst($_[1]),
8581 q{key},
8582 $tracelevel)
8583 if defined $::RD_TRACE;
8584  
8585 132 my $def_at = @{$thisparser->{deferred}};
8586 132 my $err_at = @{$thisparser->{errors}};
8587  
8588 132 my $score;
8589 my $score_return;
8590 132 my $_tok;
8591 132 my $return = undef;
8592 132 my $_matched=0;
8593 132 my $commit=0;
8594 132 my @item = ();
8595 132 my %item = ();
8596 132 my $repeating = $_[2];
8597 132 my $_noactions = $_[3];
8598 132 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 132 0 132
8599 132 my $_itempos = $_[5];
8600 132 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 132 0 132
8601 132 my $text;
8602 my $lastsep;
8603 132 my $current_match;
8604 132 my $expectation = new Parse::RecDescent::Expectation(q{STRING});
8605 132 $expectation->at($_[1]);
8606
8607 132 my $thisline;
8608 132 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
8609  
8610
8611  
8612 132 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 132 0 132
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00132
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8613 {
8614
8615 132 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8616 Parse::RecDescent::_tracefirst($_[1]),
8617 q{key},
8618 $tracelevel)
8619 if defined $::RD_TRACE;
8620 132 my $thisprod = $thisrule->{"prods"}[0];
8621 132 $text = $_[1];
8622 132 my $_savetext;
8623 132 @item = (q{key});
8624 132 %item = (__RULE__ => q{key});
8625 132 my $repcount = 0;
8626  
8627  
8628 132 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8629 Parse::RecDescent::_tracefirst($text),
8630 q{key},
8631 $tracelevel)
8632 if defined $::RD_TRACE;
8633 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8634 132 $expectation->is(q{})->at($text);
8635 132 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 132 132
8636 {
8637
8638 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8639 Parse::RecDescent::_tracefirst($text),
8640 q{key},
8641 $tracelevel)
8642 if defined $::RD_TRACE;
8643 0 $expectation->failed();
8644 0 last;
8645 }
8646 132 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8647 . $_tok . q{]},
8648  
8649 Parse::RecDescent::_tracefirst($text),
8650 q{key},
8651 $tracelevel)
8652 if defined $::RD_TRACE;
8653 132 $item{q{STRING}} = $_tok;
8654 132 push @item, $_tok;
8655
8656 }
8657  
8658 132 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8659 Parse::RecDescent::_tracefirst($text),
8660 q{key},
8661 $tracelevel)
8662 if defined $::RD_TRACE;
8663  
8664  
8665  
8666 132 $_matched = 1;
8667 132 last;
8668 }
8669  
8670 splice
8671 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 132 132
8672
8673 132 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 132 132
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
13200
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
8674 {
8675 0 splice @{$thisparser->{deferred}}, $def_at;
8676
8677  
8678 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
8679 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8680 Parse::RecDescent::_tracefirst($_[1]),
8681 q{key},
8682 $tracelevel)
8683 if defined $::RD_TRACE;
8684 0 return undef;
8685 }
8686 132 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 132 132
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
01320
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
8687 {
8688 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8689 q{key},
8690 $tracelevel)
8691 if defined $::RD_TRACE;
8692 0 $return = $score_return;
8693 }
8694 132 splice @{$thisparser->{errors}}, $err_at;
8695 132 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 132 0 132
8696 132 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 132 132
8697 {
8698 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
8699 $return . q{])}, "",
8700 q{key},
8701 $tracelevel);
8702 0 Parse::RecDescent::_trace(q{(consumed: [} .
8703 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
8704 Parse::RecDescent::_tracefirst($text),
8705 , q{key},
8706 $tracelevel)
8707 }
8708 132 $_[1] = $text;
8709 132 return $return;
8710 }
8711  
8712 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
8713 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::kvpair
8714 255 ▶{
Subroutine kvpair: called CC=39 SCAR=42.2
8715 255 my $thisparser = $_[0];
8716 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8717 255 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
2550
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
8718 255 $ERRORS = 0;
8719 255 my $thisrule = $thisparser->{"rules"}{"kvpair"};
8720  
8721 255 ▶ Parse::RecDescent::_trace(q{Trying rule: [kvpair]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 255 255
8722 Parse::RecDescent::_tracefirst($_[1]),
8723 q{kvpair},
8724 $tracelevel)
8725 if defined $::RD_TRACE;
8726  
8727 255 my $def_at = @{$thisparser->{deferred}};
8728 255 my $err_at = @{$thisparser->{errors}};
8729  
8730 255 my $score;
8731 my $score_return;
8732 255 my $_tok;
8733 255 my $return = undef;
8734 255 my $_matched=0;
8735 255 my $commit=0;
8736 255 my @item = ();
8737 255 my %item = ();
8738 255 my $repeating = $_[2];
8739 255 my $_noactions = $_[3];
8740 255 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 255 0 255
8741 255 my $_itempos = $_[5];
8742 255 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 255 0 255
8743 255 my $text;
8744 my $lastsep;
8745 255 my $current_match;
8746 255 my $expectation = new Parse::RecDescent::Expectation(q{')'});
8747 255 $expectation->at($_[1]);
8748
8749 255 my $thisline;
8750 255 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
8751  
8752
8753  
8754 255 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 255 0 255
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00255
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8755 {
8756
8757 255 ▶ Parse::RecDescent::_trace(q{Trying production: [')' key value]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 255 255
8758 Parse::RecDescent::_tracefirst($_[1]),
8759 q{kvpair},
8760 $tracelevel)
8761 if defined $::RD_TRACE;
8762 255 my $thisprod = $thisrule->{"prods"}[0];
8763 255 $text = $_[1];
8764 255 my $_savetext;
8765 255 @item = (q{kvpair});
8766 255 %item = (__RULE__ => q{kvpair});
8767 255 my $repcount = 0;
8768  
8769  
8770 255 ▶ Parse::RecDescent::_trace(q{Trying terminal: [')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 255 255
8771 Parse::RecDescent::_tracefirst($text),
8772 q{kvpair},
8773 $tracelevel)
8774 if defined $::RD_TRACE;
8775 255 undef $lastsep;
8776 255 $expectation->is(q{})->at($text);
8777 255 $_savetext = $text;
8778  
8779 255 ▶ if ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = ")"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
if ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 123 132 255
Condition63%7/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
1320123
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0132123
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 }
!ll&&!rl&&r
00255
($lastsep = $1) && ''
!ll
2469
MC/DC25%1/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = ")"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table40%2/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = ")"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
8780 substr($text,0,length($_tok)) eq $_tok and
8781 123 do { substr($text,0,length($_tok)) = ""; 1; }
8782 )
8783 {
8784 123 $text = $_savetext;
8785
8786 123 $expectation->failed();
8787 123 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 123 123
8788 Parse::RecDescent::_tracefirst($text))
8789 if defined $::RD_TRACE;
8790 123 last;
8791 }
8792 132 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8793 . $_tok . q{])},
8794 Parse::RecDescent::_tracefirst($text))
8795 if defined $::RD_TRACE;
8796 132 push @item, $item{__STRING1__}=$_tok;
8797 132 $text = $_savetext;
8798  
8799 132 ▶ Parse::RecDescent::_trace(q{Trying subrule: [key]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8800 Parse::RecDescent::_tracefirst($text),
8801 q{kvpair},
8802 $tracelevel)
8803 if defined $::RD_TRACE;
8804 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8805 132 $expectation->is(q{key})->at($text);
8806 132 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::key($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = key($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 132 132
8807 {
8808
8809 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [key]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8810 Parse::RecDescent::_tracefirst($text),
8811 q{kvpair},
8812 $tracelevel)
8813 if defined $::RD_TRACE;
8814 0 $expectation->failed();
8815 0 last;
8816 }
8817 132 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [key]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8818 . $_tok . q{]},
8819  
8820 Parse::RecDescent::_tracefirst($text),
8821 q{kvpair},
8822 $tracelevel)
8823 if defined $::RD_TRACE;
8824 132 $item{q{key}} = $_tok;
8825 132 push @item, $_tok;
8826
8827 }
8828  
8829 132 ▶ Parse::RecDescent::_trace(q{Trying subrule: [value]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8830 Parse::RecDescent::_tracefirst($text),
8831 q{kvpair},
8832 $tracelevel)
8833 if defined $::RD_TRACE;
8834 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8835 132 $expectation->is(q{value})->at($text);
8836 132 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::value($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = value($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 132 132
8837 {
8838
8839 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [value]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8840 Parse::RecDescent::_tracefirst($text),
8841 q{kvpair},
8842 $tracelevel)
8843 if defined $::RD_TRACE;
8844 0 $expectation->failed();
8845 0 last;
8846 }
8847 132 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [value]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8848 . $_tok . q{]},
8849  
8850 Parse::RecDescent::_tracefirst($text),
8851 q{kvpair},
8852 $tracelevel)
8853 if defined $::RD_TRACE;
8854 132 $item{q{value}} = $_tok;
8855 132 push @item, $_tok;
8856
8857 }
8858  
8859 132 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8860 Parse::RecDescent::_tracefirst($text),
8861 q{kvpair},
8862 $tracelevel)
8863 if defined $::RD_TRACE;
8864
8865  
8866 132 ▶ $_tok = ($_noactions) ? 0 : do { $return = { $item{key} => $item{value} } };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 132 132
8867 132 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 132 132
8868 {
8869 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8870 if defined $::RD_TRACE;
8871 0 last;
8872 }
8873 132 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8874 . $_tok . q{])},
8875 Parse::RecDescent::_tracefirst($text))
8876 if defined $::RD_TRACE;
8877 132 push @item, $_tok;
8878 132 $item{__ACTION1__}=$_tok;
8879
8880  
8881 132 ▶ Parse::RecDescent::_trace(q{>>Matched production: [')' key value]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
8882 Parse::RecDescent::_tracefirst($text),
8883 q{kvpair},
8884 $tracelevel)
8885 if defined $::RD_TRACE;
8886  
8887  
8888  
8889 132 $_matched = 1;
8890 132 last;
8891 }
8892  
8893 splice
8894 255 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 123 132 255
8895
8896 255 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 123 132 255
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
1320123
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
8897 {
8898 123 splice @{$thisparser->{deferred}}, $def_at;
8899
8900  
8901 123 $_[1] = $text; # NOT SURE THIS IS NEEDED
8902 123 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 123 123
8903 Parse::RecDescent::_tracefirst($_[1]),
8904 q{kvpair},
8905 $tracelevel)
8906 if defined $::RD_TRACE;
8907 123 return undef;
8908 }
8909 132 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 132 132
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
13200
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
8910 {
8911 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8912 q{kvpair},
8913 $tracelevel)
8914 if defined $::RD_TRACE;
8915 0 $return = $score_return;
8916 }
8917 132 splice @{$thisparser->{errors}}, $err_at;
8918 132 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 132 132
8919 132 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 132 132
8920 {
8921 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
8922 $return . q{])}, "",
8923 q{kvpair},
8924 $tracelevel);
8925 0 Parse::RecDescent::_trace(q{(consumed: [} .
8926 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
8927 Parse::RecDescent::_tracefirst($text),
8928 , q{kvpair},
8929 $tracelevel)
8930 }
8931 132 $_[1] = $text;
8932 132 return $return;
8933 }
8934  
8935 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
8936 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::mailboxname
8937 94 ▶{
Subroutine mailboxname: called CC=31 SCAR=42.7
8938 94 my $thisparser = $_[0];
8939 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8940 94 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
940
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
8941 94 $ERRORS = 0;
8942 94 my $thisrule = $thisparser->{"rules"}{"mailboxname"};
8943  
8944 94 ▶ Parse::RecDescent::_trace(q{Trying rule: [mailboxname]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
8945 Parse::RecDescent::_tracefirst($_[1]),
8946 q{mailboxname},
8947 $tracelevel)
8948 if defined $::RD_TRACE;
8949  
8950 94 my $def_at = @{$thisparser->{deferred}};
8951 94 my $err_at = @{$thisparser->{errors}};
8952  
8953 94 my $score;
8954 my $score_return;
8955 94 my $_tok;
8956 94 my $return = undef;
8957 94 my $_matched=0;
8958 94 my $commit=0;
8959 94 my @item = ();
8960 94 my %item = ();
8961 94 my $repeating = $_[2];
8962 94 my $_noactions = $_[3];
8963 94 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 94 0 94
8964 94 my $_itempos = $_[5];
8965 94 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 94 0 94
8966 94 my $text;
8967 my $lastsep;
8968 94 my $current_match;
8969 94 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING});
8970 94 $expectation->at($_[1]);
8971
8972 94 my $thisline;
8973 94 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
8974  
8975
8976  
8977 94 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 94 0 94
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0094
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8978 {
8979
8980 94 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
8981 Parse::RecDescent::_tracefirst($_[1]),
8982 q{mailboxname},
8983 $tracelevel)
8984 if defined $::RD_TRACE;
8985 94 my $thisprod = $thisrule->{"prods"}[0];
8986 94 $text = $_[1];
8987 94 my $_savetext;
8988 94 @item = (q{mailboxname});
8989 94 %item = (__RULE__ => q{mailboxname});
8990 94 my $repcount = 0;
8991  
8992  
8993 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
8994 Parse::RecDescent::_tracefirst($text),
8995 q{mailboxname},
8996 $tracelevel)
8997 if defined $::RD_TRACE;
8998 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8999 94 $expectation->is(q{})->at($text);
9000 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 94 0 94
9001 {
9002
9003 94 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
9004 Parse::RecDescent::_tracefirst($text),
9005 q{mailboxname},
9006 $tracelevel)
9007 if defined $::RD_TRACE;
9008 94 $expectation->failed();
9009 94 last;
9010 }
9011 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9012 . $_tok . q{]},
9013  
9014 Parse::RecDescent::_tracefirst($text),
9015 q{mailboxname},
9016 $tracelevel)
9017 if defined $::RD_TRACE;
9018 0 $item{q{NIL}} = $_tok;
9019 0 push @item, $_tok;
9020
9021 }
9022  
9023 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9024 Parse::RecDescent::_tracefirst($text),
9025 q{mailboxname},
9026 $tracelevel)
9027 if defined $::RD_TRACE;
9028  
9029  
9030  
9031 0 $_matched = 1;
9032 0 last;
9033 }
9034  
9035 splice
9036 94 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 94 0 94
9037
9038 94 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 94 0 94
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0094
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
9039 {
9040
9041 94 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
9042 Parse::RecDescent::_tracefirst($_[1]),
9043 q{mailboxname},
9044 $tracelevel)
9045 if defined $::RD_TRACE;
9046 94 my $thisprod = $thisrule->{"prods"}[1];
9047 94 $text = $_[1];
9048 94 my $_savetext;
9049 94 @item = (q{mailboxname});
9050 94 %item = (__RULE__ => q{mailboxname});
9051 94 my $repcount = 0;
9052  
9053  
9054 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
9055 Parse::RecDescent::_tracefirst($text),
9056 q{mailboxname},
9057 $tracelevel)
9058 if defined $::RD_TRACE;
9059 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
9060 94 $expectation->is(q{})->at($text);
9061 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 94 94
9062 {
9063
9064 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9065 Parse::RecDescent::_tracefirst($text),
9066 q{mailboxname},
9067 $tracelevel)
9068 if defined $::RD_TRACE;
9069 0 $expectation->failed();
9070 0 last;
9071 }
9072 94 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
9073 . $_tok . q{]},
9074  
9075 Parse::RecDescent::_tracefirst($text),
9076 q{mailboxname},
9077 $tracelevel)
9078 if defined $::RD_TRACE;
9079 94 $item{q{STRING}} = $_tok;
9080 94 push @item, $_tok;
9081
9082 }
9083  
9084 94 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
9085 Parse::RecDescent::_tracefirst($text),
9086 q{mailboxname},
9087 $tracelevel)
9088 if defined $::RD_TRACE;
9089  
9090  
9091  
9092 94 $_matched = 1;
9093 94 last;
9094 }
9095  
9096 splice
9097 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 94 94
9098
9099 94 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 94 94
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
9400
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
9100 {
9101 0 splice @{$thisparser->{deferred}}, $def_at;
9102
9103  
9104 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
9105 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9106 Parse::RecDescent::_tracefirst($_[1]),
9107 q{mailboxname},
9108 $tracelevel)
9109 if defined $::RD_TRACE;
9110 0 return undef;
9111 }
9112 94 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 94 94
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0940
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
9113 {
9114 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9115 q{mailboxname},
9116 $tracelevel)
9117 if defined $::RD_TRACE;
9118 0 $return = $score_return;
9119 }
9120 94 splice @{$thisparser->{errors}}, $err_at;
9121 94 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 94 0 94
9122 94 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 94 94
9123 {
9124 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
9125 $return . q{])}, "",
9126 q{mailboxname},
9127 $tracelevel);
9128 0 Parse::RecDescent::_trace(q{(consumed: [} .
9129 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
9130 Parse::RecDescent::_tracefirst($text),
9131 , q{mailboxname},
9132 $tracelevel)
9133 }
9134 94 $_[1] = $text;
9135 94 return $return;
9136 }
9137  
9138 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
9139 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::messageid
9140 24 ▶{
Subroutine messageid: called CC=31 SCAR=42.7
9141 24 my $thisparser = $_[0];
9142 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
9143 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
240
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
9144 24 $ERRORS = 0;
9145 24 my $thisrule = $thisparser->{"rules"}{"messageid"};
9146  
9147 24 ▶ Parse::RecDescent::_trace(q{Trying rule: [messageid]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
9148 Parse::RecDescent::_tracefirst($_[1]),
9149 q{messageid},
9150 $tracelevel)
9151 if defined $::RD_TRACE;
9152  
9153 24 my $def_at = @{$thisparser->{deferred}};
9154 24 my $err_at = @{$thisparser->{errors}};
9155  
9156 24 my $score;
9157 my $score_return;
9158 24 my $_tok;
9159 24 my $return = undef;
9160 24 my $_matched=0;
9161 24 my $commit=0;
9162 24 my @item = ();
9163 24 my %item = ();
9164 24 my $repeating = $_[2];
9165 24 my $_noactions = $_[3];
9166 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
9167 24 my $_itempos = $_[5];
9168 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 24 0 24
9169 24 my $text;
9170 my $lastsep;
9171 24 my $current_match;
9172 24 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING});
9173 24 $expectation->at($_[1]);
9174
9175 24 my $thisline;
9176 24 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
9177  
9178
9179  
9180 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
9181 {
9182
9183 24 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
9184 Parse::RecDescent::_tracefirst($_[1]),
9185 q{messageid},
9186 $tracelevel)
9187 if defined $::RD_TRACE;
9188 24 my $thisprod = $thisrule->{"prods"}[0];
9189 24 $text = $_[1];
9190 24 my $_savetext;
9191 24 @item = (q{messageid});
9192 24 %item = (__RULE__ => q{messageid});
9193 24 my $repcount = 0;
9194  
9195  
9196 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
9197 Parse::RecDescent::_tracefirst($text),
9198 q{messageid},
9199 $tracelevel)
9200 if defined $::RD_TRACE;
9201 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
9202 24 $expectation->is(q{})->at($text);
9203 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 24 0 24
9204 {
9205
9206 24 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
9207 Parse::RecDescent::_tracefirst($text),
9208 q{messageid},
9209 $tracelevel)
9210 if defined $::RD_TRACE;
9211 24 $expectation->failed();
9212 24 last;
9213 }
9214 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9215 . $_tok . q{]},
9216  
9217 Parse::RecDescent::_tracefirst($text),
9218 q{messageid},
9219 $tracelevel)
9220 if defined $::RD_TRACE;
9221 0 $item{q{NIL}} = $_tok;
9222 0 push @item, $_tok;
9223
9224 }
9225  
9226 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9227 Parse::RecDescent::_tracefirst($text),
9228 q{messageid},
9229 $tracelevel)
9230 if defined $::RD_TRACE;
9231  
9232  
9233  
9234 0 $_matched = 1;
9235 0 last;
9236 }
9237  
9238 splice
9239 24 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 24 0 24
9240
9241 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
9242 {
9243
9244 24 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
9245 Parse::RecDescent::_tracefirst($_[1]),
9246 q{messageid},
9247 $tracelevel)
9248 if defined $::RD_TRACE;
9249 24 my $thisprod = $thisrule->{"prods"}[1];
9250 24 $text = $_[1];
9251 24 my $_savetext;
9252 24 @item = (q{messageid});
9253 24 %item = (__RULE__ => q{messageid});
9254 24 my $repcount = 0;
9255  
9256  
9257 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
9258 Parse::RecDescent::_tracefirst($text),
9259 q{messageid},
9260 $tracelevel)
9261 if defined $::RD_TRACE;
9262 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
9263 24 $expectation->is(q{})->at($text);
9264 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
9265 {
9266
9267 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9268 Parse::RecDescent::_tracefirst($text),
9269 q{messageid},
9270 $tracelevel)
9271 if defined $::RD_TRACE;
9272 0 $expectation->failed();
9273 0 last;
9274 }
9275 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
9276 . $_tok . q{]},
9277  
9278 Parse::RecDescent::_tracefirst($text),
9279 q{messageid},
9280 $tracelevel)
9281 if defined $::RD_TRACE;
9282 24 $item{q{STRING}} = $_tok;
9283 24 push @item, $_tok;
9284
9285 }
9286  
9287 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
9288 Parse::RecDescent::_tracefirst($text),
9289 q{messageid},
9290 $tracelevel)
9291 if defined $::RD_TRACE;
9292  
9293  
9294  
9295 24 $_matched = 1;
9296 24 last;
9297 }
9298  
9299 splice
9300 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 24 24
9301
9302 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
9303 {
9304 0 splice @{$thisparser->{deferred}}, $def_at;
9305
9306  
9307 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
9308 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9309 Parse::RecDescent::_tracefirst($_[1]),
9310 q{messageid},
9311 $tracelevel)
9312 if defined $::RD_TRACE;
9313 0 return undef;
9314 }
9315 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0240
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
9316 {
9317 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9318 q{messageid},
9319 $tracelevel)
9320 if defined $::RD_TRACE;
9321 0 $return = $score_return;
9322 }
9323 24 splice @{$thisparser->{errors}}, $err_at;
9324 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
9325 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
9326 {
9327 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
9328 $return . q{])}, "",
9329 q{messageid},
9330 $tracelevel);
9331 0 Parse::RecDescent::_trace(q{(consumed: [} .
9332 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
9333 Parse::RecDescent::_tracefirst($text),
9334 , q{messageid},
9335 $tracelevel)
9336 }
9337 24 $_[1] = $text;
9338 24 return $return;
9339 }
9340  
9341 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
9342 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::multipart
9343 125 ▶{
Subroutine multipart: called CC=65 SCAR=53.4
9344 125 my $thisparser = $_[0];
9345 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
9346 125 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1250
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
9347 125 $ERRORS = 0;
9348 125 my $thisrule = $thisparser->{"rules"}{"multipart"};
9349  
9350 125 ▶ Parse::RecDescent::_trace(q{Trying rule: [multipart]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
9351 Parse::RecDescent::_tracefirst($_[1]),
9352 q{multipart},
9353 $tracelevel)
9354 if defined $::RD_TRACE;
9355  
9356 125 my $def_at = @{$thisparser->{deferred}};
9357 125 my $err_at = @{$thisparser->{errors}};
9358  
9359 125 my $score;
9360 my $score_return;
9361 125 my $_tok;
9362 125 my $return = undef;
9363 125 my $_matched=0;
9364 125 my $commit=0;
9365 125 my @item = ();
9366 125 my %item = ();
9367 125 my $repeating = $_[2];
9368 125 my $_noactions = $_[3];
9369 125 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 125 0 125
9370 125 my $_itempos = $_[5];
9371 125 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 125 0 125
9372 125 my $text;
9373 my $lastsep;
9374 125 my $current_match;
9375 125 my $expectation = new Parse::RecDescent::Expectation(q{subpart});
9376 125 $expectation->at($_[1]);
9377
9378 125 my $thisline;
9379 125 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
9380  
9381
9382  
9383 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
9384 {
9385
9386 125 ▶ Parse::RecDescent::_trace(q{Trying production: [subpart <commit> bodysubtype bodyparms bodydisp bodylang bodyloc bodyextra bodyextensions <defer:{ $subpartCount = 0 }>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
9387 Parse::RecDescent::_tracefirst($_[1]),
9388 q{multipart},
9389 $tracelevel)
9390 if defined $::RD_TRACE;
9391 125 my $thisprod = $thisrule->{"prods"}[0];
9392 125 $text = $_[1];
9393 125 my $_savetext;
9394 125 @item = (q{multipart});
9395 125 %item = (__RULE__ => q{multipart});
9396 125 my $repcount = 0;
9397  
9398  
9399 125 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [subpart]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
9400 Parse::RecDescent::_tracefirst($text),
9401 q{multipart},
9402 $tracelevel)
9403 if defined $::RD_TRACE;
9404 125 $expectation->is(q{})->at($text);
9405
9406 125 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::subpart, 1, 100000000, $_noactions,$expectation,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::subpart, 1, 100000000, $_noactions, $expectation, sub { \@arg; } , undef))) 94 31 125
9407 {
9408 94 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [subpart]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
9409 Parse::RecDescent::_tracefirst($text),
9410 q{multipart},
9411 $tracelevel)
9412 if defined $::RD_TRACE;
9413 94 last;
9414 }
9415 31 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [subpart]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9416 . @$_tok . q{ times)},
9417  
9418 Parse::RecDescent::_tracefirst($text),
9419 q{multipart},
9420 $tracelevel)
9421 if defined $::RD_TRACE;
9422 31 $item{q{subpart(s)}} = $_tok;
9423 31 push @item, $_tok;
9424
9425  
9426  
9427
9428  
9429 31 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9430 Parse::RecDescent::_tracefirst($text),
9431 q{multipart},
9432 $tracelevel)
9433 if defined $::RD_TRACE;
9434 31 $_tok = do { $commit = 1 };
9435 31 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 31 0 31
9436 {
9437 31 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9438 . $_tok . q{])},
9439 Parse::RecDescent::_tracefirst($text))
9440 if defined $::RD_TRACE;
9441 }
9442 else
9443 {
9444 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9445 Parse::RecDescent::_tracefirst($text))
9446 if defined $::RD_TRACE;
9447 }
9448
9449 31 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 31 31
9450 31 push @item, $item{__DIRECTIVE1__}=$_tok;
9451
9452  
9453 31 ▶ Parse::RecDescent::_trace(q{Trying subrule: [bodysubtype]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9454 Parse::RecDescent::_tracefirst($text),
9455 q{multipart},
9456 $tracelevel)
9457 if defined $::RD_TRACE;
9458 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
9459 31 $expectation->is(q{bodysubtype})->at($text);
9460 31 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodysubtype($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = bodysubtype($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 31 31
9461 {
9462
9463 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [bodysubtype]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9464 Parse::RecDescent::_tracefirst($text),
9465 q{multipart},
9466 $tracelevel)
9467 if defined $::RD_TRACE;
9468 0 $expectation->failed();
9469 0 last;
9470 }
9471 31 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [bodysubtype]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9472 . $_tok . q{]},
9473  
9474 Parse::RecDescent::_tracefirst($text),
9475 q{multipart},
9476 $tracelevel)
9477 if defined $::RD_TRACE;
9478 31 $item{q{bodysubtype}} = $_tok;
9479 31 push @item, $_tok;
9480
9481 }
9482  
9483 31 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyparms]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9484 Parse::RecDescent::_tracefirst($text),
9485 q{multipart},
9486 $tracelevel)
9487 if defined $::RD_TRACE;
9488 31 $expectation->is(q{bodyparms})->at($text);
9489
9490 31 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyparms, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyparms, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 31 31
9491 {
9492 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyparms]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9493 Parse::RecDescent::_tracefirst($text),
9494 q{multipart},
9495 $tracelevel)
9496 if defined $::RD_TRACE;
9497 0 last;
9498 }
9499 31 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyparms]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9500 . @$_tok . q{ times)},
9501  
9502 Parse::RecDescent::_tracefirst($text),
9503 q{multipart},
9504 $tracelevel)
9505 if defined $::RD_TRACE;
9506 31 $item{q{bodyparms(?)}} = $_tok;
9507 31 push @item, $_tok;
9508
9509  
9510  
9511 31 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodydisp]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9512 Parse::RecDescent::_tracefirst($text),
9513 q{multipart},
9514 $tracelevel)
9515 if defined $::RD_TRACE;
9516 31 $expectation->is(q{bodydisp})->at($text);
9517
9518 31 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodydisp, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodydisp, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 31 31
9519 {
9520 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodydisp]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9521 Parse::RecDescent::_tracefirst($text),
9522 q{multipart},
9523 $tracelevel)
9524 if defined $::RD_TRACE;
9525 0 last;
9526 }
9527 31 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodydisp]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9528 . @$_tok . q{ times)},
9529  
9530 Parse::RecDescent::_tracefirst($text),
9531 q{multipart},
9532 $tracelevel)
9533 if defined $::RD_TRACE;
9534 31 $item{q{bodydisp(?)}} = $_tok;
9535 31 push @item, $_tok;
9536
9537  
9538  
9539 31 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodylang]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9540 Parse::RecDescent::_tracefirst($text),
9541 q{multipart},
9542 $tracelevel)
9543 if defined $::RD_TRACE;
9544 31 $expectation->is(q{bodylang})->at($text);
9545
9546 31 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodylang, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodylang, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 31 31
9547 {
9548 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodylang]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9549 Parse::RecDescent::_tracefirst($text),
9550 q{multipart},
9551 $tracelevel)
9552 if defined $::RD_TRACE;
9553 0 last;
9554 }
9555 31 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodylang]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9556 . @$_tok . q{ times)},
9557  
9558 Parse::RecDescent::_tracefirst($text),
9559 q{multipart},
9560 $tracelevel)
9561 if defined $::RD_TRACE;
9562 31 $item{q{bodylang(?)}} = $_tok;
9563 31 push @item, $_tok;
9564
9565  
9566  
9567 31 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyloc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9568 Parse::RecDescent::_tracefirst($text),
9569 q{multipart},
9570 $tracelevel)
9571 if defined $::RD_TRACE;
9572 31 $expectation->is(q{bodyloc})->at($text);
9573
9574 31 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyloc, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyloc, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 31 31
9575 {
9576 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyloc]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9577 Parse::RecDescent::_tracefirst($text),
9578 q{multipart},
9579 $tracelevel)
9580 if defined $::RD_TRACE;
9581 0 last;
9582 }
9583 31 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyloc]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9584 . @$_tok . q{ times)},
9585  
9586 Parse::RecDescent::_tracefirst($text),
9587 q{multipart},
9588 $tracelevel)
9589 if defined $::RD_TRACE;
9590 31 $item{q{bodyloc(?)}} = $_tok;
9591 31 push @item, $_tok;
9592
9593  
9594  
9595 31 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyextra]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9596 Parse::RecDescent::_tracefirst($text),
9597 q{multipart},
9598 $tracelevel)
9599 if defined $::RD_TRACE;
9600 31 $expectation->is(q{bodyextra})->at($text);
9601
9602 31 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyextra, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyextra, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 31 31
9603 {
9604 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyextra]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9605 Parse::RecDescent::_tracefirst($text),
9606 q{multipart},
9607 $tracelevel)
9608 if defined $::RD_TRACE;
9609 0 last;
9610 }
9611 31 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyextra]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9612 . @$_tok . q{ times)},
9613  
9614 Parse::RecDescent::_tracefirst($text),
9615 q{multipart},
9616 $tracelevel)
9617 if defined $::RD_TRACE;
9618 31 $item{q{bodyextra(?)}} = $_tok;
9619 31 push @item, $_tok;
9620
9621  
9622  
9623 31 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyextensions]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9624 Parse::RecDescent::_tracefirst($text),
9625 q{multipart},
9626 $tracelevel)
9627 if defined $::RD_TRACE;
9628 31 $expectation->is(q{bodyextensions})->at($text);
9629
9630 31 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyextensions, 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::Mail::IMAPClient::BodyStructure::Parse::bodyextensions, 0, 100000000, $_noactions, $expectation, sub { \@arg; } , undef))) 0 31 31
9631 {
9632 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyextensions]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9633 Parse::RecDescent::_tracefirst($text),
9634 q{multipart},
9635 $tracelevel)
9636 if defined $::RD_TRACE;
9637 0 last;
9638 }
9639 31 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyextensions]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9640 . @$_tok . q{ times)},
9641  
9642 Parse::RecDescent::_tracefirst($text),
9643 q{multipart},
9644 $tracelevel)
9645 if defined $::RD_TRACE;
9646 31 $item{q{bodyextensions(s?)}} = $_tok;
9647 31 push @item, $_tok;
9648
9649  
9650  
9651
9652  
9653 31 ▶ Parse::RecDescent::_trace(q{Trying directive: [<defer:{ $subpartCount = 0 }>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9654 Parse::RecDescent::_tracefirst($text),
9655 q{multipart},
9656 $tracelevel)
9657 if defined $::RD_TRACE;
9658 31 ▶ $_tok = do { push @{$thisparser->{deferred}}, sub { $subpartCount = 0 }; };
Subroutine __ANON__: called CC=1 SCAR=0.0
9659 31 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 31 0 31
9660 {
9661 31 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9662 . $_tok . q{])},
9663 Parse::RecDescent::_tracefirst($text))
9664 if defined $::RD_TRACE;
9665 }
9666 else
9667 {
9668 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9669 Parse::RecDescent::_tracefirst($text))
9670 if defined $::RD_TRACE;
9671 }
9672
9673 31 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 31 31
9674 31 push @item, $item{__DIRECTIVE2__}=$_tok;
9675
9676  
9677 31 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9678 Parse::RecDescent::_tracefirst($text),
9679 q{multipart},
9680 $tracelevel)
9681 if defined $::RD_TRACE;
9682
9683  
9684 31 ▶ $_tok = ($_noactions) ? 0 : do { $return =
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 31 31
9685 { bodysubtype => $item{bodysubtype}
9686 , bodytype => 'MULTIPART'
9687 31 , bodystructure => $item{'subpart(s)'}
9688 };
9689 31 take_optional_items($return, \%item
9690 , qw/bodyparms bodydisp bodylang bodyloc bodyextra/);
9691 31 1;
9692 };
9693 31 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 31 31
9694 {
9695 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9696 if defined $::RD_TRACE;
9697 0 last;
9698 }
9699 31 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9700 . $_tok . q{])},
9701 Parse::RecDescent::_tracefirst($text))
9702 if defined $::RD_TRACE;
9703 31 push @item, $_tok;
9704 31 $item{__ACTION1__}=$_tok;
9705
9706  
9707 31 ▶ Parse::RecDescent::_trace(q{>>Matched production: [subpart <commit> bodysubtype bodyparms bodydisp bodylang bodyloc bodyextra bodyextensions <defer:{ $subpartCount = 0 }>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
9708 Parse::RecDescent::_tracefirst($text),
9709 q{multipart},
9710 $tracelevel)
9711 if defined $::RD_TRACE;
9712  
9713  
9714  
9715 31 $_matched = 1;
9716 31 last;
9717 }
9718  
9719 splice
9720 125 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 94 31 125
9721
9722 125 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 94 31 125
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
31094
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
9723 {
9724 94 splice @{$thisparser->{deferred}}, $def_at;
9725
9726  
9727 94 $_[1] = $text; # NOT SURE THIS IS NEEDED
9728 94 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
9729 Parse::RecDescent::_tracefirst($_[1]),
9730 q{multipart},
9731 $tracelevel)
9732 if defined $::RD_TRACE;
9733 94 return undef;
9734 }
9735 31 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 31 31
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
3100
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
9736 {
9737 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9738 q{multipart},
9739 $tracelevel)
9740 if defined $::RD_TRACE;
9741 0 $return = $score_return;
9742 }
9743 31 splice @{$thisparser->{errors}}, $err_at;
9744 31 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 31 31
9745 31 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 31 31
9746 {
9747 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
9748 $return . q{])}, "",
9749 q{multipart},
9750 $tracelevel);
9751 0 Parse::RecDescent::_trace(q{(consumed: [} .
9752 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
9753 Parse::RecDescent::_tracefirst($text),
9754 , q{multipart},
9755 $tracelevel)
9756 }
9757 31 $_[1] = $text;
9758 31 return $return;
9759 }
9760  
9761 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
9762 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::nestedmessage
9763 53 ▶{
Subroutine nestedmessage: called CC=81 SCAR=57.4
9764 53 my $thisparser = $_[0];
9765 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
9766 53 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
530
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
9767 53 $ERRORS = 0;
9768 53 my $thisrule = $thisparser->{"rules"}{"nestedmessage"};
9769  
9770 53 ▶ Parse::RecDescent::_trace(q{Trying rule: [nestedmessage]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
9771 Parse::RecDescent::_tracefirst($_[1]),
9772 q{nestedmessage},
9773 $tracelevel)
9774 if defined $::RD_TRACE;
9775  
9776 53 my $def_at = @{$thisparser->{deferred}};
9777 53 my $err_at = @{$thisparser->{errors}};
9778  
9779 53 my $score;
9780 my $score_return;
9781 53 my $_tok;
9782 53 my $return = undef;
9783 53 my $_matched=0;
9784 53 my $commit=0;
9785 53 my @item = ();
9786 53 my %item = ();
9787 53 my $repeating = $_[2];
9788 53 my $_noactions = $_[3];
9789 53 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 53 0 53
9790 53 my $_itempos = $_[5];
9791 53 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 53 0 53
9792 53 my $text;
9793 my $lastsep;
9794 53 my $current_match;
9795 53 my $expectation = new Parse::RecDescent::Expectation(q{rfc822message});
9796 53 $expectation->at($_[1]);
9797
9798 53 my $thisline;
9799 53 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
9800  
9801
9802  
9803 53 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 53 0 53
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0053
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
9804 {
9805
9806 53 ▶ Parse::RecDescent::_trace(q{Trying production: [rfc822message <commit> bodyparms bodyid bodydesc bodyenc bodysize envelopestruct bodystructure textlines bodyMD5 bodydisp bodylang bodyextra]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
9807 Parse::RecDescent::_tracefirst($_[1]),
9808 q{nestedmessage},
9809 $tracelevel)
9810 if defined $::RD_TRACE;
9811 53 my $thisprod = $thisrule->{"prods"}[0];
9812 53 $text = $_[1];
9813 53 my $_savetext;
9814 53 @item = (q{nestedmessage});
9815 53 %item = (__RULE__ => q{nestedmessage});
9816 53 my $repcount = 0;
9817  
9818  
9819 53 ▶ Parse::RecDescent::_trace(q{Trying subrule: [rfc822message]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
9820 Parse::RecDescent::_tracefirst($text),
9821 q{nestedmessage},
9822 $tracelevel)
9823 if defined $::RD_TRACE;
9824 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
9825 53 $expectation->is(q{})->at($text);
9826 53 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::rfc822message($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = rfc822message($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 32 21 53
9827 {
9828
9829 32 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [rfc822message]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
9830 Parse::RecDescent::_tracefirst($text),
9831 q{nestedmessage},
9832 $tracelevel)
9833 if defined $::RD_TRACE;
9834 32 $expectation->failed();
9835 32 last;
9836 }
9837 21 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [rfc822message]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9838 . $_tok . q{]},
9839  
9840 Parse::RecDescent::_tracefirst($text),
9841 q{nestedmessage},
9842 $tracelevel)
9843 if defined $::RD_TRACE;
9844 21 $item{q{rfc822message}} = $_tok;
9845 21 push @item, $_tok;
9846
9847 }
9848  
9849
9850  
9851 21 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9852 Parse::RecDescent::_tracefirst($text),
9853 q{nestedmessage},
9854 $tracelevel)
9855 if defined $::RD_TRACE;
9856 21 $_tok = do { $commit = 1 };
9857 21 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 21 0 21
9858 {
9859 21 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9860 . $_tok . q{])},
9861 Parse::RecDescent::_tracefirst($text))
9862 if defined $::RD_TRACE;
9863 }
9864 else
9865 {
9866 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9867 Parse::RecDescent::_tracefirst($text))
9868 if defined $::RD_TRACE;
9869 }
9870
9871 21 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 21 21
9872 21 push @item, $item{__DIRECTIVE1__}=$_tok;
9873
9874  
9875 21 ▶ Parse::RecDescent::_trace(q{Trying subrule: [bodyparms]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9876 Parse::RecDescent::_tracefirst($text),
9877 q{nestedmessage},
9878 $tracelevel)
9879 if defined $::RD_TRACE;
9880 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
9881 21 $expectation->is(q{bodyparms})->at($text);
9882 21 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyparms($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = bodyparms($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 21 21
9883 {
9884
9885 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [bodyparms]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9886 Parse::RecDescent::_tracefirst($text),
9887 q{nestedmessage},
9888 $tracelevel)
9889 if defined $::RD_TRACE;
9890 0 $expectation->failed();
9891 0 last;
9892 }
9893 21 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [bodyparms]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9894 . $_tok . q{]},
9895  
9896 Parse::RecDescent::_tracefirst($text),
9897 q{nestedmessage},
9898 $tracelevel)
9899 if defined $::RD_TRACE;
9900 21 $item{q{bodyparms}} = $_tok;
9901 21 push @item, $_tok;
9902
9903 }
9904  
9905 21 ▶ Parse::RecDescent::_trace(q{Trying subrule: [bodyid]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9906 Parse::RecDescent::_tracefirst($text),
9907 q{nestedmessage},
9908 $tracelevel)
9909 if defined $::RD_TRACE;
9910 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
9911 21 $expectation->is(q{bodyid})->at($text);
9912 21 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyid($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = bodyid($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 21 21
9913 {
9914
9915 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [bodyid]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9916 Parse::RecDescent::_tracefirst($text),
9917 q{nestedmessage},
9918 $tracelevel)
9919 if defined $::RD_TRACE;
9920 0 $expectation->failed();
9921 0 last;
9922 }
9923 21 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [bodyid]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9924 . $_tok . q{]},
9925  
9926 Parse::RecDescent::_tracefirst($text),
9927 q{nestedmessage},
9928 $tracelevel)
9929 if defined $::RD_TRACE;
9930 21 $item{q{bodyid}} = $_tok;
9931 21 push @item, $_tok;
9932
9933 }
9934  
9935 21 ▶ Parse::RecDescent::_trace(q{Trying subrule: [bodydesc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9936 Parse::RecDescent::_tracefirst($text),
9937 q{nestedmessage},
9938 $tracelevel)
9939 if defined $::RD_TRACE;
9940 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
9941 21 $expectation->is(q{bodydesc})->at($text);
9942 21 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodydesc($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = bodydesc($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 21 21
9943 {
9944
9945 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [bodydesc]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9946 Parse::RecDescent::_tracefirst($text),
9947 q{nestedmessage},
9948 $tracelevel)
9949 if defined $::RD_TRACE;
9950 0 $expectation->failed();
9951 0 last;
9952 }
9953 21 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [bodydesc]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9954 . $_tok . q{]},
9955  
9956 Parse::RecDescent::_tracefirst($text),
9957 q{nestedmessage},
9958 $tracelevel)
9959 if defined $::RD_TRACE;
9960 21 $item{q{bodydesc}} = $_tok;
9961 21 push @item, $_tok;
9962
9963 }
9964  
9965 21 ▶ Parse::RecDescent::_trace(q{Trying subrule: [bodyenc]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9966 Parse::RecDescent::_tracefirst($text),
9967 q{nestedmessage},
9968 $tracelevel)
9969 if defined $::RD_TRACE;
9970 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
9971 21 $expectation->is(q{bodyenc})->at($text);
9972 21 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyenc($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = bodyenc($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 21 21
9973 {
9974
9975 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [bodyenc]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9976 Parse::RecDescent::_tracefirst($text),
9977 q{nestedmessage},
9978 $tracelevel)
9979 if defined $::RD_TRACE;
9980 0 $expectation->failed();
9981 0 last;
9982 }
9983 21 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [bodyenc]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9984 . $_tok . q{]},
9985  
9986 Parse::RecDescent::_tracefirst($text),
9987 q{nestedmessage},
9988 $tracelevel)
9989 if defined $::RD_TRACE;
9990 21 $item{q{bodyenc}} = $_tok;
9991 21 push @item, $_tok;
9992
9993 }
9994  
9995 21 ▶ Parse::RecDescent::_trace(q{Trying subrule: [bodysize]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
9996 Parse::RecDescent::_tracefirst($text),
9997 q{nestedmessage},
9998 $tracelevel)
9999 if defined $::RD_TRACE;
10000 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
10001 21 $expectation->is(q{bodysize})->at($text);
10002 21 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodysize($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = bodysize($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 21 21
10003 {
10004
10005 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [bodysize]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10006 Parse::RecDescent::_tracefirst($text),
10007 q{nestedmessage},
10008 $tracelevel)
10009 if defined $::RD_TRACE;
10010 0 $expectation->failed();
10011 0 last;
10012 }
10013 21 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [bodysize]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10014 . $_tok . q{]},
10015  
10016 Parse::RecDescent::_tracefirst($text),
10017 q{nestedmessage},
10018 $tracelevel)
10019 if defined $::RD_TRACE;
10020 21 $item{q{bodysize}} = $_tok;
10021 21 push @item, $_tok;
10022
10023 }
10024  
10025 21 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [envelopestruct]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10026 Parse::RecDescent::_tracefirst($text),
10027 q{nestedmessage},
10028 $tracelevel)
10029 if defined $::RD_TRACE;
10030 21 $expectation->is(q{envelopestruct})->at($text);
10031
10032 21 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::envelopestruct, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::envelopestruct, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 21 21
10033 {
10034 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [envelopestruct]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10035 Parse::RecDescent::_tracefirst($text),
10036 q{nestedmessage},
10037 $tracelevel)
10038 if defined $::RD_TRACE;
10039 0 last;
10040 }
10041 21 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [envelopestruct]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10042 . @$_tok . q{ times)},
10043  
10044 Parse::RecDescent::_tracefirst($text),
10045 q{nestedmessage},
10046 $tracelevel)
10047 if defined $::RD_TRACE;
10048 21 $item{q{envelopestruct(?)}} = $_tok;
10049 21 push @item, $_tok;
10050
10051  
10052  
10053 21 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodystructure]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10054 Parse::RecDescent::_tracefirst($text),
10055 q{nestedmessage},
10056 $tracelevel)
10057 if defined $::RD_TRACE;
10058 21 $expectation->is(q{bodystructure})->at($text);
10059
10060 21 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodystructure, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodystructure, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 21 21
10061 {
10062 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodystructure]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10063 Parse::RecDescent::_tracefirst($text),
10064 q{nestedmessage},
10065 $tracelevel)
10066 if defined $::RD_TRACE;
10067 0 last;
10068 }
10069 21 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodystructure]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10070 . @$_tok . q{ times)},
10071  
10072 Parse::RecDescent::_tracefirst($text),
10073 q{nestedmessage},
10074 $tracelevel)
10075 if defined $::RD_TRACE;
10076 21 $item{q{bodystructure(?)}} = $_tok;
10077 21 push @item, $_tok;
10078
10079  
10080  
10081 21 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [textlines]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10082 Parse::RecDescent::_tracefirst($text),
10083 q{nestedmessage},
10084 $tracelevel)
10085 if defined $::RD_TRACE;
10086 21 $expectation->is(q{textlines})->at($text);
10087
10088 21 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::textlines, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::textlines, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 21 21
10089 {
10090 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [textlines]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10091 Parse::RecDescent::_tracefirst($text),
10092 q{nestedmessage},
10093 $tracelevel)
10094 if defined $::RD_TRACE;
10095 0 last;
10096 }
10097 21 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [textlines]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10098 . @$_tok . q{ times)},
10099  
10100 Parse::RecDescent::_tracefirst($text),
10101 q{nestedmessage},
10102 $tracelevel)
10103 if defined $::RD_TRACE;
10104 21 $item{q{textlines(?)}} = $_tok;
10105 21 push @item, $_tok;
10106
10107  
10108  
10109 21 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyMD5]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10110 Parse::RecDescent::_tracefirst($text),
10111 q{nestedmessage},
10112 $tracelevel)
10113 if defined $::RD_TRACE;
10114 21 $expectation->is(q{bodyMD5})->at($text);
10115
10116 21 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyMD5, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyMD5, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 21 21
10117 {
10118 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyMD5]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10119 Parse::RecDescent::_tracefirst($text),
10120 q{nestedmessage},
10121 $tracelevel)
10122 if defined $::RD_TRACE;
10123 0 last;
10124 }
10125 21 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyMD5]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10126 . @$_tok . q{ times)},
10127  
10128 Parse::RecDescent::_tracefirst($text),
10129 q{nestedmessage},
10130 $tracelevel)
10131 if defined $::RD_TRACE;
10132 21 $item{q{bodyMD5(?)}} = $_tok;
10133 21 push @item, $_tok;
10134
10135  
10136  
10137 21 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodydisp]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10138 Parse::RecDescent::_tracefirst($text),
10139 q{nestedmessage},
10140 $tracelevel)
10141 if defined $::RD_TRACE;
10142 21 $expectation->is(q{bodydisp})->at($text);
10143
10144 21 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodydisp, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodydisp, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 21 21
10145 {
10146 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodydisp]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10147 Parse::RecDescent::_tracefirst($text),
10148 q{nestedmessage},
10149 $tracelevel)
10150 if defined $::RD_TRACE;
10151 0 last;
10152 }
10153 21 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodydisp]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10154 . @$_tok . q{ times)},
10155  
10156 Parse::RecDescent::_tracefirst($text),
10157 q{nestedmessage},
10158 $tracelevel)
10159 if defined $::RD_TRACE;
10160 21 $item{q{bodydisp(?)}} = $_tok;
10161 21 push @item, $_tok;
10162
10163  
10164  
10165 21 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodylang]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10166 Parse::RecDescent::_tracefirst($text),
10167 q{nestedmessage},
10168 $tracelevel)
10169 if defined $::RD_TRACE;
10170 21 $expectation->is(q{bodylang})->at($text);
10171
10172 21 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodylang, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodylang, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 21 21
10173 {
10174 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodylang]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10175 Parse::RecDescent::_tracefirst($text),
10176 q{nestedmessage},
10177 $tracelevel)
10178 if defined $::RD_TRACE;
10179 0 last;
10180 }
10181 21 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodylang]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10182 . @$_tok . q{ times)},
10183  
10184 Parse::RecDescent::_tracefirst($text),
10185 q{nestedmessage},
10186 $tracelevel)
10187 if defined $::RD_TRACE;
10188 21 $item{q{bodylang(?)}} = $_tok;
10189 21 push @item, $_tok;
10190
10191  
10192  
10193 21 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyextra]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10194 Parse::RecDescent::_tracefirst($text),
10195 q{nestedmessage},
10196 $tracelevel)
10197 if defined $::RD_TRACE;
10198 21 $expectation->is(q{bodyextra})->at($text);
10199
10200 21 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyextra, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyextra, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 21 21
10201 {
10202 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyextra]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10203 Parse::RecDescent::_tracefirst($text),
10204 q{nestedmessage},
10205 $tracelevel)
10206 if defined $::RD_TRACE;
10207 0 last;
10208 }
10209 21 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyextra]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10210 . @$_tok . q{ times)},
10211  
10212 Parse::RecDescent::_tracefirst($text),
10213 q{nestedmessage},
10214 $tracelevel)
10215 if defined $::RD_TRACE;
10216 21 $item{q{bodyextra(?)}} = $_tok;
10217 21 push @item, $_tok;
10218
10219  
10220  
10221 21 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10222 Parse::RecDescent::_tracefirst($text),
10223 q{nestedmessage},
10224 $tracelevel)
10225 if defined $::RD_TRACE;
10226
10227  
10228 21 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 21 21
10229 21 $return = {};
10230 $return->{$_} = $item{$_}
10231 21 for qw/bodyparms bodyid bodydesc bodyenc bodysize/;
10232 # envelopestruct bodystructure textlines/;
10233  
10234 21 take_optional_items($return, \%item
10235 , qw/envelopestruct bodystructure textlines/
10236 , qw/bodyMD5 bodydisp bodylang bodyextra/);
10237  
10238 21 merge_hash($return, $item{bodystructure}[0]);
10239 21 merge_hash($return, $item{basicfields});
10240 21 $return->{bodytype} = "MESSAGE" ;
10241 21 $return->{bodysubtype} = "RFC822" ;
10242 21 1;
10243 };
10244 21 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 21 21
10245 {
10246 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10247 if defined $::RD_TRACE;
10248 0 last;
10249 }
10250 21 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10251 . $_tok . q{])},
10252 Parse::RecDescent::_tracefirst($text))
10253 if defined $::RD_TRACE;
10254 21 push @item, $_tok;
10255 21 $item{__ACTION1__}=$_tok;
10256
10257  
10258 21 ▶ Parse::RecDescent::_trace(q{>>Matched production: [rfc822message <commit> bodyparms bodyid bodydesc bodyenc bodysize envelopestruct bodystructure textlines bodyMD5 bodydisp bodylang bodyextra]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10259 Parse::RecDescent::_tracefirst($text),
10260 q{nestedmessage},
10261 $tracelevel)
10262 if defined $::RD_TRACE;
10263  
10264  
10265  
10266 21 $_matched = 1;
10267 21 last;
10268 }
10269  
10270 splice
10271 53 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 32 21 53
10272
10273 53 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 32 21 53
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
21032
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
10274 {
10275 32 splice @{$thisparser->{deferred}}, $def_at;
10276
10277  
10278 32 $_[1] = $text; # NOT SURE THIS IS NEEDED
10279 32 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
10280 Parse::RecDescent::_tracefirst($_[1]),
10281 q{nestedmessage},
10282 $tracelevel)
10283 if defined $::RD_TRACE;
10284 32 return undef;
10285 }
10286 21 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 21 21
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
2100
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
10287 {
10288 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10289 q{nestedmessage},
10290 $tracelevel)
10291 if defined $::RD_TRACE;
10292 0 $return = $score_return;
10293 }
10294 21 splice @{$thisparser->{errors}}, $err_at;
10295 21 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 21 21
10296 21 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 21 21
10297 {
10298 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
10299 $return . q{])}, "",
10300 q{nestedmessage},
10301 $tracelevel);
10302 0 Parse::RecDescent::_trace(q{(consumed: [} .
10303 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
10304 Parse::RecDescent::_tracefirst($text),
10305 , q{nestedmessage},
10306 $tracelevel)
10307 }
10308 21 $_[1] = $text;
10309 21 return $return;
10310 }
10311  
10312 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
10313 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::othertypemessage
10314 32 ▶{
Subroutine othertypemessage: called CC=47 SCAR=46.5
10315 32 my $thisparser = $_[0];
10316 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
10317 32 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
320
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
10318 32 $ERRORS = 0;
10319 32 my $thisrule = $thisparser->{"rules"}{"othertypemessage"};
10320  
10321 32 ▶ Parse::RecDescent::_trace(q{Trying rule: [othertypemessage]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
10322 Parse::RecDescent::_tracefirst($_[1]),
10323 q{othertypemessage},
10324 $tracelevel)
10325 if defined $::RD_TRACE;
10326  
10327 32 my $def_at = @{$thisparser->{deferred}};
10328 32 my $err_at = @{$thisparser->{errors}};
10329  
10330 32 my $score;
10331 my $score_return;
10332 32 my $_tok;
10333 32 my $return = undef;
10334 32 my $_matched=0;
10335 32 my $commit=0;
10336 32 my @item = ();
10337 32 my %item = ();
10338 32 my $repeating = $_[2];
10339 32 my $_noactions = $_[3];
10340 32 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 32 0 32
10341 32 my $_itempos = $_[5];
10342 32 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 32 0 32
10343 32 my $text;
10344 my $lastsep;
10345 32 my $current_match;
10346 32 my $expectation = new Parse::RecDescent::Expectation(q{bodytype});
10347 32 $expectation->at($_[1]);
10348
10349 32 my $thisline;
10350 32 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
10351  
10352
10353  
10354 32 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 32 0 32
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0032
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
10355 {
10356
10357 32 ▶ Parse::RecDescent::_trace(q{Trying production: [bodytype basicfields bodyMD5 bodydisp bodylang bodyextra]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
10358 Parse::RecDescent::_tracefirst($_[1]),
10359 q{othertypemessage},
10360 $tracelevel)
10361 if defined $::RD_TRACE;
10362 32 my $thisprod = $thisrule->{"prods"}[0];
10363 32 $text = $_[1];
10364 32 my $_savetext;
10365 32 @item = (q{othertypemessage});
10366 32 %item = (__RULE__ => q{othertypemessage});
10367 32 my $repcount = 0;
10368  
10369  
10370 32 ▶ Parse::RecDescent::_trace(q{Trying subrule: [bodytype]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
10371 Parse::RecDescent::_tracefirst($text),
10372 q{othertypemessage},
10373 $tracelevel)
10374 if defined $::RD_TRACE;
10375 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
10376 32 $expectation->is(q{})->at($text);
10377 32 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodytype($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = bodytype($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 20 12 32
10378 {
10379
10380 20 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [bodytype]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
10381 Parse::RecDescent::_tracefirst($text),
10382 q{othertypemessage},
10383 $tracelevel)
10384 if defined $::RD_TRACE;
10385 20 $expectation->failed();
10386 20 last;
10387 }
10388 12 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [bodytype]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10389 . $_tok . q{]},
10390  
10391 Parse::RecDescent::_tracefirst($text),
10392 q{othertypemessage},
10393 $tracelevel)
10394 if defined $::RD_TRACE;
10395 12 $item{q{bodytype}} = $_tok;
10396 12 push @item, $_tok;
10397
10398 }
10399  
10400 12 ▶ Parse::RecDescent::_trace(q{Trying subrule: [basicfields]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10401 Parse::RecDescent::_tracefirst($text),
10402 q{othertypemessage},
10403 $tracelevel)
10404 if defined $::RD_TRACE;
10405 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
10406 12 $expectation->is(q{basicfields})->at($text);
10407 12 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::basicfields($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = basicfields($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 12 12
10408 {
10409
10410 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [basicfields]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10411 Parse::RecDescent::_tracefirst($text),
10412 q{othertypemessage},
10413 $tracelevel)
10414 if defined $::RD_TRACE;
10415 0 $expectation->failed();
10416 0 last;
10417 }
10418 12 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [basicfields]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10419 . $_tok . q{]},
10420  
10421 Parse::RecDescent::_tracefirst($text),
10422 q{othertypemessage},
10423 $tracelevel)
10424 if defined $::RD_TRACE;
10425 12 $item{q{basicfields}} = $_tok;
10426 12 push @item, $_tok;
10427
10428 }
10429  
10430 12 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyMD5]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10431 Parse::RecDescent::_tracefirst($text),
10432 q{othertypemessage},
10433 $tracelevel)
10434 if defined $::RD_TRACE;
10435 12 $expectation->is(q{bodyMD5})->at($text);
10436
10437 12 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyMD5, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyMD5, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 12 12
10438 {
10439 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyMD5]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10440 Parse::RecDescent::_tracefirst($text),
10441 q{othertypemessage},
10442 $tracelevel)
10443 if defined $::RD_TRACE;
10444 0 last;
10445 }
10446 12 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyMD5]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10447 . @$_tok . q{ times)},
10448  
10449 Parse::RecDescent::_tracefirst($text),
10450 q{othertypemessage},
10451 $tracelevel)
10452 if defined $::RD_TRACE;
10453 12 $item{q{bodyMD5(?)}} = $_tok;
10454 12 push @item, $_tok;
10455
10456  
10457  
10458 12 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodydisp]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10459 Parse::RecDescent::_tracefirst($text),
10460 q{othertypemessage},
10461 $tracelevel)
10462 if defined $::RD_TRACE;
10463 12 $expectation->is(q{bodydisp})->at($text);
10464
10465 12 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodydisp, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodydisp, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 12 12
10466 {
10467 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodydisp]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10468 Parse::RecDescent::_tracefirst($text),
10469 q{othertypemessage},
10470 $tracelevel)
10471 if defined $::RD_TRACE;
10472 0 last;
10473 }
10474 12 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodydisp]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10475 . @$_tok . q{ times)},
10476  
10477 Parse::RecDescent::_tracefirst($text),
10478 q{othertypemessage},
10479 $tracelevel)
10480 if defined $::RD_TRACE;
10481 12 $item{q{bodydisp(?)}} = $_tok;
10482 12 push @item, $_tok;
10483
10484  
10485  
10486 12 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodylang]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10487 Parse::RecDescent::_tracefirst($text),
10488 q{othertypemessage},
10489 $tracelevel)
10490 if defined $::RD_TRACE;
10491 12 $expectation->is(q{bodylang})->at($text);
10492
10493 12 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodylang, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodylang, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 12 12
10494 {
10495 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodylang]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10496 Parse::RecDescent::_tracefirst($text),
10497 q{othertypemessage},
10498 $tracelevel)
10499 if defined $::RD_TRACE;
10500 0 last;
10501 }
10502 12 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodylang]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10503 . @$_tok . q{ times)},
10504  
10505 Parse::RecDescent::_tracefirst($text),
10506 q{othertypemessage},
10507 $tracelevel)
10508 if defined $::RD_TRACE;
10509 12 $item{q{bodylang(?)}} = $_tok;
10510 12 push @item, $_tok;
10511
10512  
10513  
10514 12 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyextra]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10515 Parse::RecDescent::_tracefirst($text),
10516 q{othertypemessage},
10517 $tracelevel)
10518 if defined $::RD_TRACE;
10519 12 $expectation->is(q{bodyextra})->at($text);
10520
10521 12 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyextra, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyextra, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 12 12
10522 {
10523 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyextra]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10524 Parse::RecDescent::_tracefirst($text),
10525 q{othertypemessage},
10526 $tracelevel)
10527 if defined $::RD_TRACE;
10528 0 last;
10529 }
10530 12 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyextra]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10531 . @$_tok . q{ times)},
10532  
10533 Parse::RecDescent::_tracefirst($text),
10534 q{othertypemessage},
10535 $tracelevel)
10536 if defined $::RD_TRACE;
10537 12 $item{q{bodyextra(?)}} = $_tok;
10538 12 push @item, $_tok;
10539
10540  
10541  
10542 12 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10543 Parse::RecDescent::_tracefirst($text),
10544 q{othertypemessage},
10545 $tracelevel)
10546 if defined $::RD_TRACE;
10547
10548  
10549 12 ▶ $_tok = ($_noactions) ? 0 : do { $return = { bodytype => $item{bodytype} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 12 12
10550 12 take_optional_items($return, \%item
10551 , qw/bodyMD5 bodydisp bodylang bodyextra/ );
10552 12 merge_hash($return, $item{basicfields});
10553 12 1;
10554 };
10555 12 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 12 12
10556 {
10557 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10558 if defined $::RD_TRACE;
10559 0 last;
10560 }
10561 12 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10562 . $_tok . q{])},
10563 Parse::RecDescent::_tracefirst($text))
10564 if defined $::RD_TRACE;
10565 12 push @item, $_tok;
10566 12 $item{__ACTION1__}=$_tok;
10567
10568  
10569 12 ▶ Parse::RecDescent::_trace(q{>>Matched production: [bodytype basicfields bodyMD5 bodydisp bodylang bodyextra]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10570 Parse::RecDescent::_tracefirst($text),
10571 q{othertypemessage},
10572 $tracelevel)
10573 if defined $::RD_TRACE;
10574  
10575  
10576  
10577 12 $_matched = 1;
10578 12 last;
10579 }
10580  
10581 splice
10582 32 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 20 12 32
10583
10584 32 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 20 12 32
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
12020
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
10585 {
10586 20 splice @{$thisparser->{deferred}}, $def_at;
10587
10588  
10589 20 $_[1] = $text; # NOT SURE THIS IS NEEDED
10590 20 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
10591 Parse::RecDescent::_tracefirst($_[1]),
10592 q{othertypemessage},
10593 $tracelevel)
10594 if defined $::RD_TRACE;
10595 20 return undef;
10596 }
10597 12 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 12 12
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
1200
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
10598 {
10599 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10600 q{othertypemessage},
10601 $tracelevel)
10602 if defined $::RD_TRACE;
10603 0 $return = $score_return;
10604 }
10605 12 splice @{$thisparser->{errors}}, $err_at;
10606 12 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 12 12
10607 12 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 12 12
10608 {
10609 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
10610 $return . q{])}, "",
10611 q{othertypemessage},
10612 $tracelevel);
10613 0 Parse::RecDescent::_trace(q{(consumed: [} .
10614 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
10615 Parse::RecDescent::_tracefirst($text),
10616 , q{othertypemessage},
10617 $tracelevel)
10618 }
10619 12 $_[1] = $text;
10620 12 return $return;
10621 }
10622  
10623 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
10624 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::part
10625 125 ▶{
Subroutine part: called CC=69 SCAR=48.1
10626 125 my $thisparser = $_[0];
10627 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
10628 125 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1250
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
10629 125 $ERRORS = 0;
10630 125 my $thisrule = $thisparser->{"rules"}{"part"};
10631  
10632 125 ▶ Parse::RecDescent::_trace(q{Trying rule: [part]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
10633 Parse::RecDescent::_tracefirst($_[1]),
10634 q{part},
10635 $tracelevel)
10636 if defined $::RD_TRACE;
10637  
10638 125 my $def_at = @{$thisparser->{deferred}};
10639 125 my $err_at = @{$thisparser->{errors}};
10640  
10641 125 my $score;
10642 my $score_return;
10643 125 my $_tok;
10644 125 my $return = undef;
10645 125 my $_matched=0;
10646 125 my $commit=0;
10647 125 my @item = ();
10648 125 my %item = ();
10649 125 my $repeating = $_[2];
10650 125 my $_noactions = $_[3];
10651 125 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 125 0 125
10652 125 my $_itempos = $_[5];
10653 125 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 125 0 125
10654 125 my $text;
10655 my $lastsep;
10656 125 my $current_match;
10657 125 my $expectation = new Parse::RecDescent::Expectation(q{multipart, or textmessage, or nestedmessage, or othertypemessage});
10658 125 $expectation->at($_[1]);
10659
10660 125 my $thisline;
10661 125 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
10662  
10663
10664  
10665 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
10666 {
10667
10668 125 ▶ Parse::RecDescent::_trace(q{Trying production: [multipart]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
10669 Parse::RecDescent::_tracefirst($_[1]),
10670 q{part},
10671 $tracelevel)
10672 if defined $::RD_TRACE;
10673 125 my $thisprod = $thisrule->{"prods"}[0];
10674 125 $text = $_[1];
10675 125 my $_savetext;
10676 125 @item = (q{part});
10677 125 %item = (__RULE__ => q{part});
10678 125 my $repcount = 0;
10679  
10680  
10681 125 ▶ Parse::RecDescent::_trace(q{Trying subrule: [multipart]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
10682 Parse::RecDescent::_tracefirst($text),
10683 q{part},
10684 $tracelevel)
10685 if defined $::RD_TRACE;
10686 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
10687 125 $expectation->is(q{})->at($text);
10688 125 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::multipart($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = multipart($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 94 31 125
10689 {
10690
10691 94 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [multipart]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
10692 Parse::RecDescent::_tracefirst($text),
10693 q{part},
10694 $tracelevel)
10695 if defined $::RD_TRACE;
10696 94 $expectation->failed();
10697 94 last;
10698 }
10699 31 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [multipart]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
10700 . $_tok . q{]},
10701  
10702 Parse::RecDescent::_tracefirst($text),
10703 q{part},
10704 $tracelevel)
10705 if defined $::RD_TRACE;
10706 31 $item{q{multipart}} = $_tok;
10707 31 push @item, $_tok;
10708
10709 }
10710  
10711 31 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
10712 Parse::RecDescent::_tracefirst($text),
10713 q{part},
10714 $tracelevel)
10715 if defined $::RD_TRACE;
10716
10717  
10718 31 ▶ $_tok = ($_noactions) ? 0 : do { $return = bless $item{multipart}, $mibs };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 31 31
10719 31 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 31 31
10720 {
10721 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10722 if defined $::RD_TRACE;
10723 0 last;
10724 }
10725 31 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
10726 . $_tok . q{])},
10727 Parse::RecDescent::_tracefirst($text))
10728 if defined $::RD_TRACE;
10729 31 push @item, $_tok;
10730 31 $item{__ACTION1__}=$_tok;
10731
10732  
10733 31 ▶ Parse::RecDescent::_trace(q{>>Matched production: [multipart]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
10734 Parse::RecDescent::_tracefirst($text),
10735 q{part},
10736 $tracelevel)
10737 if defined $::RD_TRACE;
10738  
10739  
10740  
10741 31 $_matched = 1;
10742 31 last;
10743 }
10744  
10745 splice
10746 125 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 94 31 125
10747
10748 125 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 94 31 125
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
31094
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
10749 {
10750
10751 94 ▶ Parse::RecDescent::_trace(q{Trying production: [textmessage]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
10752 Parse::RecDescent::_tracefirst($_[1]),
10753 q{part},
10754 $tracelevel)
10755 if defined $::RD_TRACE;
10756 94 my $thisprod = $thisrule->{"prods"}[1];
10757 94 $text = $_[1];
10758 94 my $_savetext;
10759 94 @item = (q{part});
10760 94 %item = (__RULE__ => q{part});
10761 94 my $repcount = 0;
10762  
10763  
10764 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [textmessage]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
10765 Parse::RecDescent::_tracefirst($text),
10766 q{part},
10767 $tracelevel)
10768 if defined $::RD_TRACE;
10769 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
10770 94 $expectation->is(q{})->at($text);
10771 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::textmessage($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = textmessage($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 53 41 94
10772 {
10773
10774 53 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [textmessage]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
10775 Parse::RecDescent::_tracefirst($text),
10776 q{part},
10777 $tracelevel)
10778 if defined $::RD_TRACE;
10779 53 $expectation->failed();
10780 53 last;
10781 }
10782 41 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [textmessage]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
10783 . $_tok . q{]},
10784  
10785 Parse::RecDescent::_tracefirst($text),
10786 q{part},
10787 $tracelevel)
10788 if defined $::RD_TRACE;
10789 41 $item{q{textmessage}} = $_tok;
10790 41 push @item, $_tok;
10791
10792 }
10793  
10794 41 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
10795 Parse::RecDescent::_tracefirst($text),
10796 q{part},
10797 $tracelevel)
10798 if defined $::RD_TRACE;
10799
10800  
10801 41 ▶ $_tok = ($_noactions) ? 0 : do { $return = bless $item{textmessage}, $mibs };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 41 41
10802 41 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 41 41
10803 {
10804 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10805 if defined $::RD_TRACE;
10806 0 last;
10807 }
10808 41 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
10809 . $_tok . q{])},
10810 Parse::RecDescent::_tracefirst($text))
10811 if defined $::RD_TRACE;
10812 41 push @item, $_tok;
10813 41 $item{__ACTION1__}=$_tok;
10814
10815  
10816 41 ▶ Parse::RecDescent::_trace(q{>>Matched production: [textmessage]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
10817 Parse::RecDescent::_tracefirst($text),
10818 q{part},
10819 $tracelevel)
10820 if defined $::RD_TRACE;
10821  
10822  
10823  
10824 41 $_matched = 1;
10825 41 last;
10826 }
10827  
10828 splice
10829 125 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 53 72 125
10830
10831 125 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 53 72 125
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
72053
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
10832 {
10833
10834 53 ▶ Parse::RecDescent::_trace(q{Trying production: [nestedmessage]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
10835 Parse::RecDescent::_tracefirst($_[1]),
10836 q{part},
10837 $tracelevel)
10838 if defined $::RD_TRACE;
10839 53 my $thisprod = $thisrule->{"prods"}[2];
10840 53 $text = $_[1];
10841 53 my $_savetext;
10842 53 @item = (q{part});
10843 53 %item = (__RULE__ => q{part});
10844 53 my $repcount = 0;
10845  
10846  
10847 53 ▶ Parse::RecDescent::_trace(q{Trying subrule: [nestedmessage]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
10848 Parse::RecDescent::_tracefirst($text),
10849 q{part},
10850 $tracelevel)
10851 if defined $::RD_TRACE;
10852 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
10853 53 $expectation->is(q{})->at($text);
10854 53 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::nestedmessage($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = nestedmessage($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 32 21 53
10855 {
10856
10857 32 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [nestedmessage]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
10858 Parse::RecDescent::_tracefirst($text),
10859 q{part},
10860 $tracelevel)
10861 if defined $::RD_TRACE;
10862 32 $expectation->failed();
10863 32 last;
10864 }
10865 21 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [nestedmessage]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10866 . $_tok . q{]},
10867  
10868 Parse::RecDescent::_tracefirst($text),
10869 q{part},
10870 $tracelevel)
10871 if defined $::RD_TRACE;
10872 21 $item{q{nestedmessage}} = $_tok;
10873 21 push @item, $_tok;
10874
10875 }
10876  
10877 21 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10878 Parse::RecDescent::_tracefirst($text),
10879 q{part},
10880 $tracelevel)
10881 if defined $::RD_TRACE;
10882
10883  
10884 21 ▶ $_tok = ($_noactions) ? 0 : do { $return = bless $item{nestedmessage}, $mibs };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 21 21
10885 21 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 21 21
10886 {
10887 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10888 if defined $::RD_TRACE;
10889 0 last;
10890 }
10891 21 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10892 . $_tok . q{])},
10893 Parse::RecDescent::_tracefirst($text))
10894 if defined $::RD_TRACE;
10895 21 push @item, $_tok;
10896 21 $item{__ACTION1__}=$_tok;
10897
10898  
10899 21 ▶ Parse::RecDescent::_trace(q{>>Matched production: [nestedmessage]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
10900 Parse::RecDescent::_tracefirst($text),
10901 q{part},
10902 $tracelevel)
10903 if defined $::RD_TRACE;
10904  
10905  
10906  
10907 21 $_matched = 1;
10908 21 last;
10909 }
10910  
10911 splice
10912 125 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 32 93 125
10913
10914 125 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 32 93 125
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
93032
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
10915 {
10916
10917 32 ▶ Parse::RecDescent::_trace(q{Trying production: [othertypemessage]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
10918 Parse::RecDescent::_tracefirst($_[1]),
10919 q{part},
10920 $tracelevel)
10921 if defined $::RD_TRACE;
10922 32 my $thisprod = $thisrule->{"prods"}[3];
10923 32 $text = $_[1];
10924 32 my $_savetext;
10925 32 @item = (q{part});
10926 32 %item = (__RULE__ => q{part});
10927 32 my $repcount = 0;
10928  
10929  
10930 32 ▶ Parse::RecDescent::_trace(q{Trying subrule: [othertypemessage]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
10931 Parse::RecDescent::_tracefirst($text),
10932 q{part},
10933 $tracelevel)
10934 if defined $::RD_TRACE;
10935 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
10936 32 $expectation->is(q{})->at($text);
10937 32 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::othertypemessage($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = othertypemessage($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 20 12 32
10938 {
10939
10940 20 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [othertypemessage]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
10941 Parse::RecDescent::_tracefirst($text),
10942 q{part},
10943 $tracelevel)
10944 if defined $::RD_TRACE;
10945 20 $expectation->failed();
10946 20 last;
10947 }
10948 12 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [othertypemessage]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10949 . $_tok . q{]},
10950  
10951 Parse::RecDescent::_tracefirst($text),
10952 q{part},
10953 $tracelevel)
10954 if defined $::RD_TRACE;
10955 12 $item{q{othertypemessage}} = $_tok;
10956 12 push @item, $_tok;
10957
10958 }
10959  
10960 12 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10961 Parse::RecDescent::_tracefirst($text),
10962 q{part},
10963 $tracelevel)
10964 if defined $::RD_TRACE;
10965
10966  
10967 12 ▶ $_tok = ($_noactions) ? 0 : do { $return = bless $item{othertypemessage}, $mibs };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 12 12
10968 12 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 12 12
10969 {
10970 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
10971 if defined $::RD_TRACE;
10972 0 last;
10973 }
10974 12 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10975 . $_tok . q{])},
10976 Parse::RecDescent::_tracefirst($text))
10977 if defined $::RD_TRACE;
10978 12 push @item, $_tok;
10979 12 $item{__ACTION1__}=$_tok;
10980
10981  
10982 12 ▶ Parse::RecDescent::_trace(q{>>Matched production: [othertypemessage]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
10983 Parse::RecDescent::_tracefirst($text),
10984 q{part},
10985 $tracelevel)
10986 if defined $::RD_TRACE;
10987  
10988  
10989  
10990 12 $_matched = 1;
10991 12 last;
10992 }
10993  
10994 splice
10995 125 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 20 105 125
10996
10997 125 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 20 105 125
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
105020
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
10998 {
10999 20 splice @{$thisparser->{deferred}}, $def_at;
11000
11001  
11002 20 $_[1] = $text; # NOT SURE THIS IS NEEDED
11003 20 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 20 20
11004 Parse::RecDescent::_tracefirst($_[1]),
11005 q{part},
11006 $tracelevel)
11007 if defined $::RD_TRACE;
11008 20 return undef;
11009 }
11010 105 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 105 105
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
10500
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
11011 {
11012 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11013 q{part},
11014 $tracelevel)
11015 if defined $::RD_TRACE;
11016 0 $return = $score_return;
11017 }
11018 105 splice @{$thisparser->{errors}}, $err_at;
11019 105 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 105 105
11020 105 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 105 105
11021 {
11022 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
11023 $return . q{])}, "",
11024 q{part},
11025 $tracelevel);
11026 0 Parse::RecDescent::_trace(q{(consumed: [} .
11027 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
11028 Parse::RecDescent::_tracefirst($text),
11029 , q{part},
11030 $tracelevel)
11031 }
11032 105 $_[1] = $text;
11033 105 return $return;
11034 }
11035  
11036 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
11037 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::personalname
11038 94 ▶{
Subroutine personalname: called CC=31 SCAR=39.3
11039 94 my $thisparser = $_[0];
11040 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
11041 94 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
940
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
11042 94 $ERRORS = 0;
11043 94 my $thisrule = $thisparser->{"rules"}{"personalname"};
11044  
11045 94 ▶ Parse::RecDescent::_trace(q{Trying rule: [personalname]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
11046 Parse::RecDescent::_tracefirst($_[1]),
11047 q{personalname},
11048 $tracelevel)
11049 if defined $::RD_TRACE;
11050  
11051 94 my $def_at = @{$thisparser->{deferred}};
11052 94 my $err_at = @{$thisparser->{errors}};
11053  
11054 94 my $score;
11055 my $score_return;
11056 94 my $_tok;
11057 94 my $return = undef;
11058 94 my $_matched=0;
11059 94 my $commit=0;
11060 94 my @item = ();
11061 94 my %item = ();
11062 94 my $repeating = $_[2];
11063 94 my $_noactions = $_[3];
11064 94 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 94 0 94
11065 94 my $_itempos = $_[5];
11066 94 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 94 0 94
11067 94 my $text;
11068 my $lastsep;
11069 94 my $current_match;
11070 94 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING});
11071 94 $expectation->at($_[1]);
11072
11073 94 my $thisline;
11074 94 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
11075  
11076
11077  
11078 94 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 94 0 94
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0094
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
11079 {
11080
11081 94 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
11082 Parse::RecDescent::_tracefirst($_[1]),
11083 q{personalname},
11084 $tracelevel)
11085 if defined $::RD_TRACE;
11086 94 my $thisprod = $thisrule->{"prods"}[0];
11087 94 $text = $_[1];
11088 94 my $_savetext;
11089 94 @item = (q{personalname});
11090 94 %item = (__RULE__ => q{personalname});
11091 94 my $repcount = 0;
11092  
11093  
11094 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
11095 Parse::RecDescent::_tracefirst($text),
11096 q{personalname},
11097 $tracelevel)
11098 if defined $::RD_TRACE;
11099 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
11100 94 $expectation->is(q{})->at($text);
11101 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 70 24 94
11102 {
11103
11104 70 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 70 70
11105 Parse::RecDescent::_tracefirst($text),
11106 q{personalname},
11107 $tracelevel)
11108 if defined $::RD_TRACE;
11109 70 $expectation->failed();
11110 70 last;
11111 }
11112 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11113 . $_tok . q{]},
11114  
11115 Parse::RecDescent::_tracefirst($text),
11116 q{personalname},
11117 $tracelevel)
11118 if defined $::RD_TRACE;
11119 24 $item{q{NIL}} = $_tok;
11120 24 push @item, $_tok;
11121
11122 }
11123  
11124 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11125 Parse::RecDescent::_tracefirst($text),
11126 q{personalname},
11127 $tracelevel)
11128 if defined $::RD_TRACE;
11129  
11130  
11131  
11132 24 $_matched = 1;
11133 24 last;
11134 }
11135  
11136 splice
11137 94 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 70 24 94
11138
11139 94 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 70 24 94
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
24070
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
11140 {
11141
11142 70 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 70 70
11143 Parse::RecDescent::_tracefirst($_[1]),
11144 q{personalname},
11145 $tracelevel)
11146 if defined $::RD_TRACE;
11147 70 my $thisprod = $thisrule->{"prods"}[1];
11148 70 $text = $_[1];
11149 70 my $_savetext;
11150 70 @item = (q{personalname});
11151 70 %item = (__RULE__ => q{personalname});
11152 70 my $repcount = 0;
11153  
11154  
11155 70 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 70 70
11156 Parse::RecDescent::_tracefirst($text),
11157 q{personalname},
11158 $tracelevel)
11159 if defined $::RD_TRACE;
11160 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
11161 70 $expectation->is(q{})->at($text);
11162 70 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 70 70
11163 {
11164
11165 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11166 Parse::RecDescent::_tracefirst($text),
11167 q{personalname},
11168 $tracelevel)
11169 if defined $::RD_TRACE;
11170 0 $expectation->failed();
11171 0 last;
11172 }
11173 70 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 70 70
11174 . $_tok . q{]},
11175  
11176 Parse::RecDescent::_tracefirst($text),
11177 q{personalname},
11178 $tracelevel)
11179 if defined $::RD_TRACE;
11180 70 $item{q{STRING}} = $_tok;
11181 70 push @item, $_tok;
11182
11183 }
11184  
11185 70 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 70 70
11186 Parse::RecDescent::_tracefirst($text),
11187 q{personalname},
11188 $tracelevel)
11189 if defined $::RD_TRACE;
11190  
11191  
11192  
11193 70 $_matched = 1;
11194 70 last;
11195 }
11196  
11197 splice
11198 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 94 94
11199
11200 94 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 94 94
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
9400
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
11201 {
11202 0 splice @{$thisparser->{deferred}}, $def_at;
11203
11204  
11205 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
11206 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11207 Parse::RecDescent::_tracefirst($_[1]),
11208 q{personalname},
11209 $tracelevel)
11210 if defined $::RD_TRACE;
11211 0 return undef;
11212 }
11213 94 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 94 94
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0940
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
11214 {
11215 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11216 q{personalname},
11217 $tracelevel)
11218 if defined $::RD_TRACE;
11219 0 $return = $score_return;
11220 }
11221 94 splice @{$thisparser->{errors}}, $err_at;
11222 94 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 94 0 94
11223 94 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 94 94
11224 {
11225 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
11226 $return . q{])}, "",
11227 q{personalname},
11228 $tracelevel);
11229 0 Parse::RecDescent::_trace(q{(consumed: [} .
11230 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
11231 Parse::RecDescent::_tracefirst($text),
11232 , q{personalname},
11233 $tracelevel)
11234 }
11235 94 $_[1] = $text;
11236 94 return $return;
11237 }
11238  
11239 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
11240 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::replyto
11241 24 ▶{
Subroutine replyto: called CC=22 SCAR=36.8
11242 24 my $thisparser = $_[0];
11243 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
11244 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
240
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
11245 24 $ERRORS = 0;
11246 24 my $thisrule = $thisparser->{"rules"}{"replyto"};
11247  
11248 24 ▶ Parse::RecDescent::_trace(q{Trying rule: [replyto]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11249 Parse::RecDescent::_tracefirst($_[1]),
11250 q{replyto},
11251 $tracelevel)
11252 if defined $::RD_TRACE;
11253  
11254 24 my $def_at = @{$thisparser->{deferred}};
11255 24 my $err_at = @{$thisparser->{errors}};
11256  
11257 24 my $score;
11258 my $score_return;
11259 24 my $_tok;
11260 24 my $return = undef;
11261 24 my $_matched=0;
11262 24 my $commit=0;
11263 24 my @item = ();
11264 24 my %item = ();
11265 24 my $repeating = $_[2];
11266 24 my $_noactions = $_[3];
11267 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
11268 24 my $_itempos = $_[5];
11269 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 24 0 24
11270 24 my $text;
11271 my $lastsep;
11272 24 my $current_match;
11273 24 my $expectation = new Parse::RecDescent::Expectation(q{ADDRESSES});
11274 24 $expectation->at($_[1]);
11275
11276 24 my $thisline;
11277 24 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
11278  
11279
11280  
11281 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
11282 {
11283
11284 24 ▶ Parse::RecDescent::_trace(q{Trying production: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11285 Parse::RecDescent::_tracefirst($_[1]),
11286 q{replyto},
11287 $tracelevel)
11288 if defined $::RD_TRACE;
11289 24 my $thisprod = $thisrule->{"prods"}[0];
11290 24 $text = $_[1];
11291 24 my $_savetext;
11292 24 @item = (q{replyto});
11293 24 %item = (__RULE__ => q{replyto});
11294 24 my $repcount = 0;
11295  
11296  
11297 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11298 Parse::RecDescent::_tracefirst($text),
11299 q{replyto},
11300 $tracelevel)
11301 if defined $::RD_TRACE;
11302 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
11303 24 $expectation->is(q{})->at($text);
11304 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::ADDRESSES($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = ADDRESSES($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
11305 {
11306
11307 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [ADDRESSES]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11308 Parse::RecDescent::_tracefirst($text),
11309 q{replyto},
11310 $tracelevel)
11311 if defined $::RD_TRACE;
11312 0 $expectation->failed();
11313 0 last;
11314 }
11315 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [ADDRESSES]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11316 . $_tok . q{]},
11317  
11318 Parse::RecDescent::_tracefirst($text),
11319 q{replyto},
11320 $tracelevel)
11321 if defined $::RD_TRACE;
11322 24 $item{q{ADDRESSES}} = $_tok;
11323 24 push @item, $_tok;
11324
11325 }
11326  
11327 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [ADDRESSES]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11328 Parse::RecDescent::_tracefirst($text),
11329 q{replyto},
11330 $tracelevel)
11331 if defined $::RD_TRACE;
11332  
11333  
11334  
11335 24 $_matched = 1;
11336 24 last;
11337 }
11338  
11339 splice
11340 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 24 24
11341
11342 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
11343 {
11344 0 splice @{$thisparser->{deferred}}, $def_at;
11345
11346  
11347 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
11348 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11349 Parse::RecDescent::_tracefirst($_[1]),
11350 q{replyto},
11351 $tracelevel)
11352 if defined $::RD_TRACE;
11353 0 return undef;
11354 }
11355 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0240
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
11356 {
11357 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11358 q{replyto},
11359 $tracelevel)
11360 if defined $::RD_TRACE;
11361 0 $return = $score_return;
11362 }
11363 24 splice @{$thisparser->{errors}}, $err_at;
11364 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
11365 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
11366 {
11367 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
11368 $return . q{])}, "",
11369 q{replyto},
11370 $tracelevel);
11371 0 Parse::RecDescent::_trace(q{(consumed: [} .
11372 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
11373 Parse::RecDescent::_tracefirst($text),
11374 , q{replyto},
11375 $tracelevel)
11376 }
11377 24 $_[1] = $text;
11378 24 return $return;
11379 }
11380  
11381 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
11382 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::rfc822message
11383 53 ▶{
Subroutine rfc822message: called CC=31 SCAR=37.3
11384 53 my $thisparser = $_[0];
11385 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
11386 53 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
530
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
11387 53 $ERRORS = 0;
11388 53 my $thisrule = $thisparser->{"rules"}{"rfc822message"};
11389  
11390 53 ▶ Parse::RecDescent::_trace(q{Trying rule: [rfc822message]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
11391 Parse::RecDescent::_tracefirst($_[1]),
11392 q{rfc822message},
11393 $tracelevel)
11394 if defined $::RD_TRACE;
11395  
11396 53 my $def_at = @{$thisparser->{deferred}};
11397 53 my $err_at = @{$thisparser->{errors}};
11398  
11399 53 my $score;
11400 my $score_return;
11401 53 my $_tok;
11402 53 my $return = undef;
11403 53 my $_matched=0;
11404 53 my $commit=0;
11405 53 my @item = ();
11406 53 my %item = ();
11407 53 my $repeating = $_[2];
11408 53 my $_noactions = $_[3];
11409 53 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 53 0 53
11410 53 my $_itempos = $_[5];
11411 53 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 53 0 53
11412 53 my $text;
11413 my $lastsep;
11414 53 my $current_match;
11415 53 my $expectation = new Parse::RecDescent::Expectation(q{MESSAGE});
11416 53 $expectation->at($_[1]);
11417
11418 53 my $thisline;
11419 53 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
11420  
11421
11422  
11423 53 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 53 0 53
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0053
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
11424 {
11425
11426 53 ▶ Parse::RecDescent::_trace(q{Trying production: [MESSAGE RFC822]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
11427 Parse::RecDescent::_tracefirst($_[1]),
11428 q{rfc822message},
11429 $tracelevel)
11430 if defined $::RD_TRACE;
11431 53 my $thisprod = $thisrule->{"prods"}[0];
11432 53 $text = $_[1];
11433 53 my $_savetext;
11434 53 @item = (q{rfc822message});
11435 53 %item = (__RULE__ => q{rfc822message});
11436 53 my $repcount = 0;
11437  
11438  
11439 53 ▶ Parse::RecDescent::_trace(q{Trying subrule: [MESSAGE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
11440 Parse::RecDescent::_tracefirst($text),
11441 q{rfc822message},
11442 $tracelevel)
11443 if defined $::RD_TRACE;
11444 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
11445 53 $expectation->is(q{})->at($text);
11446 53 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::MESSAGE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = MESSAGE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 31 22 53
11447 {
11448
11449 31 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [MESSAGE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 31 31
11450 Parse::RecDescent::_tracefirst($text),
11451 q{rfc822message},
11452 $tracelevel)
11453 if defined $::RD_TRACE;
11454 31 $expectation->failed();
11455 31 last;
11456 }
11457 22 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [MESSAGE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
11458 . $_tok . q{]},
11459  
11460 Parse::RecDescent::_tracefirst($text),
11461 q{rfc822message},
11462 $tracelevel)
11463 if defined $::RD_TRACE;
11464 22 $item{q{MESSAGE}} = $_tok;
11465 22 push @item, $_tok;
11466
11467 }
11468  
11469 22 ▶ Parse::RecDescent::_trace(q{Trying subrule: [RFC822]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
11470 Parse::RecDescent::_tracefirst($text),
11471 q{rfc822message},
11472 $tracelevel)
11473 if defined $::RD_TRACE;
11474 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
11475 22 $expectation->is(q{RFC822})->at($text);
11476 22 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::RFC822($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = RFC822($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 1 21 22
11477 {
11478
11479 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [RFC822]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
11480 Parse::RecDescent::_tracefirst($text),
11481 q{rfc822message},
11482 $tracelevel)
11483 if defined $::RD_TRACE;
11484 1 $expectation->failed();
11485 1 last;
11486 }
11487 21 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [RFC822]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
11488 . $_tok . q{]},
11489  
11490 Parse::RecDescent::_tracefirst($text),
11491 q{rfc822message},
11492 $tracelevel)
11493 if defined $::RD_TRACE;
11494 21 $item{q{RFC822}} = $_tok;
11495 21 push @item, $_tok;
11496
11497 }
11498  
11499 21 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
11500 Parse::RecDescent::_tracefirst($text),
11501 q{rfc822message},
11502 $tracelevel)
11503 if defined $::RD_TRACE;
11504
11505  
11506 21 ▶ $_tok = ($_noactions) ? 0 : do { $return = "MESSAGE RFC822" };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 21 21
11507 21 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 21 21
11508 {
11509 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11510 if defined $::RD_TRACE;
11511 0 last;
11512 }
11513 21 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
11514 . $_tok . q{])},
11515 Parse::RecDescent::_tracefirst($text))
11516 if defined $::RD_TRACE;
11517 21 push @item, $_tok;
11518 21 $item{__ACTION1__}=$_tok;
11519
11520  
11521 21 ▶ Parse::RecDescent::_trace(q{>>Matched production: [MESSAGE RFC822]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
11522 Parse::RecDescent::_tracefirst($text),
11523 q{rfc822message},
11524 $tracelevel)
11525 if defined $::RD_TRACE;
11526  
11527  
11528  
11529 21 $_matched = 1;
11530 21 last;
11531 }
11532  
11533 splice
11534 53 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 32 21 53
11535
11536 53 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 32 21 53
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
21032
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
11537 {
11538 32 splice @{$thisparser->{deferred}}, $def_at;
11539
11540  
11541 32 $_[1] = $text; # NOT SURE THIS IS NEEDED
11542 32 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
11543 Parse::RecDescent::_tracefirst($_[1]),
11544 q{rfc822message},
11545 $tracelevel)
11546 if defined $::RD_TRACE;
11547 32 return undef;
11548 }
11549 21 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 21 21
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
2100
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
11550 {
11551 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11552 q{rfc822message},
11553 $tracelevel)
11554 if defined $::RD_TRACE;
11555 0 $return = $score_return;
11556 }
11557 21 splice @{$thisparser->{errors}}, $err_at;
11558 21 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 21 21
11559 21 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 21 21
11560 {
11561 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
11562 $return . q{])}, "",
11563 q{rfc822message},
11564 $tracelevel);
11565 0 Parse::RecDescent::_trace(q{(consumed: [} .
11566 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
11567 Parse::RecDescent::_tracefirst($text),
11568 , q{rfc822message},
11569 $tracelevel)
11570 }
11571 21 $_[1] = $text;
11572 21 return $return;
11573 }
11574  
11575 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
11576 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::sender
11577 24 ▶{
Subroutine sender: called CC=22 SCAR=36.8
11578 24 my $thisparser = $_[0];
11579 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
11580 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
240
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
11581 24 $ERRORS = 0;
11582 24 my $thisrule = $thisparser->{"rules"}{"sender"};
11583  
11584 24 ▶ Parse::RecDescent::_trace(q{Trying rule: [sender]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11585 Parse::RecDescent::_tracefirst($_[1]),
11586 q{sender},
11587 $tracelevel)
11588 if defined $::RD_TRACE;
11589  
11590 24 my $def_at = @{$thisparser->{deferred}};
11591 24 my $err_at = @{$thisparser->{errors}};
11592  
11593 24 my $score;
11594 my $score_return;
11595 24 my $_tok;
11596 24 my $return = undef;
11597 24 my $_matched=0;
11598 24 my $commit=0;
11599 24 my @item = ();
11600 24 my %item = ();
11601 24 my $repeating = $_[2];
11602 24 my $_noactions = $_[3];
11603 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
11604 24 my $_itempos = $_[5];
11605 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 24 0 24
11606 24 my $text;
11607 my $lastsep;
11608 24 my $current_match;
11609 24 my $expectation = new Parse::RecDescent::Expectation(q{ADDRESSES});
11610 24 $expectation->at($_[1]);
11611
11612 24 my $thisline;
11613 24 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
11614  
11615
11616  
11617 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
11618 {
11619
11620 24 ▶ Parse::RecDescent::_trace(q{Trying production: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11621 Parse::RecDescent::_tracefirst($_[1]),
11622 q{sender},
11623 $tracelevel)
11624 if defined $::RD_TRACE;
11625 24 my $thisprod = $thisrule->{"prods"}[0];
11626 24 $text = $_[1];
11627 24 my $_savetext;
11628 24 @item = (q{sender});
11629 24 %item = (__RULE__ => q{sender});
11630 24 my $repcount = 0;
11631  
11632  
11633 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11634 Parse::RecDescent::_tracefirst($text),
11635 q{sender},
11636 $tracelevel)
11637 if defined $::RD_TRACE;
11638 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
11639 24 $expectation->is(q{})->at($text);
11640 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::ADDRESSES($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = ADDRESSES($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
11641 {
11642
11643 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [ADDRESSES]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11644 Parse::RecDescent::_tracefirst($text),
11645 q{sender},
11646 $tracelevel)
11647 if defined $::RD_TRACE;
11648 0 $expectation->failed();
11649 0 last;
11650 }
11651 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [ADDRESSES]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11652 . $_tok . q{]},
11653  
11654 Parse::RecDescent::_tracefirst($text),
11655 q{sender},
11656 $tracelevel)
11657 if defined $::RD_TRACE;
11658 24 $item{q{ADDRESSES}} = $_tok;
11659 24 push @item, $_tok;
11660
11661 }
11662  
11663 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [ADDRESSES]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
11664 Parse::RecDescent::_tracefirst($text),
11665 q{sender},
11666 $tracelevel)
11667 if defined $::RD_TRACE;
11668  
11669  
11670  
11671 24 $_matched = 1;
11672 24 last;
11673 }
11674  
11675 splice
11676 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 24 24
11677
11678 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
11679 {
11680 0 splice @{$thisparser->{deferred}}, $def_at;
11681
11682  
11683 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
11684 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11685 Parse::RecDescent::_tracefirst($_[1]),
11686 q{sender},
11687 $tracelevel)
11688 if defined $::RD_TRACE;
11689 0 return undef;
11690 }
11691 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0240
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
11692 {
11693 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11694 q{sender},
11695 $tracelevel)
11696 if defined $::RD_TRACE;
11697 0 $return = $score_return;
11698 }
11699 24 splice @{$thisparser->{errors}}, $err_at;
11700 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
11701 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
11702 {
11703 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
11704 $return . q{])}, "",
11705 q{sender},
11706 $tracelevel);
11707 0 Parse::RecDescent::_trace(q{(consumed: [} .
11708 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
11709 Parse::RecDescent::_tracefirst($text),
11710 , q{sender},
11711 $tracelevel)
11712 }
11713 24 $_[1] = $text;
11714 24 return $return;
11715 }
11716  
11717 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
11718 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::sourceroute
11719 94 ▶{
Subroutine sourceroute: called CC=31 SCAR=48.6
11720 94 my $thisparser = $_[0];
11721 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
11722 94 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
940
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
11723 94 $ERRORS = 0;
11724 94 my $thisrule = $thisparser->{"rules"}{"sourceroute"};
11725  
11726 94 ▶ Parse::RecDescent::_trace(q{Trying rule: [sourceroute]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
11727 Parse::RecDescent::_tracefirst($_[1]),
11728 q{sourceroute},
11729 $tracelevel)
11730 if defined $::RD_TRACE;
11731  
11732 94 my $def_at = @{$thisparser->{deferred}};
11733 94 my $err_at = @{$thisparser->{errors}};
11734  
11735 94 my $score;
11736 my $score_return;
11737 94 my $_tok;
11738 94 my $return = undef;
11739 94 my $_matched=0;
11740 94 my $commit=0;
11741 94 my @item = ();
11742 94 my %item = ();
11743 94 my $repeating = $_[2];
11744 94 my $_noactions = $_[3];
11745 94 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 94 0 94
11746 94 my $_itempos = $_[5];
11747 94 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 94 0 94
11748 94 my $text;
11749 my $lastsep;
11750 94 my $current_match;
11751 94 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING});
11752 94 $expectation->at($_[1]);
11753
11754 94 my $thisline;
11755 94 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
11756  
11757
11758  
11759 94 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 94 0 94
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0094
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
11760 {
11761
11762 94 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
11763 Parse::RecDescent::_tracefirst($_[1]),
11764 q{sourceroute},
11765 $tracelevel)
11766 if defined $::RD_TRACE;
11767 94 my $thisprod = $thisrule->{"prods"}[0];
11768 94 $text = $_[1];
11769 94 my $_savetext;
11770 94 @item = (q{sourceroute});
11771 94 %item = (__RULE__ => q{sourceroute});
11772 94 my $repcount = 0;
11773  
11774  
11775 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
11776 Parse::RecDescent::_tracefirst($text),
11777 q{sourceroute},
11778 $tracelevel)
11779 if defined $::RD_TRACE;
11780 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
11781 94 $expectation->is(q{})->at($text);
11782 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 94 94
11783 {
11784
11785 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11786 Parse::RecDescent::_tracefirst($text),
11787 q{sourceroute},
11788 $tracelevel)
11789 if defined $::RD_TRACE;
11790 0 $expectation->failed();
11791 0 last;
11792 }
11793 94 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
11794 . $_tok . q{]},
11795  
11796 Parse::RecDescent::_tracefirst($text),
11797 q{sourceroute},
11798 $tracelevel)
11799 if defined $::RD_TRACE;
11800 94 $item{q{NIL}} = $_tok;
11801 94 push @item, $_tok;
11802
11803 }
11804  
11805 94 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
11806 Parse::RecDescent::_tracefirst($text),
11807 q{sourceroute},
11808 $tracelevel)
11809 if defined $::RD_TRACE;
11810  
11811  
11812  
11813 94 $_matched = 1;
11814 94 last;
11815 }
11816  
11817 splice
11818 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 94 94
11819
11820 94 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 0 94 94
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
9400
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
11821 {
11822
11823 0 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11824 Parse::RecDescent::_tracefirst($_[1]),
11825 q{sourceroute},
11826 $tracelevel)
11827 if defined $::RD_TRACE;
11828 0 my $thisprod = $thisrule->{"prods"}[1];
11829 0 $text = $_[1];
11830 0 my $_savetext;
11831 0 @item = (q{sourceroute});
11832 0 %item = (__RULE__ => q{sourceroute});
11833 0 my $repcount = 0;
11834  
11835  
11836 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11837 Parse::RecDescent::_tracefirst($text),
11838 q{sourceroute},
11839 $tracelevel)
11840 if defined $::RD_TRACE;
11841 0 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
11842 0 $expectation->is(q{})->at($text);
11843 0 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 0 0
11844 {
11845
11846 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11847 Parse::RecDescent::_tracefirst($text),
11848 q{sourceroute},
11849 $tracelevel)
11850 if defined $::RD_TRACE;
11851 0 $expectation->failed();
11852 0 last;
11853 }
11854 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11855 . $_tok . q{]},
11856  
11857 Parse::RecDescent::_tracefirst($text),
11858 q{sourceroute},
11859 $tracelevel)
11860 if defined $::RD_TRACE;
11861 0 $item{q{STRING}} = $_tok;
11862 0 push @item, $_tok;
11863
11864 }
11865  
11866 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11867 Parse::RecDescent::_tracefirst($text),
11868 q{sourceroute},
11869 $tracelevel)
11870 if defined $::RD_TRACE;
11871  
11872  
11873  
11874 0 $_matched = 1;
11875 0 last;
11876 }
11877  
11878 splice
11879 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 94 94
11880
11881 94 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 94 94
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
9400
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
11882 {
11883 0 splice @{$thisparser->{deferred}}, $def_at;
11884
11885  
11886 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
11887 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11888 Parse::RecDescent::_tracefirst($_[1]),
11889 q{sourceroute},
11890 $tracelevel)
11891 if defined $::RD_TRACE;
11892 0 return undef;
11893 }
11894 94 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 94 94
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0940
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
11895 {
11896 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11897 q{sourceroute},
11898 $tracelevel)
11899 if defined $::RD_TRACE;
11900 0 $return = $score_return;
11901 }
11902 94 splice @{$thisparser->{errors}}, $err_at;
11903 94 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 94 0 94
11904 94 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 94 94
11905 {
11906 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
11907 $return . q{])}, "",
11908 q{sourceroute},
11909 $tracelevel);
11910 0 Parse::RecDescent::_trace(q{(consumed: [} .
11911 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
11912 Parse::RecDescent::_tracefirst($text),
11913 , q{sourceroute},
11914 $tracelevel)
11915 }
11916 94 $_[1] = $text;
11917 94 return $return;
11918 }
11919  
11920 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
11921 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::start
11922 10 ▶{
Subroutine start: called CC=41 SCAR=49.6
11923 10 my $thisparser = $_[0];
11924 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
11925 10 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
010
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
11926 10 $ERRORS = 0;
11927 10 my $thisrule = $thisparser->{"rules"}{"start"};
11928  
11929 10 ▶ Parse::RecDescent::_trace(q{Trying rule: [start]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
11930 Parse::RecDescent::_tracefirst($_[1]),
11931 q{start},
11932 $tracelevel)
11933 if defined $::RD_TRACE;
11934  
11935 10 my $def_at = @{$thisparser->{deferred}};
11936 10 my $err_at = @{$thisparser->{errors}};
11937  
11938 10 my $score;
11939 my $score_return;
11940 10 my $_tok;
11941 10 my $return = undef;
11942 10 my $_matched=0;
11943 10 my $commit=0;
11944 10 my @item = ();
11945 10 my %item = ();
11946 10 my $repeating = $_[2];
11947 10 my $_noactions = $_[3];
11948 10 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 10 0 10
11949 10 my $_itempos = $_[5];
11950 10 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 10 0 10
11951 10 my $text;
11952 my $lastsep;
11953 10 my $current_match;
11954 10 my $expectation = new Parse::RecDescent::Expectation(q{/.*?\\(.*?BODYSTRUCTURE \\(/i});
11955 10 $expectation->at($_[1]);
11956
11957 10 my $thisline;
11958 10 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
11959  
11960
11961  
11962 10 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 10 0 10
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0010
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
11963 {
11964
11965 10 ▶ Parse::RecDescent::_trace(q{Trying production: [/.*?\\(.*?BODYSTRUCTURE \\(/i part /\\).*\\)\\r?\\n?/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
11966 Parse::RecDescent::_tracefirst($_[1]),
11967 q{start},
11968 $tracelevel)
11969 if defined $::RD_TRACE;
11970 10 my $thisprod = $thisrule->{"prods"}[0];
11971 10 $text = $_[1];
11972 10 my $_savetext;
11973 10 @item = (q{start});
11974 10 %item = (__RULE__ => q{start});
11975 10 my $repcount = 0;
11976  
11977  
11978 10 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/.*?\\(.*?BODYSTRUCTURE \\(/i]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
11979 q{start},
11980 $tracelevel)
11981 if defined $::RD_TRACE;
11982 10 undef $lastsep;
11983 10 $expectation->is(q{})->at($text);
11984
11985  
11986 10 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:.*?\(.*?BODYSTRUCTURE \()/i)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?\(.*?BODYSTRUCTURE \()/i) 0 10 10
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?\(.*?BODYSTRUCTURE \()/i
!ll&&!rl&&r
0010
($lastsep = $1) && ''
!ll
100
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:.*?\(.*?BODYSTRUCTURE \()/i
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:.*?\(.*?BODYSTRUCTURE \()/i
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:.*?\(.*?BODYSTRUCTURE \()/i
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
11987 {
11988 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
11989 0 $expectation->failed();
11990 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
11991 Parse::RecDescent::_tracefirst($text))
11992 if defined $::RD_TRACE;
11993  
11994 0 last;
11995 }
11996 10 $current_match = substr($text, $-[0], $+[0] - $-[0]);
11997 10 substr($text,0,length($current_match),q{});
11998 10 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
11999 . $current_match . q{])},
12000 Parse::RecDescent::_tracefirst($text))
12001 if defined $::RD_TRACE;
12002 10 push @item, $item{__PATTERN1__}=$current_match;
12003
12004  
12005 10 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [part]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
12006 Parse::RecDescent::_tracefirst($text),
12007 q{start},
12008 $tracelevel)
12009 if defined $::RD_TRACE;
12010 10 $expectation->is(q{part})->at($text);
12011
12012 10 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::part, 1, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::part, 1, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 10 10
12013 {
12014 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [part]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12015 Parse::RecDescent::_tracefirst($text),
12016 q{start},
12017 $tracelevel)
12018 if defined $::RD_TRACE;
12019 0 last;
12020 }
12021 10 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [part]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
12022 . @$_tok . q{ times)},
12023  
12024 Parse::RecDescent::_tracefirst($text),
12025 q{start},
12026 $tracelevel)
12027 if defined $::RD_TRACE;
12028 10 $item{q{part(1)}} = $_tok;
12029 10 push @item, $_tok;
12030
12031  
12032  
12033 10 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\).*\\)\\r?\\n?/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
12034 q{start},
12035 $tracelevel)
12036 if defined $::RD_TRACE;
12037 10 undef $lastsep;
12038 10 $expectation->is(q{/\\).*\\)\\r?\\n?/})->at($text);
12039
12040  
12041 10 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\).*\)\r?\n?)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\).*\)\r?\n?)/) 0 10 10
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\).*\)\r?\n?)/
!ll&&!rl&&r
0010
($lastsep = $1) && ''
!ll
100
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\).*\)\r?\n?)/
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\).*\)\r?\n?)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\).*\)\r?\n?)/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
12042 {
12043 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
12044 0 $expectation->failed();
12045 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12046 Parse::RecDescent::_tracefirst($text))
12047 if defined $::RD_TRACE;
12048  
12049 0 last;
12050 }
12051 10 $current_match = substr($text, $-[0], $+[0] - $-[0]);
12052 10 substr($text,0,length($current_match),q{});
12053 10 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
12054 . $current_match . q{])},
12055 Parse::RecDescent::_tracefirst($text))
12056 if defined $::RD_TRACE;
12057 10 push @item, $item{__PATTERN2__}=$current_match;
12058
12059  
12060 10 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
12061 Parse::RecDescent::_tracefirst($text),
12062 q{start},
12063 $tracelevel)
12064 if defined $::RD_TRACE;
12065
12066  
12067 10 ▶ $_tok = ($_noactions) ? 0 : do { $return = $item{'part(1)'}[0] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 10 10
12068 10 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 10 10
12069 {
12070 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12071 if defined $::RD_TRACE;
12072 0 last;
12073 }
12074 10 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
12075 . $_tok . q{])},
12076 Parse::RecDescent::_tracefirst($text))
12077 if defined $::RD_TRACE;
12078 10 push @item, $_tok;
12079 10 $item{__ACTION1__}=$_tok;
12080
12081  
12082 10 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/.*?\\(.*?BODYSTRUCTURE \\(/i part /\\).*\\)\\r?\\n?/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
12083 Parse::RecDescent::_tracefirst($text),
12084 q{start},
12085 $tracelevel)
12086 if defined $::RD_TRACE;
12087  
12088  
12089  
12090 10 $_matched = 1;
12091 10 last;
12092 }
12093  
12094 splice
12095 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 10 10
12096
12097 10 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 10 10
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
1000
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
12098 {
12099 0 splice @{$thisparser->{deferred}}, $def_at;
12100
12101  
12102 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
12103 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12104 Parse::RecDescent::_tracefirst($_[1]),
12105 q{start},
12106 $tracelevel)
12107 if defined $::RD_TRACE;
12108 0 return undef;
12109 }
12110 10 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 10 10
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
1000
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
12111 {
12112 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12113 q{start},
12114 $tracelevel)
12115 if defined $::RD_TRACE;
12116 0 $return = $score_return;
12117 }
12118 10 splice @{$thisparser->{errors}}, $err_at;
12119 10 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 10 10
12120 10 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 10 10
12121 {
12122 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
12123 $return . q{])}, "",
12124 q{start},
12125 $tracelevel);
12126 0 Parse::RecDescent::_trace(q{(consumed: [} .
12127 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
12128 Parse::RecDescent::_tracefirst($text),
12129 , q{start},
12130 $tracelevel)
12131 }
12132 10 $_[1] = $text;
12133 10 return $return;
12134 }
12135  
12136 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
12137 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::subject
12138 24 ▶{
Subroutine subject: called CC=31 SCAR=42.7
12139 24 my $thisparser = $_[0];
12140 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
12141 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
240
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
12142 24 $ERRORS = 0;
12143 24 my $thisrule = $thisparser->{"rules"}{"subject"};
12144  
12145 24 ▶ Parse::RecDescent::_trace(q{Trying rule: [subject]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
12146 Parse::RecDescent::_tracefirst($_[1]),
12147 q{subject},
12148 $tracelevel)
12149 if defined $::RD_TRACE;
12150  
12151 24 my $def_at = @{$thisparser->{deferred}};
12152 24 my $err_at = @{$thisparser->{errors}};
12153  
12154 24 my $score;
12155 my $score_return;
12156 24 my $_tok;
12157 24 my $return = undef;
12158 24 my $_matched=0;
12159 24 my $commit=0;
12160 24 my @item = ();
12161 24 my %item = ();
12162 24 my $repeating = $_[2];
12163 24 my $_noactions = $_[3];
12164 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
12165 24 my $_itempos = $_[5];
12166 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 24 0 24
12167 24 my $text;
12168 my $lastsep;
12169 24 my $current_match;
12170 24 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or STRING});
12171 24 $expectation->at($_[1]);
12172
12173 24 my $thisline;
12174 24 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
12175  
12176
12177  
12178 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
12179 {
12180
12181 24 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
12182 Parse::RecDescent::_tracefirst($_[1]),
12183 q{subject},
12184 $tracelevel)
12185 if defined $::RD_TRACE;
12186 24 my $thisprod = $thisrule->{"prods"}[0];
12187 24 $text = $_[1];
12188 24 my $_savetext;
12189 24 @item = (q{subject});
12190 24 %item = (__RULE__ => q{subject});
12191 24 my $repcount = 0;
12192  
12193  
12194 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
12195 Parse::RecDescent::_tracefirst($text),
12196 q{subject},
12197 $tracelevel)
12198 if defined $::RD_TRACE;
12199 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
12200 24 $expectation->is(q{})->at($text);
12201 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 24 0 24
12202 {
12203
12204 24 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
12205 Parse::RecDescent::_tracefirst($text),
12206 q{subject},
12207 $tracelevel)
12208 if defined $::RD_TRACE;
12209 24 $expectation->failed();
12210 24 last;
12211 }
12212 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12213 . $_tok . q{]},
12214  
12215 Parse::RecDescent::_tracefirst($text),
12216 q{subject},
12217 $tracelevel)
12218 if defined $::RD_TRACE;
12219 0 $item{q{NIL}} = $_tok;
12220 0 push @item, $_tok;
12221
12222 }
12223  
12224 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12225 Parse::RecDescent::_tracefirst($text),
12226 q{subject},
12227 $tracelevel)
12228 if defined $::RD_TRACE;
12229  
12230  
12231  
12232 0 $_matched = 1;
12233 0 last;
12234 }
12235  
12236 splice
12237 24 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 24 0 24
12238
12239 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
12240 {
12241
12242 24 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
12243 Parse::RecDescent::_tracefirst($_[1]),
12244 q{subject},
12245 $tracelevel)
12246 if defined $::RD_TRACE;
12247 24 my $thisprod = $thisrule->{"prods"}[1];
12248 24 $text = $_[1];
12249 24 my $_savetext;
12250 24 @item = (q{subject});
12251 24 %item = (__RULE__ => q{subject});
12252 24 my $repcount = 0;
12253  
12254  
12255 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
12256 Parse::RecDescent::_tracefirst($text),
12257 q{subject},
12258 $tracelevel)
12259 if defined $::RD_TRACE;
12260 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
12261 24 $expectation->is(q{})->at($text);
12262 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
12263 {
12264
12265 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12266 Parse::RecDescent::_tracefirst($text),
12267 q{subject},
12268 $tracelevel)
12269 if defined $::RD_TRACE;
12270 0 $expectation->failed();
12271 0 last;
12272 }
12273 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
12274 . $_tok . q{]},
12275  
12276 Parse::RecDescent::_tracefirst($text),
12277 q{subject},
12278 $tracelevel)
12279 if defined $::RD_TRACE;
12280 24 $item{q{STRING}} = $_tok;
12281 24 push @item, $_tok;
12282
12283 }
12284  
12285 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
12286 Parse::RecDescent::_tracefirst($text),
12287 q{subject},
12288 $tracelevel)
12289 if defined $::RD_TRACE;
12290  
12291  
12292  
12293 24 $_matched = 1;
12294 24 last;
12295 }
12296  
12297 splice
12298 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 24 24
12299
12300 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
12301 {
12302 0 splice @{$thisparser->{deferred}}, $def_at;
12303
12304  
12305 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
12306 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12307 Parse::RecDescent::_tracefirst($_[1]),
12308 q{subject},
12309 $tracelevel)
12310 if defined $::RD_TRACE;
12311 0 return undef;
12312 }
12313 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0240
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
12314 {
12315 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12316 q{subject},
12317 $tracelevel)
12318 if defined $::RD_TRACE;
12319 0 $return = $score_return;
12320 }
12321 24 splice @{$thisparser->{errors}}, $err_at;
12322 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
12323 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
12324 {
12325 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
12326 $return . q{])}, "",
12327 q{subject},
12328 $tracelevel);
12329 0 Parse::RecDescent::_trace(q{(consumed: [} .
12330 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
12331 Parse::RecDescent::_tracefirst($text),
12332 , q{subject},
12333 $tracelevel)
12334 }
12335 24 $_[1] = $text;
12336 24 return $return;
12337 }
12338  
12339 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
12340 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::subpart
12341 200 ▶{
Subroutine subpart: called CC=50 SCAR=48.0
12342 200 my $thisparser = $_[0];
12343 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
12344 200 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
2000
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
12345 200 $ERRORS = 0;
12346 200 my $thisrule = $thisparser->{"rules"}{"subpart"};
12347  
12348 200 ▶ Parse::RecDescent::_trace(q{Trying rule: [subpart]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 200 200
12349 Parse::RecDescent::_tracefirst($_[1]),
12350 q{subpart},
12351 $tracelevel)
12352 if defined $::RD_TRACE;
12353  
12354 200 my $def_at = @{$thisparser->{deferred}};
12355 200 my $err_at = @{$thisparser->{errors}};
12356  
12357 200 my $score;
12358 my $score_return;
12359 200 my $_tok;
12360 200 my $return = undef;
12361 200 my $_matched=0;
12362 200 my $commit=0;
12363 200 my @item = ();
12364 200 my %item = ();
12365 200 my $repeating = $_[2];
12366 200 my $_noactions = $_[3];
12367 200 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 200 0 200
12368 200 my $_itempos = $_[5];
12369 200 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 200 0 200
12370 200 my $text;
12371 my $lastsep;
12372 200 my $current_match;
12373 200 my $expectation = new Parse::RecDescent::Expectation(q{'('});
12374 200 $expectation->at($_[1]);
12375
12376 200 my $thisline;
12377 200 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
12378  
12379
12380  
12381 200 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 200 0 200
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00200
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
12382 {
12383
12384 200 ▶ Parse::RecDescent::_trace(q{Trying production: ['(' part ')' <defer:{ ++$subpartCount; }>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 200 200
12385 Parse::RecDescent::_tracefirst($_[1]),
12386 q{subpart},
12387 $tracelevel)
12388 if defined $::RD_TRACE;
12389 200 my $thisprod = $thisrule->{"prods"}[0];
12390 200 $text = $_[1];
12391 200 my $_savetext;
12392 200 @item = (q{subpart});
12393 200 %item = (__RULE__ => q{subpart});
12394 200 my $repcount = 0;
12395  
12396  
12397 200 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['(']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 200 200
12398 Parse::RecDescent::_tracefirst($text),
12399 q{subpart},
12400 $tracelevel)
12401 if defined $::RD_TRACE;
12402 200 undef $lastsep;
12403 200 $expectation->is(q{})->at($text);
12404
12405  
12406 200 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "("; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 125 75 200
Condition63%7/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
125075
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
012575
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 }
!ll&&!rl&&r
00200
($lastsep = $1) && ''
!ll
16832
MC/DC25%1/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = "("; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table40%2/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = "("; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
12407 substr($text,0,length($_tok)) eq $_tok and
12408 75 do { substr($text,0,length($_tok)) = ""; 1; }
12409 )
12410 {
12411 125 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 125 0 125
12412
12413 125 $expectation->failed();
12414 125 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
12415 Parse::RecDescent::_tracefirst($text))
12416 if defined $::RD_TRACE;
12417 125 last;
12418 }
12419 75 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 75 75
12420 . $_tok . q{])},
12421 Parse::RecDescent::_tracefirst($text))
12422 if defined $::RD_TRACE;
12423 75 push @item, $item{__STRING1__}=$_tok;
12424
12425  
12426 75 ▶ Parse::RecDescent::_trace(q{Trying subrule: [part]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 75 75
12427 Parse::RecDescent::_tracefirst($text),
12428 q{subpart},
12429 $tracelevel)
12430 if defined $::RD_TRACE;
12431 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
12432 75 $expectation->is(q{part})->at($text);
12433 75 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::part($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = part($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 75 75
12434 {
12435
12436 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [part]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12437 Parse::RecDescent::_tracefirst($text),
12438 q{subpart},
12439 $tracelevel)
12440 if defined $::RD_TRACE;
12441 0 $expectation->failed();
12442 0 last;
12443 }
12444 75 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [part]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 75 75
12445 . $_tok . q{]},
12446  
12447 Parse::RecDescent::_tracefirst($text),
12448 q{subpart},
12449 $tracelevel)
12450 if defined $::RD_TRACE;
12451 75 $item{q{part}} = $_tok;
12452 75 push @item, $_tok;
12453
12454 }
12455  
12456 75 ▶ Parse::RecDescent::_trace(q{Trying terminal: [')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 75 75
12457 Parse::RecDescent::_tracefirst($text),
12458 q{subpart},
12459 $tracelevel)
12460 if defined $::RD_TRACE;
12461 75 undef $lastsep;
12462 75 $expectation->is(q{')'})->at($text);
12463
12464  
12465 75 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = ")"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 75 75
Condition36%4/11
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
0075
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0075
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 }
!ll&&!rl&&r
0075
($lastsep = $1) && ''
!ll
750
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e and do { $_tok = ")"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/e do { $_tok = ")"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table20%1/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::skip)/$lastsep = $1 and "";/eB= do { $_tok = ")"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
12466 substr($text,0,length($_tok)) eq $_tok and
12467 75 do { substr($text,0,length($_tok)) = ""; 1; }
12468 )
12469 {
12470 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
12471
12472 0 $expectation->failed();
12473 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12474 Parse::RecDescent::_tracefirst($text))
12475 if defined $::RD_TRACE;
12476 0 last;
12477 }
12478 75 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 75 75
12479 . $_tok . q{])},
12480 Parse::RecDescent::_tracefirst($text))
12481 if defined $::RD_TRACE;
12482 75 push @item, $item{__STRING2__}=$_tok;
12483
12484  
12485 75 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 75 75
12486 Parse::RecDescent::_tracefirst($text),
12487 q{subpart},
12488 $tracelevel)
12489 if defined $::RD_TRACE;
12490
12491  
12492 75 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{part}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 75 75
12493 75 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 75 75
12494 {
12495 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12496 if defined $::RD_TRACE;
12497 0 last;
12498 }
12499 75 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 75 75
12500 . $_tok . q{])},
12501 Parse::RecDescent::_tracefirst($text))
12502 if defined $::RD_TRACE;
12503 75 push @item, $_tok;
12504 75 $item{__ACTION1__}=$_tok;
12505
12506  
12507
12508  
12509 75 ▶ Parse::RecDescent::_trace(q{Trying directive: [<defer:{ ++$subpartCount; }>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 75 75
12510 Parse::RecDescent::_tracefirst($text),
12511 q{subpart},
12512 $tracelevel)
12513 if defined $::RD_TRACE;
12514 75 ▶ $_tok = do { push @{$thisparser->{deferred}}, sub { ++$subpartCount; }; };
Subroutine __ANON__: called CC=1 SCAR=0.0
12515 75 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 75 0 75
12516 {
12517 75 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 75 75
12518 . $_tok . q{])},
12519 Parse::RecDescent::_tracefirst($text))
12520 if defined $::RD_TRACE;
12521 }
12522 else
12523 {
12524 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12525 Parse::RecDescent::_tracefirst($text))
12526 if defined $::RD_TRACE;
12527 }
12528
12529 75 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 75 75
12530 75 push @item, $item{__DIRECTIVE1__}=$_tok;
12531
12532  
12533 75 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['(' part ')' <defer:{ ++$subpartCount; }>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 75 75
12534 Parse::RecDescent::_tracefirst($text),
12535 q{subpart},
12536 $tracelevel)
12537 if defined $::RD_TRACE;
12538  
12539  
12540  
12541 75 $_matched = 1;
12542 75 last;
12543 }
12544  
12545 splice
12546 200 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 125 75 200
12547
12548 200 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 125 75 200
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
750125
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
12549 {
12550 125 splice @{$thisparser->{deferred}}, $def_at;
12551
12552  
12553 125 $_[1] = $text; # NOT SURE THIS IS NEEDED
12554 125 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 125 125
12555 Parse::RecDescent::_tracefirst($_[1]),
12556 q{subpart},
12557 $tracelevel)
12558 if defined $::RD_TRACE;
12559 125 return undef;
12560 }
12561 75 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 75 75
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
7500
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
12562 {
12563 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12564 q{subpart},
12565 $tracelevel)
12566 if defined $::RD_TRACE;
12567 0 $return = $score_return;
12568 }
12569 75 splice @{$thisparser->{errors}}, $err_at;
12570 75 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 75 75
12571 75 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 75 75
12572 {
12573 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
12574 $return . q{])}, "",
12575 q{subpart},
12576 $tracelevel);
12577 0 Parse::RecDescent::_trace(q{(consumed: [} .
12578 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
12579 Parse::RecDescent::_tracefirst($text),
12580 , q{subpart},
12581 $tracelevel)
12582 }
12583 75 $_[1] = $text;
12584 75 return $return;
12585 }
12586  
12587 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
12588 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::textlines
12589 62 ▶{
Subroutine textlines: called CC=31 SCAR=38.6
12590 62 my $thisparser = $_[0];
12591 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
12592 62 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
620
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
12593 62 $ERRORS = 0;
12594 62 my $thisrule = $thisparser->{"rules"}{"textlines"};
12595  
12596 62 ▶ Parse::RecDescent::_trace(q{Trying rule: [textlines]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
12597 Parse::RecDescent::_tracefirst($_[1]),
12598 q{textlines},
12599 $tracelevel)
12600 if defined $::RD_TRACE;
12601  
12602 62 my $def_at = @{$thisparser->{deferred}};
12603 62 my $err_at = @{$thisparser->{errors}};
12604  
12605 62 my $score;
12606 my $score_return;
12607 62 my $_tok;
12608 62 my $return = undef;
12609 62 my $_matched=0;
12610 62 my $commit=0;
12611 62 my @item = ();
12612 62 my %item = ();
12613 62 my $repeating = $_[2];
12614 62 my $_noactions = $_[3];
12615 62 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 62 0 62
12616 62 my $_itempos = $_[5];
12617 62 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 62 0 62
12618 62 my $text;
12619 my $lastsep;
12620 62 my $current_match;
12621 62 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or NUMBER});
12622 62 $expectation->at($_[1]);
12623
12624 62 my $thisline;
12625 62 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
12626  
12627
12628  
12629 62 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 62 0 62
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0062
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
12630 {
12631
12632 62 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
12633 Parse::RecDescent::_tracefirst($_[1]),
12634 q{textlines},
12635 $tracelevel)
12636 if defined $::RD_TRACE;
12637 62 my $thisprod = $thisrule->{"prods"}[0];
12638 62 $text = $_[1];
12639 62 my $_savetext;
12640 62 @item = (q{textlines});
12641 62 %item = (__RULE__ => q{textlines});
12642 62 my $repcount = 0;
12643  
12644  
12645 62 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
12646 Parse::RecDescent::_tracefirst($text),
12647 q{textlines},
12648 $tracelevel)
12649 if defined $::RD_TRACE;
12650 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
12651 62 $expectation->is(q{})->at($text);
12652 62 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 62 0 62
12653 {
12654
12655 62 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
12656 Parse::RecDescent::_tracefirst($text),
12657 q{textlines},
12658 $tracelevel)
12659 if defined $::RD_TRACE;
12660 62 $expectation->failed();
12661 62 last;
12662 }
12663 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12664 . $_tok . q{]},
12665  
12666 Parse::RecDescent::_tracefirst($text),
12667 q{textlines},
12668 $tracelevel)
12669 if defined $::RD_TRACE;
12670 0 $item{q{NIL}} = $_tok;
12671 0 push @item, $_tok;
12672
12673 }
12674  
12675 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12676 Parse::RecDescent::_tracefirst($text),
12677 q{textlines},
12678 $tracelevel)
12679 if defined $::RD_TRACE;
12680  
12681  
12682  
12683 0 $_matched = 1;
12684 0 last;
12685 }
12686  
12687 splice
12688 62 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 62 0 62
12689
12690 62 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 62 0 62
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0062
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
12691 {
12692
12693 62 ▶ Parse::RecDescent::_trace(q{Trying production: [NUMBER]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
12694 Parse::RecDescent::_tracefirst($_[1]),
12695 q{textlines},
12696 $tracelevel)
12697 if defined $::RD_TRACE;
12698 62 my $thisprod = $thisrule->{"prods"}[1];
12699 62 $text = $_[1];
12700 62 my $_savetext;
12701 62 @item = (q{textlines});
12702 62 %item = (__RULE__ => q{textlines});
12703 62 my $repcount = 0;
12704  
12705  
12706 62 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NUMBER]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
12707 Parse::RecDescent::_tracefirst($text),
12708 q{textlines},
12709 $tracelevel)
12710 if defined $::RD_TRACE;
12711 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
12712 62 $expectation->is(q{})->at($text);
12713 62 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NUMBER($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NUMBER($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 2 60 62
12714 {
12715
12716 2 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NUMBER]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
12717 Parse::RecDescent::_tracefirst($text),
12718 q{textlines},
12719 $tracelevel)
12720 if defined $::RD_TRACE;
12721 2 $expectation->failed();
12722 2 last;
12723 }
12724 60 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NUMBER]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 60 60
12725 . $_tok . q{]},
12726  
12727 Parse::RecDescent::_tracefirst($text),
12728 q{textlines},
12729 $tracelevel)
12730 if defined $::RD_TRACE;
12731 60 $item{q{NUMBER}} = $_tok;
12732 60 push @item, $_tok;
12733
12734 }
12735  
12736 60 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NUMBER]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 60 60
12737 Parse::RecDescent::_tracefirst($text),
12738 q{textlines},
12739 $tracelevel)
12740 if defined $::RD_TRACE;
12741  
12742  
12743  
12744 60 $_matched = 1;
12745 60 last;
12746 }
12747  
12748 splice
12749 62 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 2 60 62
12750
12751 62 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 2 60 62
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
6002
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
12752 {
12753 2 splice @{$thisparser->{deferred}}, $def_at;
12754
12755  
12756 2 $_[1] = $text; # NOT SURE THIS IS NEEDED
12757 2 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
12758 Parse::RecDescent::_tracefirst($_[1]),
12759 q{textlines},
12760 $tracelevel)
12761 if defined $::RD_TRACE;
12762 2 return undef;
12763 }
12764 60 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 60 60
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0600
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
12765 {
12766 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12767 q{textlines},
12768 $tracelevel)
12769 if defined $::RD_TRACE;
12770 0 $return = $score_return;
12771 }
12772 60 splice @{$thisparser->{errors}}, $err_at;
12773 60 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 60 0 60
12774 60 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 60 60
12775 {
12776 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
12777 $return . q{])}, "",
12778 q{textlines},
12779 $tracelevel);
12780 0 Parse::RecDescent::_trace(q{(consumed: [} .
12781 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
12782 Parse::RecDescent::_tracefirst($text),
12783 , q{textlines},
12784 $tracelevel)
12785 }
12786 60 $_[1] = $text;
12787 60 return $return;
12788 }
12789  
12790 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
12791 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::textmessage
12792 94 ▶{
Subroutine textmessage: called CC=61 SCAR=51.9
12793 94 my $thisparser = $_[0];
12794 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
12795 94 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
940
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
12796 94 $ERRORS = 0;
12797 94 my $thisrule = $thisparser->{"rules"}{"textmessage"};
12798  
12799 94 ▶ Parse::RecDescent::_trace(q{Trying rule: [textmessage]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
12800 Parse::RecDescent::_tracefirst($_[1]),
12801 q{textmessage},
12802 $tracelevel)
12803 if defined $::RD_TRACE;
12804  
12805 94 my $def_at = @{$thisparser->{deferred}};
12806 94 my $err_at = @{$thisparser->{errors}};
12807  
12808 94 my $score;
12809 my $score_return;
12810 94 my $_tok;
12811 94 my $return = undef;
12812 94 my $_matched=0;
12813 94 my $commit=0;
12814 94 my @item = ();
12815 94 my %item = ();
12816 94 my $repeating = $_[2];
12817 94 my $_noactions = $_[3];
12818 94 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 94 0 94
12819 94 my $_itempos = $_[5];
12820 94 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 94 0 94
12821 94 my $text;
12822 my $lastsep;
12823 94 my $current_match;
12824 94 my $expectation = new Parse::RecDescent::Expectation(q{TEXT});
12825 94 $expectation->at($_[1]);
12826
12827 94 my $thisline;
12828 94 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
12829  
12830
12831  
12832 94 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 94 0 94
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0094
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
12833 {
12834
12835 94 ▶ Parse::RecDescent::_trace(q{Trying production: [TEXT <commit> basicfields textlines bodyMD5 bodydisp bodylang bodyextra bodyextensions]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
12836 Parse::RecDescent::_tracefirst($_[1]),
12837 q{textmessage},
12838 $tracelevel)
12839 if defined $::RD_TRACE;
12840 94 my $thisprod = $thisrule->{"prods"}[0];
12841 94 $text = $_[1];
12842 94 my $_savetext;
12843 94 @item = (q{textmessage});
12844 94 %item = (__RULE__ => q{textmessage});
12845 94 my $repcount = 0;
12846  
12847  
12848 94 ▶ Parse::RecDescent::_trace(q{Trying subrule: [TEXT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 94 94
12849 Parse::RecDescent::_tracefirst($text),
12850 q{textmessage},
12851 $tracelevel)
12852 if defined $::RD_TRACE;
12853 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
12854 94 $expectation->is(q{})->at($text);
12855 94 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::TEXT($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = TEXT($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 53 41 94
12856 {
12857
12858 53 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [TEXT]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
12859 Parse::RecDescent::_tracefirst($text),
12860 q{textmessage},
12861 $tracelevel)
12862 if defined $::RD_TRACE;
12863 53 $expectation->failed();
12864 53 last;
12865 }
12866 41 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [TEXT]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
12867 . $_tok . q{]},
12868  
12869 Parse::RecDescent::_tracefirst($text),
12870 q{textmessage},
12871 $tracelevel)
12872 if defined $::RD_TRACE;
12873 41 $item{q{TEXT}} = $_tok;
12874 41 push @item, $_tok;
12875
12876 }
12877  
12878
12879  
12880 41 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
12881 Parse::RecDescent::_tracefirst($text),
12882 q{textmessage},
12883 $tracelevel)
12884 if defined $::RD_TRACE;
12885 41 $_tok = do { $commit = 1 };
12886 41 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 41 0 41
12887 {
12888 41 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
12889 . $_tok . q{])},
12890 Parse::RecDescent::_tracefirst($text))
12891 if defined $::RD_TRACE;
12892 }
12893 else
12894 {
12895 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12896 Parse::RecDescent::_tracefirst($text))
12897 if defined $::RD_TRACE;
12898 }
12899
12900 41 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 41 41
12901 41 push @item, $item{__DIRECTIVE1__}=$_tok;
12902
12903  
12904 41 ▶ Parse::RecDescent::_trace(q{Trying subrule: [basicfields]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
12905 Parse::RecDescent::_tracefirst($text),
12906 q{textmessage},
12907 $tracelevel)
12908 if defined $::RD_TRACE;
12909 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
12910 41 $expectation->is(q{basicfields})->at($text);
12911 41 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::basicfields($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = basicfields($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 41 41
12912 {
12913
12914 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [basicfields]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12915 Parse::RecDescent::_tracefirst($text),
12916 q{textmessage},
12917 $tracelevel)
12918 if defined $::RD_TRACE;
12919 0 $expectation->failed();
12920 0 last;
12921 }
12922 41 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [basicfields]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
12923 . $_tok . q{]},
12924  
12925 Parse::RecDescent::_tracefirst($text),
12926 q{textmessage},
12927 $tracelevel)
12928 if defined $::RD_TRACE;
12929 41 $item{q{basicfields}} = $_tok;
12930 41 push @item, $_tok;
12931
12932 }
12933  
12934 41 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [textlines]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
12935 Parse::RecDescent::_tracefirst($text),
12936 q{textmessage},
12937 $tracelevel)
12938 if defined $::RD_TRACE;
12939 41 $expectation->is(q{textlines})->at($text);
12940
12941 41 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::textlines, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::textlines, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 41 41
12942 {
12943 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [textlines]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12944 Parse::RecDescent::_tracefirst($text),
12945 q{textmessage},
12946 $tracelevel)
12947 if defined $::RD_TRACE;
12948 0 last;
12949 }
12950 41 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [textlines]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
12951 . @$_tok . q{ times)},
12952  
12953 Parse::RecDescent::_tracefirst($text),
12954 q{textmessage},
12955 $tracelevel)
12956 if defined $::RD_TRACE;
12957 41 $item{q{textlines(?)}} = $_tok;
12958 41 push @item, $_tok;
12959
12960  
12961  
12962 41 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyMD5]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
12963 Parse::RecDescent::_tracefirst($text),
12964 q{textmessage},
12965 $tracelevel)
12966 if defined $::RD_TRACE;
12967 41 $expectation->is(q{bodyMD5})->at($text);
12968
12969 41 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyMD5, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyMD5, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 41 41
12970 {
12971 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyMD5]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
12972 Parse::RecDescent::_tracefirst($text),
12973 q{textmessage},
12974 $tracelevel)
12975 if defined $::RD_TRACE;
12976 0 last;
12977 }
12978 41 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyMD5]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
12979 . @$_tok . q{ times)},
12980  
12981 Parse::RecDescent::_tracefirst($text),
12982 q{textmessage},
12983 $tracelevel)
12984 if defined $::RD_TRACE;
12985 41 $item{q{bodyMD5(?)}} = $_tok;
12986 41 push @item, $_tok;
12987
12988  
12989  
12990 41 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodydisp]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
12991 Parse::RecDescent::_tracefirst($text),
12992 q{textmessage},
12993 $tracelevel)
12994 if defined $::RD_TRACE;
12995 41 $expectation->is(q{bodydisp})->at($text);
12996
12997 41 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodydisp, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodydisp, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 41 41
12998 {
12999 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodydisp]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13000 Parse::RecDescent::_tracefirst($text),
13001 q{textmessage},
13002 $tracelevel)
13003 if defined $::RD_TRACE;
13004 0 last;
13005 }
13006 41 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodydisp]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
13007 . @$_tok . q{ times)},
13008  
13009 Parse::RecDescent::_tracefirst($text),
13010 q{textmessage},
13011 $tracelevel)
13012 if defined $::RD_TRACE;
13013 41 $item{q{bodydisp(?)}} = $_tok;
13014 41 push @item, $_tok;
13015
13016  
13017  
13018 41 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodylang]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
13019 Parse::RecDescent::_tracefirst($text),
13020 q{textmessage},
13021 $tracelevel)
13022 if defined $::RD_TRACE;
13023 41 $expectation->is(q{bodylang})->at($text);
13024
13025 41 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodylang, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodylang, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 41 41
13026 {
13027 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodylang]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13028 Parse::RecDescent::_tracefirst($text),
13029 q{textmessage},
13030 $tracelevel)
13031 if defined $::RD_TRACE;
13032 0 last;
13033 }
13034 41 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodylang]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
13035 . @$_tok . q{ times)},
13036  
13037 Parse::RecDescent::_tracefirst($text),
13038 q{textmessage},
13039 $tracelevel)
13040 if defined $::RD_TRACE;
13041 41 $item{q{bodylang(?)}} = $_tok;
13042 41 push @item, $_tok;
13043
13044  
13045  
13046 41 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyextra]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
13047 Parse::RecDescent::_tracefirst($text),
13048 q{textmessage},
13049 $tracelevel)
13050 if defined $::RD_TRACE;
13051 41 $expectation->is(q{bodyextra})->at($text);
13052
13053 41 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyextra, 0, 1, $_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::Mail::IMAPClient::BodyStructure::Parse::bodyextra, 0, 1, $_noactions, $expectation, sub { \@arg; } , undef))) 0 41 41
13054 {
13055 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyextra]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13056 Parse::RecDescent::_tracefirst($text),
13057 q{textmessage},
13058 $tracelevel)
13059 if defined $::RD_TRACE;
13060 0 last;
13061 }
13062 41 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyextra]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
13063 . @$_tok . q{ times)},
13064  
13065 Parse::RecDescent::_tracefirst($text),
13066 q{textmessage},
13067 $tracelevel)
13068 if defined $::RD_TRACE;
13069 41 $item{q{bodyextra(?)}} = $_tok;
13070 41 push @item, $_tok;
13071
13072  
13073  
13074 41 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [bodyextensions]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
13075 Parse::RecDescent::_tracefirst($text),
13076 q{textmessage},
13077 $tracelevel)
13078 if defined $::RD_TRACE;
13079 41 $expectation->is(q{bodyextensions})->at($text);
13080
13081 41 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::bodyextensions, 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::Mail::IMAPClient::BodyStructure::Parse::bodyextensions, 0, 100000000, $_noactions, $expectation, sub { \@arg; } , undef))) 0 41 41
13082 {
13083 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [bodyextensions]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13084 Parse::RecDescent::_tracefirst($text),
13085 q{textmessage},
13086 $tracelevel)
13087 if defined $::RD_TRACE;
13088 0 last;
13089 }
13090 41 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [bodyextensions]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
13091 . @$_tok . q{ times)},
13092  
13093 Parse::RecDescent::_tracefirst($text),
13094 q{textmessage},
13095 $tracelevel)
13096 if defined $::RD_TRACE;
13097 41 $item{q{bodyextensions(s?)}} = $_tok;
13098 41 push @item, $_tok;
13099
13100  
13101  
13102 41 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
13103 Parse::RecDescent::_tracefirst($text),
13104 q{textmessage},
13105 $tracelevel)
13106 if defined $::RD_TRACE;
13107
13108  
13109 41 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 41 41
13110 41 ▶ $return = $item{basicfields} || {};
Condition50%1/2
$item{'basicfields'} || {}
l!l
410
MC/DC0%0/1
$item{'basicfields'} || {}
$item{'basicfields'}
Truth table50%1/2
A
A= $item{'basicfields'}
Aresult
11
00
13111 41 $return->{bodytype} = 'TEXT';
13112 41 take_optional_items($return, \%item
13113 , qw/textlines bodyMD5 bodydisp bodylang bodyextra/);
13114 41 1;
13115 };
13116 41 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 41 41
13117 {
13118 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13119 if defined $::RD_TRACE;
13120 0 last;
13121 }
13122 41 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
13123 . $_tok . q{])},
13124 Parse::RecDescent::_tracefirst($text))
13125 if defined $::RD_TRACE;
13126 41 push @item, $_tok;
13127 41 $item{__ACTION1__}=$_tok;
13128
13129  
13130 41 ▶ Parse::RecDescent::_trace(q{>>Matched production: [TEXT <commit> basicfields textlines bodyMD5 bodydisp bodylang bodyextra bodyextensions]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 41 41
13131 Parse::RecDescent::_tracefirst($text),
13132 q{textmessage},
13133 $tracelevel)
13134 if defined $::RD_TRACE;
13135  
13136  
13137  
13138 41 $_matched = 1;
13139 41 last;
13140 }
13141  
13142 splice
13143 94 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 53 41 94
13144
13145 94 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 53 41 94
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
41053
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
13146 {
13147 53 splice @{$thisparser->{deferred}}, $def_at;
13148
13149  
13150 53 $_[1] = $text; # NOT SURE THIS IS NEEDED
13151 53 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 53 53
13152 Parse::RecDescent::_tracefirst($_[1]),
13153 q{textmessage},
13154 $tracelevel)
13155 if defined $::RD_TRACE;
13156 53 return undef;
13157 }
13158 41 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 41 41
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
4100
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
13159 {
13160 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13161 q{textmessage},
13162 $tracelevel)
13163 if defined $::RD_TRACE;
13164 0 $return = $score_return;
13165 }
13166 41 splice @{$thisparser->{errors}}, $err_at;
13167 41 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 41 41
13168 41 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 41 41
13169 {
13170 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
13171 $return . q{])}, "",
13172 q{textmessage},
13173 $tracelevel);
13174 0 Parse::RecDescent::_trace(q{(consumed: [} .
13175 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
13176 Parse::RecDescent::_tracefirst($text),
13177 , q{textmessage},
13178 $tracelevel)
13179 }
13180 41 $_[1] = $text;
13181 41 return $return;
13182 }
13183  
13184 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
13185 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::to
13186 24 ▶{
Subroutine to: called CC=22 SCAR=36.8
13187 24 my $thisparser = $_[0];
13188 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
13189 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
240
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
13190 24 $ERRORS = 0;
13191 24 my $thisrule = $thisparser->{"rules"}{"to"};
13192  
13193 24 ▶ Parse::RecDescent::_trace(q{Trying rule: [to]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
13194 Parse::RecDescent::_tracefirst($_[1]),
13195 q{to},
13196 $tracelevel)
13197 if defined $::RD_TRACE;
13198  
13199 24 my $def_at = @{$thisparser->{deferred}};
13200 24 my $err_at = @{$thisparser->{errors}};
13201  
13202 24 my $score;
13203 my $score_return;
13204 24 my $_tok;
13205 24 my $return = undef;
13206 24 my $_matched=0;
13207 24 my $commit=0;
13208 24 my @item = ();
13209 24 my %item = ();
13210 24 my $repeating = $_[2];
13211 24 my $_noactions = $_[3];
13212 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
13213 24 my $_itempos = $_[5];
13214 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 24 0 24
13215 24 my $text;
13216 my $lastsep;
13217 24 my $current_match;
13218 24 my $expectation = new Parse::RecDescent::Expectation(q{ADDRESSES});
13219 24 $expectation->at($_[1]);
13220
13221 24 my $thisline;
13222 24 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
13223  
13224
13225  
13226 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
13227 {
13228
13229 24 ▶ Parse::RecDescent::_trace(q{Trying production: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
13230 Parse::RecDescent::_tracefirst($_[1]),
13231 q{to},
13232 $tracelevel)
13233 if defined $::RD_TRACE;
13234 24 my $thisprod = $thisrule->{"prods"}[0];
13235 24 $text = $_[1];
13236 24 my $_savetext;
13237 24 @item = (q{to});
13238 24 %item = (__RULE__ => q{to});
13239 24 my $repcount = 0;
13240  
13241  
13242 24 ▶ Parse::RecDescent::_trace(q{Trying subrule: [ADDRESSES]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
13243 Parse::RecDescent::_tracefirst($text),
13244 q{to},
13245 $tracelevel)
13246 if defined $::RD_TRACE;
13247 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
13248 24 $expectation->is(q{})->at($text);
13249 24 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::ADDRESSES($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = ADDRESSES($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
13250 {
13251
13252 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [ADDRESSES]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13253 Parse::RecDescent::_tracefirst($text),
13254 q{to},
13255 $tracelevel)
13256 if defined $::RD_TRACE;
13257 0 $expectation->failed();
13258 0 last;
13259 }
13260 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [ADDRESSES]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
13261 . $_tok . q{]},
13262  
13263 Parse::RecDescent::_tracefirst($text),
13264 q{to},
13265 $tracelevel)
13266 if defined $::RD_TRACE;
13267 24 $item{q{ADDRESSES}} = $_tok;
13268 24 push @item, $_tok;
13269
13270 }
13271  
13272 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [ADDRESSES]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
13273 Parse::RecDescent::_tracefirst($text),
13274 q{to},
13275 $tracelevel)
13276 if defined $::RD_TRACE;
13277  
13278  
13279  
13280 24 $_matched = 1;
13281 24 last;
13282 }
13283  
13284 splice
13285 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 24 24
13286
13287 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
13288 {
13289 0 splice @{$thisparser->{deferred}}, $def_at;
13290
13291  
13292 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
13293 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13294 Parse::RecDescent::_tracefirst($_[1]),
13295 q{to},
13296 $tracelevel)
13297 if defined $::RD_TRACE;
13298 0 return undef;
13299 }
13300 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0240
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
13301 {
13302 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13303 q{to},
13304 $tracelevel)
13305 if defined $::RD_TRACE;
13306 0 $return = $score_return;
13307 }
13308 24 splice @{$thisparser->{errors}}, $err_at;
13309 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
13310 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
13311 {
13312 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
13313 $return . q{])}, "",
13314 q{to},
13315 $tracelevel);
13316 0 Parse::RecDescent::_trace(q{(consumed: [} .
13317 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
13318 Parse::RecDescent::_tracefirst($text),
13319 , q{to},
13320 $tracelevel)
13321 }
13322 24 $_[1] = $text;
13323 24 return $return;
13324 }
13325  
13326 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
13327 sub Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::value
13328 132 ▶{
Subroutine value: called CC=49 SCAR=45.1
13329 132 my $thisparser = $_[0];
13330 1 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
13331 132 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
l!l
1320
MC/DC0%0/1
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel || 0
$Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::tracelevel
Aresult
11
00
13332 132 $ERRORS = 0;
13333 132 my $thisrule = $thisparser->{"rules"}{"value"};
13334  
13335 132 ▶ Parse::RecDescent::_trace(q{Trying rule: [value]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
13336 Parse::RecDescent::_tracefirst($_[1]),
13337 q{value},
13338 $tracelevel)
13339 if defined $::RD_TRACE;
13340  
13341 132 my $def_at = @{$thisparser->{deferred}};
13342 132 my $err_at = @{$thisparser->{errors}};
13343  
13344 132 my $score;
13345 my $score_return;
13346 132 my $_tok;
13347 132 my $return = undef;
13348 132 my $_matched=0;
13349 132 my $commit=0;
13350 132 my @item = ();
13351 132 my %item = ();
13352 132 my $repeating = $_[2];
13353 132 my $_noactions = $_[3];
13354 132 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 132 0 132
13355 132 my $_itempos = $_[5];
13356 132 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 132 0 132
13357 132 my $text;
13358 my $lastsep;
13359 132 my $current_match;
13360 132 my $expectation = new Parse::RecDescent::Expectation(q{NIL, or NUMBER, or STRING, or KVPAIRS});
13361 132 $expectation->at($_[1]);
13362
13363 132 my $thisline;
13364 132 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
13365  
13366
13367  
13368 132 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 132 0 132
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00132
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
13369 {
13370
13371 132 ▶ Parse::RecDescent::_trace(q{Trying production: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
13372 Parse::RecDescent::_tracefirst($_[1]),
13373 q{value},
13374 $tracelevel)
13375 if defined $::RD_TRACE;
13376 132 my $thisprod = $thisrule->{"prods"}[0];
13377 132 $text = $_[1];
13378 132 my $_savetext;
13379 132 @item = (q{value});
13380 132 %item = (__RULE__ => q{value});
13381 132 my $repcount = 0;
13382  
13383  
13384 132 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NIL]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 132 132
13385 Parse::RecDescent::_tracefirst($text),
13386 q{value},
13387 $tracelevel)
13388 if defined $::RD_TRACE;
13389 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
13390 132 $expectation->is(q{})->at($text);
13391 132 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NIL($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NIL($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 120 12 132
13392 {
13393
13394 120 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NIL]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 120 120
13395 Parse::RecDescent::_tracefirst($text),
13396 q{value},
13397 $tracelevel)
13398 if defined $::RD_TRACE;
13399 120 $expectation->failed();
13400 120 last;
13401 }
13402 12 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NIL]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
13403 . $_tok . q{]},
13404  
13405 Parse::RecDescent::_tracefirst($text),
13406 q{value},
13407 $tracelevel)
13408 if defined $::RD_TRACE;
13409 12 $item{q{NIL}} = $_tok;
13410 12 push @item, $_tok;
13411
13412 }
13413  
13414 12 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NIL]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
13415 Parse::RecDescent::_tracefirst($text),
13416 q{value},
13417 $tracelevel)
13418 if defined $::RD_TRACE;
13419  
13420  
13421  
13422 12 $_matched = 1;
13423 12 last;
13424 }
13425  
13426 splice
13427 132 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 120 12 132
13428
13429 132 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 120 12 132
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
120120
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
13430 {
13431
13432 120 ▶ Parse::RecDescent::_trace(q{Trying production: [NUMBER]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 120 120
13433 Parse::RecDescent::_tracefirst($_[1]),
13434 q{value},
13435 $tracelevel)
13436 if defined $::RD_TRACE;
13437 120 my $thisprod = $thisrule->{"prods"}[1];
13438 120 $text = $_[1];
13439 120 my $_savetext;
13440 120 @item = (q{value});
13441 120 %item = (__RULE__ => q{value});
13442 120 my $repcount = 0;
13443  
13444  
13445 120 ▶ Parse::RecDescent::_trace(q{Trying subrule: [NUMBER]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 120 120
13446 Parse::RecDescent::_tracefirst($text),
13447 q{value},
13448 $tracelevel)
13449 if defined $::RD_TRACE;
13450 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
13451 120 $expectation->is(q{})->at($text);
13452 120 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::NUMBER($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NUMBER($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 120 0 120
13453 {
13454
13455 120 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [NUMBER]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 120 120
13456 Parse::RecDescent::_tracefirst($text),
13457 q{value},
13458 $tracelevel)
13459 if defined $::RD_TRACE;
13460 120 $expectation->failed();
13461 120 last;
13462 }
13463 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [NUMBER]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13464 . $_tok . q{]},
13465  
13466 Parse::RecDescent::_tracefirst($text),
13467 q{value},
13468 $tracelevel)
13469 if defined $::RD_TRACE;
13470 0 $item{q{NUMBER}} = $_tok;
13471 0 push @item, $_tok;
13472
13473 }
13474  
13475 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [NUMBER]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13476 Parse::RecDescent::_tracefirst($text),
13477 q{value},
13478 $tracelevel)
13479 if defined $::RD_TRACE;
13480  
13481  
13482  
13483 0 $_matched = 1;
13484 0 last;
13485 }
13486  
13487 splice
13488 132 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 120 12 132
13489
13490 132 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 120 12 132
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
120120
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
13491 {
13492
13493 120 ▶ Parse::RecDescent::_trace(q{Trying production: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 120 120
13494 Parse::RecDescent::_tracefirst($_[1]),
13495 q{value},
13496 $tracelevel)
13497 if defined $::RD_TRACE;
13498 120 my $thisprod = $thisrule->{"prods"}[2];
13499 120 $text = $_[1];
13500 120 my $_savetext;
13501 120 @item = (q{value});
13502 120 %item = (__RULE__ => q{value});
13503 120 my $repcount = 0;
13504  
13505  
13506 120 ▶ Parse::RecDescent::_trace(q{Trying subrule: [STRING]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 120 120
13507 Parse::RecDescent::_tracefirst($text),
13508 q{value},
13509 $tracelevel)
13510 if defined $::RD_TRACE;
13511 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
13512 120 $expectation->is(q{})->at($text);
13513 120 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::STRING($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = STRING($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 16 104 120
13514 {
13515
13516 16 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [STRING]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
13517 Parse::RecDescent::_tracefirst($text),
13518 q{value},
13519 $tracelevel)
13520 if defined $::RD_TRACE;
13521 16 $expectation->failed();
13522 16 last;
13523 }
13524 104 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [STRING]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 104 104
13525 . $_tok . q{]},
13526  
13527 Parse::RecDescent::_tracefirst($text),
13528 q{value},
13529 $tracelevel)
13530 if defined $::RD_TRACE;
13531 104 $item{q{STRING}} = $_tok;
13532 104 push @item, $_tok;
13533
13534 }
13535  
13536 104 ▶ Parse::RecDescent::_trace(q{>>Matched production: [STRING]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 104 104
13537 Parse::RecDescent::_tracefirst($text),
13538 q{value},
13539 $tracelevel)
13540 if defined $::RD_TRACE;
13541  
13542  
13543  
13544 104 $_matched = 1;
13545 104 last;
13546 }
13547  
13548 splice
13549 132 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 16 116 132
13550
13551 132 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 16 116 132
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
116016
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
13552 {
13553
13554 16 ▶ Parse::RecDescent::_trace(q{Trying production: [KVPAIRS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
13555 Parse::RecDescent::_tracefirst($_[1]),
13556 q{value},
13557 $tracelevel)
13558 if defined $::RD_TRACE;
13559 16 my $thisprod = $thisrule->{"prods"}[3];
13560 16 $text = $_[1];
13561 16 my $_savetext;
13562 16 @item = (q{value});
13563 16 %item = (__RULE__ => q{value});
13564 16 my $repcount = 0;
13565  
13566  
13567 16 ▶ Parse::RecDescent::_trace(q{Trying subrule: [KVPAIRS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
13568 Parse::RecDescent::_tracefirst($text),
13569 q{value},
13570 $tracelevel)
13571 if defined $::RD_TRACE;
13572 1 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
13573 16 $expectation->is(q{})->at($text);
13574 16 ▶ unless (defined ($_tok = Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse::KVPAIRS($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = KVPAIRS($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 16 16
13575 {
13576
13577 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [KVPAIRS]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13578 Parse::RecDescent::_tracefirst($text),
13579 q{value},
13580 $tracelevel)
13581 if defined $::RD_TRACE;
13582 0 $expectation->failed();
13583 0 last;
13584 }
13585 16 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [KVPAIRS]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
13586 . $_tok . q{]},
13587  
13588 Parse::RecDescent::_tracefirst($text),
13589 q{value},
13590 $tracelevel)
13591 if defined $::RD_TRACE;
13592 16 $item{q{KVPAIRS}} = $_tok;
13593 16 push @item, $_tok;
13594
13595 }
13596  
13597 16 ▶ Parse::RecDescent::_trace(q{>>Matched production: [KVPAIRS]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
13598 Parse::RecDescent::_tracefirst($text),
13599 q{value},
13600 $tracelevel)
13601 if defined $::RD_TRACE;
13602  
13603  
13604  
13605 16 $_matched = 1;
13606 16 last;
13607 }
13608  
13609 splice
13610 0 ▶ @{$thisparser->{deferred}}, $def_at unless $_matched;
Branch: 1 branch
BranchTrueFalseTotal
unless $_matched 0 132 132
13611
13612 132 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 132 132
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
13200
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
13613 {
13614 0 splice @{$thisparser->{deferred}}, $def_at;
13615
13616  
13617 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
13618 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13619 Parse::RecDescent::_tracefirst($_[1]),
13620 q{value},
13621 $tracelevel)
13622 if defined $::RD_TRACE;
13623 0 return undef;
13624 }
13625 132 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 132 132
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
01320
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
13626 {
13627 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
13628 q{value},
13629 $tracelevel)
13630 if defined $::RD_TRACE;
13631 0 $return = $score_return;
13632 }
13633 132 splice @{$thisparser->{errors}}, $err_at;
13634 132 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 132 0 132
13635 132 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 132 132
13636 {
13637 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
13638 $return . q{])}, "",
13639 q{value},
13640 $tracelevel);
13641 0 Parse::RecDescent::_trace(q{(consumed: [} .
13642 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
13643 Parse::RecDescent::_tracefirst($text),
13644 , q{value},
13645 $tracelevel)
13646 }
13647 132 $_[1] = $text;
13648 132 return $return;
13649 }
13650 }
13651 1 ▶package Mail::IMAPClient::BodyStructure::Parse; sub new { my $self = bless( {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
13652 '_AUTOACTION' => undef,
13653 '_AUTOTREE' => undef,
13654 '_check' => {
13655 'itempos' => '',
13656 'prevcolumn' => '',
13657 'prevline' => '',
13658 'prevoffset' => '',
13659 'thiscolumn' => '',
13660 'thisoffset' => ''
13661 },
13662 'deferrable' => 1,
13663 'localvars' => '',
13664 'namespace' => 'Parse::RecDescent::Mail::IMAPClient::BodyStructure::Parse',
13665 'rules' => {
13666 'ADDRESSES' => bless( {
13667 'calls' => [
13668 'NIL',
13669 'RFCNONCOMPLY',
13670 'addressstruct'
13671 ],
13672 'changed' => 0,
13673 'impcount' => 0,
13674 'line' => 96,
13675 'name' => 'ADDRESSES',
13676 'opcount' => 0,
13677 'prods' => [
13678 bless( {
13679 'actcount' => 0,
13680 'dircount' => 0,
13681 'error' => undef,
13682 'items' => [
13683 bless( {
13684 'argcode' => undef,
13685 'implicit' => undef,
13686 'line' => 96,
13687 'lookahead' => 0,
13688 'matchrule' => 0,
13689 'subrule' => 'NIL'
13690 }, 'Parse::RecDescent::Subrule' )
13691 ],
13692 'line' => undef,
13693 'number' => 0,
13694 'patcount' => 0,
13695 'strcount' => 0,
13696 'uncommit' => undef
13697 }, 'Parse::RecDescent::Production' ),
13698 bless( {
13699 'actcount' => 0,
13700 'dircount' => 0,
13701 'error' => undef,
13702 'items' => [
13703 bless( {
13704 'argcode' => undef,
13705 'implicit' => undef,
13706 'line' => 96,
13707 'lookahead' => 0,
13708 'matchrule' => 0,
13709 'subrule' => 'RFCNONCOMPLY'
13710 }, 'Parse::RecDescent::Subrule' )
13711 ],
13712 'line' => 96,
13713 'number' => 1,
13714 'patcount' => 0,
13715 'strcount' => 0,
13716 'uncommit' => undef
13717 }, 'Parse::RecDescent::Production' ),
13718 bless( {
13719 'actcount' => 1,
13720 'dircount' => 0,
13721 'error' => undef,
13722 'items' => [
13723 bless( {
13724 'description' => '\'(\'',
13725 'hashname' => '__STRING1__',
13726 'line' => 97,
13727 'lookahead' => 0,
13728 'pattern' => '('
13729 }, 'Parse::RecDescent::InterpLit' ),
13730 bless( {
13731 'argcode' => undef,
13732 'expected' => undef,
13733 'line' => 97,
13734 'lookahead' => 0,
13735 'matchrule' => 0,
13736 'max' => 100000000,
13737 'min' => 1,
13738 'repspec' => 's',
13739 'subrule' => 'addressstruct'
13740 }, 'Parse::RecDescent::Repetition' ),
13741 bless( {
13742 'description' => '\')\'',
13743 'hashname' => '__STRING2__',
13744 'line' => 97,
13745 'lookahead' => 0,
13746 'pattern' => ')'
13747 }, 'Parse::RecDescent::InterpLit' ),
13748 bless( {
13749 'code' => '{ $return = $item{\'addressstruct(s)\'} }',
13750 'hashname' => '__ACTION1__',
13751 'line' => 97,
13752 'lookahead' => 0
13753 }, 'Parse::RecDescent::Action' )
13754 ],
13755 'line' => 97,
13756 'number' => 2,
13757 'patcount' => 0,
13758 'strcount' => 2,
13759 'uncommit' => undef
13760 }, 'Parse::RecDescent::Production' )
13761 ],
13762 'vars' => ''
13763 }, 'Parse::RecDescent::Rule' ),
13764 'BARESTRING' => bless( {
13765 'calls' => [],
13766 'changed' => 0,
13767 'impcount' => 0,
13768 'line' => 43,
13769 'name' => 'BARESTRING',
13770 'opcount' => 0,
13771 'prods' => [
13772 bless( {
13773 'actcount' => 1,
13774 'dircount' => 0,
13775 'error' => undef,
13776 'items' => [
13777 bless( {
13778 'description' => '/^[)(\'"]/',
13779 'hashname' => '__PATTERN1__',
13780 'ldelim' => '/',
13781 'line' => 43,
13782 'lookahead' => -1,
13783 'mod' => '',
13784 'pattern' => '^[)(\'"]',
13785 'rdelim' => '/'
13786 }, 'Parse::RecDescent::Token' ),
13787 bless( {
13788 'description' => '/^(?!\\\\(|\\\\))(?:\\\\\\\\ |\\\\S)+/',
13789 'hashname' => '__PATTERN2__',
13790 'ldelim' => '/',
13791 'line' => 43,
13792 'lookahead' => 0,
13793 'mod' => '',
13794 'pattern' => '^(?!\\(|\\))(?:\\\\ |\\S)+',
13795 'rdelim' => '/'
13796 }, 'Parse::RecDescent::Token' ),
13797 bless( {
13798 'code' => '{ $return = $item{__PATTERN1__} }',
13799 'hashname' => '__ACTION1__',
13800 'line' => 44,
13801 'lookahead' => 0
13802 }, 'Parse::RecDescent::Action' )
13803 ],
13804 'line' => undef,
13805 'number' => 0,
13806 'patcount' => 2,
13807 'strcount' => 0,
13808 'uncommit' => undef
13809 }, 'Parse::RecDescent::Production' )
13810 ],
13811 'vars' => ''
13812 }, 'Parse::RecDescent::Rule' ),
13813 'DOUBLE_QUOTED_STRING' => bless( {
13814 'calls' => [],
13815 'changed' => 0,
13816 'impcount' => 0,
13817 'line' => 41,
13818 'name' => 'DOUBLE_QUOTED_STRING',
13819 'opcount' => 0,
13820 'prods' => [
13821 bless( {
13822 'actcount' => 1,
13823 'dircount' => 0,
13824 'error' => undef,
13825 'items' => [
13826 bless( {
13827 'description' => '\'"\'',
13828 'hashname' => '__STRING1__',
13829 'line' => 41,
13830 'lookahead' => 0,
13831 'pattern' => '"'
13832 }, 'Parse::RecDescent::Literal' ),
13833 bless( {
13834 'description' => '/(?:\\\\\\\\["\\\\\\\\]|[^"])*/',
13835 'hashname' => '__PATTERN1__',
13836 'ldelim' => '/',
13837 'line' => 41,
13838 'lookahead' => 0,
13839 'mod' => '',
13840 'pattern' => '(?:\\\\["\\\\]|[^"])*',
13841 'rdelim' => '/'
13842 }, 'Parse::RecDescent::Token' ),
13843 bless( {
13844 'description' => '\'"\'',
13845 'hashname' => '__STRING2__',
13846 'line' => 41,
13847 'lookahead' => 0,
13848 'pattern' => '"'
13849 }, 'Parse::RecDescent::Literal' ),
13850 bless( {
13851 'code' => '{ $return = $item{__PATTERN1__} }',
13852 'hashname' => '__ACTION1__',
13853 'line' => 41,
13854 'lookahead' => 0
13855 }, 'Parse::RecDescent::Action' )
13856 ],
13857 'line' => undef,
13858 'number' => 0,
13859 'patcount' => 1,
13860 'strcount' => 2,
13861 'uncommit' => undef
13862 }, 'Parse::RecDescent::Production' )
13863 ],
13864 'vars' => ''
13865 }, 'Parse::RecDescent::Rule' ),
13866 'HTML' => bless( {
13867 'calls' => [],
13868 'changed' => 0,
13869 'impcount' => 0,
13870 'line' => 31,
13871 'name' => 'HTML',
13872 'opcount' => 0,
13873 'prods' => [
13874 bless( {
13875 'actcount' => 1,
13876 'dircount' => 0,
13877 'error' => undef,
13878 'items' => [
13879 bless( {
13880 'description' => '/"HTML"|HTML/i',
13881 'hashname' => '__PATTERN1__',
13882 'ldelim' => '/',
13883 'line' => 31,
13884 'lookahead' => 0,
13885 'mod' => 'i',
13886 'pattern' => '"HTML"|HTML',
13887 'rdelim' => '/'
13888 }, 'Parse::RecDescent::Token' ),
13889 bless( {
13890 'code' => '{ $return = "HTML" }',
13891 'hashname' => '__ACTION1__',
13892 'line' => 31,
13893 'lookahead' => 0
13894 }, 'Parse::RecDescent::Action' )
13895 ],
13896 'line' => undef,
13897 'number' => 0,
13898 'patcount' => 1,
13899 'strcount' => 0,
13900 'uncommit' => undef
13901 }, 'Parse::RecDescent::Production' )
13902 ],
13903 'vars' => ''
13904 }, 'Parse::RecDescent::Rule' ),
13905 'KVPAIRS' => bless( {
13906 'calls' => [
13907 'kvpair'
13908 ],
13909 'changed' => 0,
13910 'impcount' => 0,
13911 'line' => 62,
13912 'name' => 'KVPAIRS',
13913 'opcount' => 0,
13914 'prods' => [
13915 bless( {
13916 'actcount' => 1,
13917 'dircount' => 0,
13918 'error' => undef,
13919 'items' => [
13920 bless( {
13921 'description' => '\'(\'',
13922 'hashname' => '__STRING1__',
13923 'line' => 62,
13924 'lookahead' => 0,
13925 'pattern' => '('
13926 }, 'Parse::RecDescent::InterpLit' ),
13927 bless( {
13928 'argcode' => undef,
13929 'expected' => undef,
13930 'line' => 62,
13931 'lookahead' => 0,
13932 'matchrule' => 0,
13933 'max' => 100000000,
13934 'min' => 1,
13935 'repspec' => 's',
13936 'subrule' => 'kvpair'
13937 }, 'Parse::RecDescent::Repetition' ),
13938 bless( {
13939 'description' => '\')\'',
13940 'hashname' => '__STRING2__',
13941 'line' => 62,
13942 'lookahead' => 0,
13943 'pattern' => ')'
13944 }, 'Parse::RecDescent::InterpLit' ),
13945 bless( {
13946 'code' => '{ $return = { map { (%$_) } @{$item{\'kvpair(s)\'}} } }',
13947 'hashname' => '__ACTION1__',
13948 'line' => 63,
13949 'lookahead' => 0
13950 }, 'Parse::RecDescent::Action' )
13951 ],
13952 'line' => undef,
13953 'number' => 0,
13954 'patcount' => 0,
13955 'strcount' => 2,
13956 'uncommit' => undef
13957 }, 'Parse::RecDescent::Production' )
13958 ],
13959 'vars' => ''
13960 }, 'Parse::RecDescent::Rule' ),
13961 'MESSAGE' => bless( {
13962 'calls' => [],
13963 'changed' => 0,
13964 'impcount' => 0,
13965 'line' => 32,
13966 'name' => 'MESSAGE',
13967 'opcount' => 0,
13968 'prods' => [
13969 bless( {
13970 'actcount' => 1,
13971 'dircount' => 0,
13972 'error' => undef,
13973 'items' => [
13974 bless( {
13975 'description' => '/^"MESSAGE"|^MESSAGE/i',
13976 'hashname' => '__PATTERN1__',
13977 'ldelim' => '/',
13978 'line' => 32,
13979 'lookahead' => 0,
13980 'mod' => 'i',
13981 'pattern' => '^"MESSAGE"|^MESSAGE',
13982 'rdelim' => '/'
13983 }, 'Parse::RecDescent::Token' ),
13984 bless( {
13985 'code' => '{ $return = "MESSAGE"}',
13986 'hashname' => '__ACTION1__',
13987 'line' => 32,
13988 'lookahead' => 0
13989 }, 'Parse::RecDescent::Action' )
13990 ],
13991 'line' => undef,
13992 'number' => 0,
13993 'patcount' => 1,
13994 'strcount' => 0,
13995 'uncommit' => undef
13996 }, 'Parse::RecDescent::Production' )
13997 ],
13998 'vars' => ''
13999 }, 'Parse::RecDescent::Rule' ),
14000 'NIL' => bless( {
14001 'calls' => [],
14002 'changed' => 0,
14003 'impcount' => 0,
14004 'line' => 34,
14005 'name' => 'NIL',
14006 'opcount' => 0,
14007 'prods' => [
14008 bless( {
14009 'actcount' => 1,
14010 'dircount' => 0,
14011 'error' => undef,
14012 'items' => [
14013 bless( {
14014 'description' => '/^NIL/i',
14015 'hashname' => '__PATTERN1__',
14016 'ldelim' => '/',
14017 'line' => 34,
14018 'lookahead' => 0,
14019 'mod' => 'i',
14020 'pattern' => '^NIL',
14021 'rdelim' => '/'
14022 }, 'Parse::RecDescent::Token' ),
14023 bless( {
14024 'code' => '{ $return = "NIL" }',
14025 'hashname' => '__ACTION1__',
14026 'line' => 34,
14027 'lookahead' => 0
14028 }, 'Parse::RecDescent::Action' )
14029 ],
14030 'line' => undef,
14031 'number' => 0,
14032 'patcount' => 1,
14033 'strcount' => 0,
14034 'uncommit' => undef
14035 }, 'Parse::RecDescent::Production' )
14036 ],
14037 'vars' => ''
14038 }, 'Parse::RecDescent::Rule' ),
14039 'NUMBER' => bless( {
14040 'calls' => [],
14041 'changed' => 0,
14042 'impcount' => 0,
14043 'line' => 36,
14044 'name' => 'NUMBER',
14045 'opcount' => 0,
14046 'prods' => [
14047 bless( {
14048 'actcount' => 1,
14049 'dircount' => 0,
14050 'error' => undef,
14051 'items' => [
14052 bless( {
14053 'description' => '/^(\\\\d+)/',
14054 'hashname' => '__PATTERN1__',
14055 'ldelim' => '/',
14056 'line' => 36,
14057 'lookahead' => 0,
14058 'mod' => '',
14059 'pattern' => '^(\\d+)',
14060 'rdelim' => '/'
14061 }, 'Parse::RecDescent::Token' ),
14062 bless( {
14063 'code' => '{ $return = $item[1] }',
14064 'hashname' => '__ACTION1__',
14065 'line' => 36,
14066 'lookahead' => 0
14067 }, 'Parse::RecDescent::Action' )
14068 ],
14069 'line' => undef,
14070 'number' => 0,
14071 'patcount' => 1,
14072 'strcount' => 0,
14073 'uncommit' => undef
14074 }, 'Parse::RecDescent::Production' )
14075 ],
14076 'vars' => ''
14077 }, 'Parse::RecDescent::Rule' ),
14078 'PLAIN' => bless( {
14079 'calls' => [],
14080 'changed' => 0,
14081 'impcount' => 0,
14082 'line' => 30,
14083 'name' => 'PLAIN',
14084 'opcount' => 0,
14085 'prods' => [
14086 bless( {
14087 'actcount' => 1,
14088 'dircount' => 0,
14089 'error' => undef,
14090 'items' => [
14091 bless( {
14092 'description' => '/^"PLAIN"|^PLAIN/i',
14093 'hashname' => '__PATTERN1__',
14094 'ldelim' => '/',
14095 'line' => 30,
14096 'lookahead' => 0,
14097 'mod' => 'i',
14098 'pattern' => '^"PLAIN"|^PLAIN',
14099 'rdelim' => '/'
14100 }, 'Parse::RecDescent::Token' ),
14101 bless( {
14102 'code' => '{ $return = "PLAIN" }',
14103 'hashname' => '__ACTION1__',
14104 'line' => 30,
14105 'lookahead' => 0
14106 }, 'Parse::RecDescent::Action' )
14107 ],
14108 'line' => undef,
14109 'number' => 0,
14110 'patcount' => 1,
14111 'strcount' => 0,
14112 'uncommit' => undef
14113 }, 'Parse::RecDescent::Production' )
14114 ],
14115 'vars' => ''
14116 }, 'Parse::RecDescent::Rule' ),
14117 'RFC822' => bless( {
14118 'calls' => [],
14119 'changed' => 0,
14120 'impcount' => 0,
14121 'line' => 33,
14122 'name' => 'RFC822',
14123 'opcount' => 0,
14124 'prods' => [
14125 bless( {
14126 'actcount' => 1,
14127 'dircount' => 0,
14128 'error' => undef,
14129 'items' => [
14130 bless( {
14131 'description' => '/^"RFC822"|^RFC822/i',
14132 'hashname' => '__PATTERN1__',
14133 'ldelim' => '/',
14134 'line' => 33,
14135 'lookahead' => 0,
14136 'mod' => 'i',
14137 'pattern' => '^"RFC822"|^RFC822',
14138 'rdelim' => '/'
14139 }, 'Parse::RecDescent::Token' ),
14140 bless( {
14141 'code' => '{ $return = "RFC822" }',
14142 'hashname' => '__ACTION1__',
14143 'line' => 33,
14144 'lookahead' => 0
14145 }, 'Parse::RecDescent::Action' )
14146 ],
14147 'line' => undef,
14148 'number' => 0,
14149 'patcount' => 1,
14150 'strcount' => 0,
14151 'uncommit' => undef
14152 }, 'Parse::RecDescent::Production' )
14153 ],
14154 'vars' => ''
14155 }, 'Parse::RecDescent::Rule' ),
14156 'RFCNONCOMPLY' => bless( {
14157 'calls' => [],
14158 'changed' => 0,
14159 'impcount' => 0,
14160 'line' => 35,
14161 'name' => 'RFCNONCOMPLY',
14162 'opcount' => 0,
14163 'prods' => [
14164 bless( {
14165 'actcount' => 1,
14166 'dircount' => 0,
14167 'error' => undef,
14168 'items' => [
14169 bless( {
14170 'description' => '/^\\\\(\\\\)/i',
14171 'hashname' => '__PATTERN1__',
14172 'ldelim' => '/',
14173 'line' => 35,
14174 'lookahead' => 0,
14175 'mod' => 'i',
14176 'pattern' => '^\\(\\)',
14177 'rdelim' => '/'
14178 }, 'Parse::RecDescent::Token' ),
14179 bless( {
14180 'code' => '{ $return = "NIL" }',
14181 'hashname' => '__ACTION1__',
14182 'line' => 35,
14183 'lookahead' => 0
14184 }, 'Parse::RecDescent::Action' )
14185 ],
14186 'line' => undef,
14187 'number' => 0,
14188 'patcount' => 1,
14189 'strcount' => 0,
14190 'uncommit' => undef
14191 }, 'Parse::RecDescent::Production' )
14192 ],
14193 'vars' => ''
14194 }, 'Parse::RecDescent::Rule' ),
14195 'SINGLE_QUOTED_STRING' => bless( {
14196 'calls' => [],
14197 'changed' => 0,
14198 'impcount' => 0,
14199 'line' => 38,
14200 'name' => 'SINGLE_QUOTED_STRING',
14201 'opcount' => 0,
14202 'prods' => [
14203 bless( {
14204 'actcount' => 1,
14205 'dircount' => 0,
14206 'error' => undef,
14207 'items' => [
14208 bless( {
14209 'description' => '\'\'\'',
14210 'hashname' => '__STRING1__',
14211 'line' => 40,
14212 'lookahead' => 0,
14213 'pattern' => '\''
14214 }, 'Parse::RecDescent::InterpLit' ),
14215 bless( {
14216 'description' => '/(?:\\\\\\\\[\'\\\\\\\\]|[^\'])*/',
14217 'hashname' => '__PATTERN1__',
14218 'ldelim' => '/',
14219 'line' => 40,
14220 'lookahead' => 0,
14221 'mod' => '',
14222 'pattern' => '(?:\\\\[\'\\\\]|[^\'])*',
14223 'rdelim' => '/'
14224 }, 'Parse::RecDescent::Token' ),
14225 bless( {
14226 'description' => '\'\'\'',
14227 'hashname' => '__STRING2__',
14228 'line' => 40,
14229 'lookahead' => 0,
14230 'pattern' => '\''
14231 }, 'Parse::RecDescent::InterpLit' ),
14232 bless( {
14233 'code' => '{ $return = $item{__PATTERN1__} }',
14234 'hashname' => '__ACTION1__',
14235 'line' => 40,
14236 'lookahead' => 0
14237 }, 'Parse::RecDescent::Action' )
14238 ],
14239 'line' => undef,
14240 'number' => 0,
14241 'patcount' => 1,
14242 'strcount' => 2,
14243 'uncommit' => undef
14244 }, 'Parse::RecDescent::Production' )
14245 ],
14246 'vars' => ''
14247 }, 'Parse::RecDescent::Rule' ),
14248 'STRING' => bless( {
14249 'calls' => [
14250 'DOUBLE_QUOTED_STRING',
14251 'SINGLE_QUOTED_STRING',
14252 'BARESTRING'
14253 ],
14254 'changed' => 0,
14255 'impcount' => 0,
14256 'line' => 46,
14257 'name' => 'STRING',
14258 'opcount' => 0,
14259 'prods' => [
14260 bless( {
14261 'actcount' => 0,
14262 'dircount' => 0,
14263 'error' => undef,
14264 'items' => [
14265 bless( {
14266 'argcode' => undef,
14267 'implicit' => undef,
14268 'line' => 46,
14269 'lookahead' => 0,
14270 'matchrule' => 0,
14271 'subrule' => 'DOUBLE_QUOTED_STRING'
14272 }, 'Parse::RecDescent::Subrule' )
14273 ],
14274 'line' => undef,
14275 'number' => 0,
14276 'patcount' => 0,
14277 'strcount' => 0,
14278 'uncommit' => undef
14279 }, 'Parse::RecDescent::Production' ),
14280 bless( {
14281 'actcount' => 0,
14282 'dircount' => 0,
14283 'error' => undef,
14284 'items' => [
14285 bless( {
14286 'argcode' => undef,
14287 'implicit' => undef,
14288 'line' => 46,
14289 'lookahead' => 0,
14290 'matchrule' => 0,
14291 'subrule' => 'SINGLE_QUOTED_STRING'
14292 }, 'Parse::RecDescent::Subrule' )
14293 ],
14294 'line' => 46,
14295 'number' => 1,
14296 'patcount' => 0,
14297 'strcount' => 0,
14298 'uncommit' => undef
14299 }, 'Parse::RecDescent::Production' ),
14300 bless( {
14301 'actcount' => 0,
14302 'dircount' => 0,
14303 'error' => undef,
14304 'items' => [
14305 bless( {
14306 'argcode' => undef,
14307 'implicit' => undef,
14308 'line' => 46,
14309 'lookahead' => 0,
14310 'matchrule' => 0,
14311 'subrule' => 'BARESTRING'
14312 }, 'Parse::RecDescent::Subrule' )
14313 ],
14314 'line' => 46,
14315 'number' => 2,
14316 'patcount' => 0,
14317 'strcount' => 0,
14318 'uncommit' => undef
14319 }, 'Parse::RecDescent::Production' )
14320 ],
14321 'vars' => ''
14322 }, 'Parse::RecDescent::Rule' ),
14323 'STRINGS' => bless( {
14324 'calls' => [
14325 'STRING'
14326 ],
14327 'changed' => 0,
14328 'impcount' => 0,
14329 'line' => 48,
14330 'name' => 'STRINGS',
14331 'opcount' => 0,
14332 'prods' => [
14333 bless( {
14334 'actcount' => 1,
14335 'dircount' => 0,
14336 'error' => undef,
14337 'items' => [
14338 bless( {
14339 'description' => '\'(\'',
14340 'hashname' => '__STRING1__',
14341 'line' => 48,
14342 'lookahead' => 0,
14343 'pattern' => '('
14344 }, 'Parse::RecDescent::InterpLit' ),
14345 bless( {
14346 'argcode' => undef,
14347 'expected' => undef,
14348 'line' => 48,
14349 'lookahead' => 0,
14350 'matchrule' => 0,
14351 'max' => 100000000,
14352 'min' => 1,
14353 'repspec' => 's',
14354 'subrule' => 'STRING'
14355 }, 'Parse::RecDescent::Repetition' ),
14356 bless( {
14357 'description' => '\')\'',
14358 'hashname' => '__STRING2__',
14359 'line' => 48,
14360 'lookahead' => 0,
14361 'pattern' => ')'
14362 }, 'Parse::RecDescent::InterpLit' ),
14363 bless( {
14364 'code' => '{ $return = $item{\'STRING(s)\'} }',
14365 'hashname' => '__ACTION1__',
14366 'line' => 48,
14367 'lookahead' => 0
14368 }, 'Parse::RecDescent::Action' )
14369 ],
14370 'line' => undef,
14371 'number' => 0,
14372 'patcount' => 0,
14373 'strcount' => 2,
14374 'uncommit' => undef
14375 }, 'Parse::RecDescent::Production' )
14376 ],
14377 'vars' => ''
14378 }, 'Parse::RecDescent::Rule' ),
14379 'TEXT' => bless( {
14380 'calls' => [],
14381 'changed' => 0,
14382 'impcount' => 0,
14383 'line' => 27,
14384 'name' => 'TEXT',
14385 'opcount' => 0,
14386 'prods' => [
14387 bless( {
14388 'actcount' => 1,
14389 'dircount' => 0,
14390 'error' => undef,
14391 'items' => [
14392 bless( {
14393 'description' => '/^"TEXT"|^TEXT/i',
14394 'hashname' => '__PATTERN1__',
14395 'ldelim' => '/',
14396 'line' => 29,
14397 'lookahead' => 0,
14398 'mod' => 'i',
14399 'pattern' => '^"TEXT"|^TEXT',
14400 'rdelim' => '/'
14401 }, 'Parse::RecDescent::Token' ),
14402 bless( {
14403 'code' => '{ $return = "TEXT" }',
14404 'hashname' => '__ACTION1__',
14405 'line' => 29,
14406 'lookahead' => 0
14407 }, 'Parse::RecDescent::Action' )
14408 ],
14409 'line' => undef,
14410 'number' => 0,
14411 'patcount' => 1,
14412 'strcount' => 0,
14413 'uncommit' => undef
14414 }, 'Parse::RecDescent::Production' )
14415 ],
14416 'vars' => ''
14417 }, 'Parse::RecDescent::Rule' ),
14418 'addressstruct' => bless( {
14419 'calls' => [
14420 'personalname',
14421 'sourceroute',
14422 'mailboxname',
14423 'hostname'
14424 ],
14425 'changed' => 0,
14426 'impcount' => 0,
14427 'line' => 83,
14428 'name' => 'addressstruct',
14429 'opcount' => 0,
14430 'prods' => [
14431 bless( {
14432 'actcount' => 1,
14433 'dircount' => 0,
14434 'error' => undef,
14435 'items' => [
14436 bless( {
14437 'description' => '\'(\'',
14438 'hashname' => '__STRING1__',
14439 'line' => 83,
14440 'lookahead' => 0,
14441 'pattern' => '('
14442 }, 'Parse::RecDescent::InterpLit' ),
14443 bless( {
14444 'argcode' => undef,
14445 'implicit' => undef,
14446 'line' => 83,
14447 'lookahead' => 0,
14448 'matchrule' => 0,
14449 'subrule' => 'personalname'
14450 }, 'Parse::RecDescent::Subrule' ),
14451 bless( {
14452 'argcode' => undef,
14453 'implicit' => undef,
14454 'line' => 83,
14455 'lookahead' => 0,
14456 'matchrule' => 0,
14457 'subrule' => 'sourceroute'
14458 }, 'Parse::RecDescent::Subrule' ),
14459 bless( {
14460 'argcode' => undef,
14461 'implicit' => undef,
14462 'line' => 83,
14463 'lookahead' => 0,
14464 'matchrule' => 0,
14465 'subrule' => 'mailboxname'
14466 }, 'Parse::RecDescent::Subrule' ),
14467 bless( {
14468 'argcode' => undef,
14469 'implicit' => undef,
14470 'line' => 83,
14471 'lookahead' => 0,
14472 'matchrule' => 0,
14473 'subrule' => 'hostname'
14474 }, 'Parse::RecDescent::Subrule' ),
14475 bless( {
14476 'description' => '\')\'',
14477 'hashname' => '__STRING2__',
14478 'line' => 83,
14479 'lookahead' => 0,
14480 'pattern' => ')'
14481 }, 'Parse::RecDescent::InterpLit' ),
14482 bless( {
14483 'code' => '{ bless { personalname => $item{personalname}
14484 , sourceroute => $item{sourceroute}
14485 , mailboxname => $item{mailboxname}
14486 , hostname => $item{hostname}
14487 }, \'Mail::IMAPClient::BodyStructure::Address\';
14488 }',
14489 'hashname' => '__ACTION1__',
14490 'line' => 84,
14491 'lookahead' => 0
14492 }, 'Parse::RecDescent::Action' )
14493 ],
14494 'line' => undef,
14495 'number' => 0,
14496 'patcount' => 0,
14497 'strcount' => 2,
14498 'uncommit' => undef
14499 }, 'Parse::RecDescent::Production' )
14500 ],
14501 'vars' => ''
14502 }, 'Parse::RecDescent::Rule' ),
14503 'basicfields' => bless( {
14504 'calls' => [
14505 'bodysubtype',
14506 'bodyparms',
14507 'bodyid',
14508 'bodydesc',
14509 'bodyenc',
14510 'bodysize'
14511 ],
14512 'changed' => 0,
14513 'impcount' => 0,
14514 'line' => 115,
14515 'name' => 'basicfields',
14516 'opcount' => 0,
14517 'prods' => [
14518 bless( {
14519 'actcount' => 1,
14520 'dircount' => 0,
14521 'error' => undef,
14522 'items' => [
14523 bless( {
14524 'argcode' => undef,
14525 'implicit' => undef,
14526 'line' => 115,
14527 'lookahead' => 0,
14528 'matchrule' => 0,
14529 'subrule' => 'bodysubtype'
14530 }, 'Parse::RecDescent::Subrule' ),
14531 bless( {
14532 'argcode' => undef,
14533 'expected' => undef,
14534 'line' => 115,
14535 'lookahead' => 0,
14536 'matchrule' => 0,
14537 'max' => 1,
14538 'min' => 0,
14539 'repspec' => '?',
14540 'subrule' => 'bodyparms'
14541 }, 'Parse::RecDescent::Repetition' ),
14542 bless( {
14543 'argcode' => undef,
14544 'expected' => undef,
14545 'line' => 115,
14546 'lookahead' => 0,
14547 'matchrule' => 0,
14548 'max' => 1,
14549 'min' => 0,
14550 'repspec' => '?',
14551 'subrule' => 'bodyid'
14552 }, 'Parse::RecDescent::Repetition' ),
14553 bless( {
14554 'argcode' => undef,
14555 'expected' => undef,
14556 'line' => 116,
14557 'lookahead' => 0,
14558 'matchrule' => 0,
14559 'max' => 1,
14560 'min' => 0,
14561 'repspec' => '?',
14562 'subrule' => 'bodydesc'
14563 }, 'Parse::RecDescent::Repetition' ),
14564 bless( {
14565 'argcode' => undef,
14566 'expected' => undef,
14567 'line' => 116,
14568 'lookahead' => 0,
14569 'matchrule' => 0,
14570 'max' => 1,
14571 'min' => 0,
14572 'repspec' => '?',
14573 'subrule' => 'bodyenc'
14574 }, 'Parse::RecDescent::Repetition' ),
14575 bless( {
14576 'argcode' => undef,
14577 'expected' => undef,
14578 'line' => 116,
14579 'lookahead' => 0,
14580 'matchrule' => 0,
14581 'max' => 1,
14582 'min' => 0,
14583 'repspec' => '?',
14584 'subrule' => 'bodysize'
14585 }, 'Parse::RecDescent::Repetition' ),
14586 bless( {
14587 'code' => '{ $return = { bodysubtype => $item{bodysubtype} };
14588 take_optional_items($return, \\%item,
14589 qw/bodyparms bodyid bodydesc bodyenc bodysize/);
14590 1;
14591 }',
14592 'hashname' => '__ACTION1__',
14593 'line' => 117,
14594 'lookahead' => 0
14595 }, 'Parse::RecDescent::Action' )
14596 ],
14597 'line' => undef,
14598 'number' => 0,
14599 'patcount' => 0,
14600 'strcount' => 0,
14601 'uncommit' => undef
14602 }, 'Parse::RecDescent::Production' )
14603 ],
14604 'vars' => ''
14605 }, 'Parse::RecDescent::Rule' ),
14606 'bcc' => bless( {
14607 'calls' => [
14608 'ADDRESSES'
14609 ],
14610 'changed' => 0,
14611 'impcount' => 0,
14612 'line' => 100,
14613 'name' => 'bcc',
14614 'opcount' => 0,
14615 'prods' => [
14616 bless( {
14617 'actcount' => 0,
14618 'dircount' => 0,
14619 'error' => undef,
14620 'items' => [
14621 bless( {
14622 'argcode' => undef,
14623 'implicit' => undef,
14624 'line' => 100,
14625 'lookahead' => 0,
14626 'matchrule' => 0,
14627 'subrule' => 'ADDRESSES'
14628 }, 'Parse::RecDescent::Subrule' )
14629 ],
14630 'line' => undef,
14631 'number' => 0,
14632 'patcount' => 0,
14633 'strcount' => 0,
14634 'uncommit' => undef
14635 }, 'Parse::RecDescent::Production' )
14636 ],
14637 'vars' => ''
14638 }, 'Parse::RecDescent::Rule' ),
14639 'bodyMD5' => bless( {
14640 'calls' => [
14641 'NIL',
14642 'STRING'
14643 ],
14644 'changed' => 0,
14645 'impcount' => 0,
14646 'line' => 72,
14647 'name' => 'bodyMD5',
14648 'opcount' => 0,
14649 'prods' => [
14650 bless( {
14651 'actcount' => 0,
14652 'dircount' => 0,
14653 'error' => undef,
14654 'items' => [
14655 bless( {
14656 'argcode' => undef,
14657 'implicit' => undef,
14658 'line' => 72,
14659 'lookahead' => 0,
14660 'matchrule' => 0,
14661 'subrule' => 'NIL'
14662 }, 'Parse::RecDescent::Subrule' )
14663 ],
14664 'line' => undef,
14665 'number' => 0,
14666 'patcount' => 0,
14667 'strcount' => 0,
14668 'uncommit' => undef
14669 }, 'Parse::RecDescent::Production' ),
14670 bless( {
14671 'actcount' => 0,
14672 'dircount' => 0,
14673 'error' => undef,
14674 'items' => [
14675 bless( {
14676 'argcode' => undef,
14677 'implicit' => undef,
14678 'line' => 72,
14679 'lookahead' => 0,
14680 'matchrule' => 0,
14681 'subrule' => 'STRING'
14682 }, 'Parse::RecDescent::Subrule' )
14683 ],
14684 'line' => 72,
14685 'number' => 1,
14686 'patcount' => 0,
14687 'strcount' => 0,
14688 'uncommit' => undef
14689 }, 'Parse::RecDescent::Production' )
14690 ],
14691 'vars' => ''
14692 }, 'Parse::RecDescent::Rule' ),
14693 'bodydesc' => bless( {
14694 'calls' => [
14695 'NIL',
14696 'STRING'
14697 ],
14698 'changed' => 0,
14699 'impcount' => 0,
14700 'line' => 69,
14701 'name' => 'bodydesc',
14702 'opcount' => 0,
14703 'prods' => [
14704 bless( {
14705 'actcount' => 0,
14706 'dircount' => 0,
14707 'error' => undef,
14708 'items' => [
14709 bless( {
14710 'description' => '/[()]/',
14711 'hashname' => '__PATTERN1__',
14712 'ldelim' => '/',
14713 'line' => 69,
14714 'lookahead' => -1,
14715 'mod' => '',
14716 'pattern' => '[()]',
14717 'rdelim' => '/'
14718 }, 'Parse::RecDescent::Token' ),
14719 bless( {
14720 'argcode' => undef,
14721 'implicit' => undef,
14722 'line' => 69,
14723 'lookahead' => 0,
14724 'matchrule' => 0,
14725 'subrule' => 'NIL'
14726 }, 'Parse::RecDescent::Subrule' )
14727 ],
14728 'line' => undef,
14729 'number' => 0,
14730 'patcount' => 1,
14731 'strcount' => 0,
14732 'uncommit' => undef
14733 }, 'Parse::RecDescent::Production' ),
14734 bless( {
14735 'actcount' => 0,
14736 'dircount' => 0,
14737 'error' => undef,
14738 'items' => [
14739 bless( {
14740 'argcode' => undef,
14741 'implicit' => undef,
14742 'line' => 69,
14743 'lookahead' => 0,
14744 'matchrule' => 0,
14745 'subrule' => 'STRING'
14746 }, 'Parse::RecDescent::Subrule' )
14747 ],
14748 'line' => 69,
14749 'number' => 1,
14750 'patcount' => 0,
14751 'strcount' => 0,
14752 'uncommit' => undef
14753 }, 'Parse::RecDescent::Production' )
14754 ],
14755 'vars' => ''
14756 }, 'Parse::RecDescent::Rule' ),
14757 'bodydisp' => bless( {
14758 'calls' => [
14759 'NIL',
14760 'KVPAIRS'
14761 ],
14762 'changed' => 0,
14763 'impcount' => 0,
14764 'line' => 67,
14765 'name' => 'bodydisp',
14766 'opcount' => 0,
14767 'prods' => [
14768 bless( {
14769 'actcount' => 0,
14770 'dircount' => 0,
14771 'error' => undef,
14772 'items' => [
14773 bless( {
14774 'argcode' => undef,
14775 'implicit' => undef,
14776 'line' => 67,
14777 'lookahead' => 0,
14778 'matchrule' => 0,
14779 'subrule' => 'NIL'
14780 }, 'Parse::RecDescent::Subrule' )
14781 ],
14782 'line' => undef,
14783 'number' => 0,
14784 'patcount' => 0,
14785 'strcount' => 0,
14786 'uncommit' => undef
14787 }, 'Parse::RecDescent::Production' ),
14788 bless( {
14789 'actcount' => 0,
14790 'dircount' => 0,
14791 'error' => undef,
14792 'items' => [
14793 bless( {
14794 'argcode' => undef,
14795 'implicit' => undef,
14796 'line' => 67,
14797 'lookahead' => 0,
14798 'matchrule' => 0,
14799 'subrule' => 'KVPAIRS'
14800 }, 'Parse::RecDescent::Subrule' )
14801 ],
14802 'line' => 67,
14803 'number' => 1,
14804 'patcount' => 0,
14805 'strcount' => 0,
14806 'uncommit' => undef
14807 }, 'Parse::RecDescent::Production' )
14808 ],
14809 'vars' => ''
14810 }, 'Parse::RecDescent::Rule' ),
14811 'bodyenc' => bless( {
14812 'calls' => [
14813 'NIL',
14814 'STRING',
14815 'KVPAIRS'
14816 ],
14817 'changed' => 0,
14818 'impcount' => 0,
14819 'line' => 71,
14820 'name' => 'bodyenc',
14821 'opcount' => 0,
14822 'prods' => [
14823 bless( {
14824 'actcount' => 0,
14825 'dircount' => 0,
14826 'error' => undef,
14827 'items' => [
14828 bless( {
14829 'argcode' => undef,
14830 'implicit' => undef,
14831 'line' => 71,
14832 'lookahead' => 0,
14833 'matchrule' => 0,
14834 'subrule' => 'NIL'
14835 }, 'Parse::RecDescent::Subrule' )
14836 ],
14837 'line' => undef,
14838 'number' => 0,
14839 'patcount' => 0,
14840 'strcount' => 0,
14841 'uncommit' => undef
14842 }, 'Parse::RecDescent::Production' ),
14843 bless( {
14844 'actcount' => 0,
14845 'dircount' => 0,
14846 'error' => undef,
14847 'items' => [
14848 bless( {
14849 'argcode' => undef,
14850 'implicit' => undef,
14851 'line' => 71,
14852 'lookahead' => 0,
14853 'matchrule' => 0,
14854 'subrule' => 'STRING'
14855 }, 'Parse::RecDescent::Subrule' )
14856 ],
14857 'line' => 71,
14858 'number' => 1,
14859 'patcount' => 0,
14860 'strcount' => 0,
14861 'uncommit' => undef
14862 }, 'Parse::RecDescent::Production' ),
14863 bless( {
14864 'actcount' => 0,
14865 'dircount' => 0,
14866 'error' => undef,
14867 'items' => [
14868 bless( {
14869 'argcode' => undef,
14870 'implicit' => undef,
14871 'line' => 71,
14872 'lookahead' => 0,
14873 'matchrule' => 0,
14874 'subrule' => 'KVPAIRS'
14875 }, 'Parse::RecDescent::Subrule' )
14876 ],
14877 'line' => 71,
14878 'number' => 2,
14879 'patcount' => 0,
14880 'strcount' => 0,
14881 'uncommit' => undef
14882 }, 'Parse::RecDescent::Production' )
14883 ],
14884 'vars' => ''
14885 }, 'Parse::RecDescent::Rule' ),
14886 'bodyextensions' => bless( {
14887 'calls' => [
14888 'NIL',
14889 'STRING'
14890 ],
14891 'changed' => 0,
14892 'impcount' => 0,
14893 'line' => 76,
14894 'name' => 'bodyextensions',
14895 'opcount' => 0,
14896 'prods' => [
14897 bless( {
14898 'actcount' => 0,
14899 'dircount' => 0,
14900 'error' => undef,
14901 'items' => [
14902 bless( {
14903 'argcode' => undef,
14904 'implicit' => undef,
14905 'line' => 76,
14906 'lookahead' => 0,
14907 'matchrule' => 0,
14908 'subrule' => 'NIL'
14909 }, 'Parse::RecDescent::Subrule' )
14910 ],
14911 'line' => undef,
14912 'number' => 0,
14913 'patcount' => 0,
14914 'strcount' => 0,
14915 'uncommit' => undef
14916 }, 'Parse::RecDescent::Production' ),
14917 bless( {
14918 'actcount' => 0,
14919 'dircount' => 0,
14920 'error' => undef,
14921 'items' => [
14922 bless( {
14923 'argcode' => undef,
14924 'implicit' => undef,
14925 'line' => 76,
14926 'lookahead' => 0,
14927 'matchrule' => 0,
14928 'subrule' => 'STRING'
14929 }, 'Parse::RecDescent::Subrule' )
14930 ],
14931 'line' => 76,
14932 'number' => 1,
14933 'patcount' => 0,
14934 'strcount' => 0,
14935 'uncommit' => undef
14936 }, 'Parse::RecDescent::Production' )
14937 ],
14938 'vars' => ''
14939 }, 'Parse::RecDescent::Rule' ),
14940 'bodyextra' => bless( {
14941 'calls' => [
14942 'NIL',
14943 'STRING',
14944 'STRINGS'
14945 ],
14946 'changed' => 0,
14947 'impcount' => 0,
14948 'line' => 74,
14949 'name' => 'bodyextra',
14950 'opcount' => 0,
14951 'prods' => [
14952 bless( {
14953 'actcount' => 0,
14954 'dircount' => 0,
14955 'error' => undef,
14956 'items' => [
14957 bless( {
14958 'argcode' => undef,
14959 'implicit' => undef,
14960 'line' => 74,
14961 'lookahead' => 0,
14962 'matchrule' => 0,
14963 'subrule' => 'NIL'
14964 }, 'Parse::RecDescent::Subrule' )
14965 ],
14966 'line' => undef,
14967 'number' => 0,
14968 'patcount' => 0,
14969 'strcount' => 0,
14970 'uncommit' => undef
14971 }, 'Parse::RecDescent::Production' ),
14972 bless( {
14973 'actcount' => 0,
14974 'dircount' => 0,
14975 'error' => undef,
14976 'items' => [
14977 bless( {
14978 'argcode' => undef,
14979 'implicit' => undef,
14980 'line' => 74,
14981 'lookahead' => 0,
14982 'matchrule' => 0,
14983 'subrule' => 'STRING'
14984 }, 'Parse::RecDescent::Subrule' )
14985 ],
14986 'line' => 74,
14987 'number' => 1,
14988 'patcount' => 0,
14989 'strcount' => 0,
14990 'uncommit' => undef
14991 }, 'Parse::RecDescent::Production' ),
14992 bless( {
14993 'actcount' => 0,
14994 'dircount' => 0,
14995 'error' => undef,
14996 'items' => [
14997 bless( {
14998 'argcode' => undef,
14999 'implicit' => undef,
15000 'line' => 74,
15001 'lookahead' => 0,
15002 'matchrule' => 0,
15003 'subrule' => 'STRINGS'
15004 }, 'Parse::RecDescent::Subrule' )
15005 ],
15006 'line' => 74,
15007 'number' => 2,
15008 'patcount' => 0,
15009 'strcount' => 0,
15010 'uncommit' => undef
15011 }, 'Parse::RecDescent::Production' )
15012 ],
15013 'vars' => ''
15014 }, 'Parse::RecDescent::Rule' ),
15015 'bodyid' => bless( {
15016 'calls' => [
15017 'NIL',
15018 'STRING'
15019 ],
15020 'changed' => 0,
15021 'impcount' => 0,
15022 'line' => 68,
15023 'name' => 'bodyid',
15024 'opcount' => 0,
15025 'prods' => [
15026 bless( {
15027 'actcount' => 0,
15028 'dircount' => 0,
15029 'error' => undef,
15030 'items' => [
15031 bless( {
15032 'description' => '/[()]/',
15033 'hashname' => '__PATTERN1__',
15034 'ldelim' => '/',
15035 'line' => 68,
15036 'lookahead' => -1,
15037 'mod' => '',
15038 'pattern' => '[()]',
15039 'rdelim' => '/'
15040 }, 'Parse::RecDescent::Token' ),
15041 bless( {
15042 'argcode' => undef,
15043 'implicit' => undef,
15044 'line' => 68,
15045 'lookahead' => 0,
15046 'matchrule' => 0,
15047 'subrule' => 'NIL'
15048 }, 'Parse::RecDescent::Subrule' )
15049 ],
15050 'line' => undef,
15051 'number' => 0,
15052 'patcount' => 1,
15053 'strcount' => 0,
15054 'uncommit' => undef
15055 }, 'Parse::RecDescent::Production' ),
15056 bless( {
15057 'actcount' => 0,
15058 'dircount' => 0,
15059 'error' => undef,
15060 'items' => [
15061 bless( {
15062 'argcode' => undef,
15063 'implicit' => undef,
15064 'line' => 68,
15065 'lookahead' => 0,
15066 'matchrule' => 0,
15067 'subrule' => 'STRING'
15068 }, 'Parse::RecDescent::Subrule' )
15069 ],
15070 'line' => 68,
15071 'number' => 1,
15072 'patcount' => 0,
15073 'strcount' => 0,
15074 'uncommit' => undef
15075 }, 'Parse::RecDescent::Production' )
15076 ],
15077 'vars' => ''
15078 }, 'Parse::RecDescent::Rule' ),
15079 'bodylang' => bless( {
15080 'calls' => [
15081 'NIL',
15082 'STRING',
15083 'STRINGS'
15084 ],
15085 'changed' => 0,
15086 'impcount' => 0,
15087 'line' => 73,
15088 'name' => 'bodylang',
15089 'opcount' => 0,
15090 'prods' => [
15091 bless( {
15092 'actcount' => 0,
15093 'dircount' => 0,
15094 'error' => undef,
15095 'items' => [
15096 bless( {
15097 'argcode' => undef,
15098 'implicit' => undef,
15099 'line' => 73,
15100 'lookahead' => 0,
15101 'matchrule' => 0,
15102 'subrule' => 'NIL'
15103 }, 'Parse::RecDescent::Subrule' )
15104 ],
15105 'line' => undef,
15106 'number' => 0,
15107 'patcount' => 0,
15108 'strcount' => 0,
15109 'uncommit' => undef
15110 }, 'Parse::RecDescent::Production' ),
15111 bless( {
15112 'actcount' => 0,
15113 'dircount' => 0,
15114 'error' => undef,
15115 'items' => [
15116 bless( {
15117 'argcode' => undef,
15118 'implicit' => undef,
15119 'line' => 73,
15120 'lookahead' => 0,
15121 'matchrule' => 0,
15122 'subrule' => 'STRING'
15123 }, 'Parse::RecDescent::Subrule' )
15124 ],
15125 'line' => 73,
15126 'number' => 1,
15127 'patcount' => 0,
15128 'strcount' => 0,
15129 'uncommit' => undef
15130 }, 'Parse::RecDescent::Production' ),
15131 bless( {
15132 'actcount' => 0,
15133 'dircount' => 0,
15134 'error' => undef,
15135 'items' => [
15136 bless( {
15137 'argcode' => undef,
15138 'implicit' => undef,
15139 'line' => 73,
15140 'lookahead' => 0,
15141 'matchrule' => 0,
15142 'subrule' => 'STRINGS'
15143 }, 'Parse::RecDescent::Subrule' )
15144 ],
15145 'line' => 73,
15146 'number' => 2,
15147 'patcount' => 0,
15148 'strcount' => 0,
15149 'uncommit' => undef
15150 }, 'Parse::RecDescent::Production' )
15151 ],
15152 'vars' => ''
15153 }, 'Parse::RecDescent::Rule' ),
15154 'bodyloc' => bless( {
15155 'calls' => [
15156 'NIL',
15157 'STRING'
15158 ],
15159 'changed' => 0,
15160 'impcount' => 0,
15161 'line' => 75,
15162 'name' => 'bodyloc',
15163 'opcount' => 0,
15164 'prods' => [
15165 bless( {
15166 'actcount' => 0,
15167 'dircount' => 0,
15168 'error' => undef,
15169 'items' => [
15170 bless( {
15171 'argcode' => undef,
15172 'implicit' => undef,
15173 'line' => 75,
15174 'lookahead' => 0,
15175 'matchrule' => 0,
15176 'subrule' => 'NIL'
15177 }, 'Parse::RecDescent::Subrule' )
15178 ],
15179 'line' => undef,
15180 'number' => 0,
15181 'patcount' => 0,
15182 'strcount' => 0,
15183 'uncommit' => undef
15184 }, 'Parse::RecDescent::Production' ),
15185 bless( {
15186 'actcount' => 0,
15187 'dircount' => 0,
15188 'error' => undef,
15189 'items' => [
15190 bless( {
15191 'argcode' => undef,
15192 'implicit' => undef,
15193 'line' => 75,
15194 'lookahead' => 0,
15195 'matchrule' => 0,
15196 'subrule' => 'STRING'
15197 }, 'Parse::RecDescent::Subrule' )
15198 ],
15199 'line' => 75,
15200 'number' => 1,
15201 'patcount' => 0,
15202 'strcount' => 0,
15203 'uncommit' => undef
15204 }, 'Parse::RecDescent::Production' )
15205 ],
15206 'vars' => ''
15207 }, 'Parse::RecDescent::Rule' ),
15208 'bodyparms' => bless( {
15209 'calls' => [
15210 'NIL',
15211 'KVPAIRS'
15212 ],
15213 'changed' => 0,
15214 'impcount' => 0,
15215 'line' => 66,
15216 'name' => 'bodyparms',
15217 'opcount' => 0,
15218 'prods' => [
15219 bless( {
15220 'actcount' => 0,
15221 'dircount' => 0,
15222 'error' => undef,
15223 'items' => [
15224 bless( {
15225 'argcode' => undef,
15226 'implicit' => undef,
15227 'line' => 66,
15228 'lookahead' => 0,
15229 'matchrule' => 0,
15230 'subrule' => 'NIL'
15231 }, 'Parse::RecDescent::Subrule' )
15232 ],
15233 'line' => undef,
15234 'number' => 0,
15235 'patcount' => 0,
15236 'strcount' => 0,
15237 'uncommit' => undef
15238 }, 'Parse::RecDescent::Production' ),
15239 bless( {
15240 'actcount' => 0,
15241 'dircount' => 0,
15242 'error' => undef,
15243 'items' => [
15244 bless( {
15245 'argcode' => undef,
15246 'implicit' => undef,
15247 'line' => 66,
15248 'lookahead' => 0,
15249 'matchrule' => 0,
15250 'subrule' => 'KVPAIRS'
15251 }, 'Parse::RecDescent::Subrule' )
15252 ],
15253 'line' => 66,
15254 'number' => 1,
15255 'patcount' => 0,
15256 'strcount' => 0,
15257 'uncommit' => undef
15258 }, 'Parse::RecDescent::Production' )
15259 ],
15260 'vars' => ''
15261 }, 'Parse::RecDescent::Rule' ),
15262 'bodysize' => bless( {
15263 'calls' => [
15264 'NIL',
15265 'NUMBER'
15266 ],
15267 'changed' => 0,
15268 'impcount' => 0,
15269 'line' => 70,
15270 'name' => 'bodysize',
15271 'opcount' => 0,
15272 'prods' => [
15273 bless( {
15274 'actcount' => 0,
15275 'dircount' => 0,
15276 'error' => undef,
15277 'items' => [
15278 bless( {
15279 'description' => '/[()]/',
15280 'hashname' => '__PATTERN1__',
15281 'ldelim' => '/',
15282 'line' => 70,
15283 'lookahead' => -1,
15284 'mod' => '',
15285 'pattern' => '[()]',
15286 'rdelim' => '/'
15287 }, 'Parse::RecDescent::Token' ),
15288 bless( {
15289 'argcode' => undef,
15290 'implicit' => undef,
15291 'line' => 70,
15292 'lookahead' => 0,
15293 'matchrule' => 0,
15294 'subrule' => 'NIL'
15295 }, 'Parse::RecDescent::Subrule' )
15296 ],
15297 'line' => undef,
15298 'number' => 0,
15299 'patcount' => 1,
15300 'strcount' => 0,
15301 'uncommit' => undef
15302 }, 'Parse::RecDescent::Production' ),
15303 bless( {
15304 'actcount' => 0,
15305 'dircount' => 0,
15306 'error' => undef,
15307 'items' => [
15308 bless( {
15309 'argcode' => undef,
15310 'implicit' => undef,
15311 'line' => 70,
15312 'lookahead' => 0,
15313 'matchrule' => 0,
15314 'subrule' => 'NUMBER'
15315 }, 'Parse::RecDescent::Subrule' )
15316 ],
15317 'line' => 70,
15318 'number' => 1,
15319 'patcount' => 0,
15320 'strcount' => 0,
15321 'uncommit' => undef
15322 }, 'Parse::RecDescent::Production' )
15323 ],
15324 'vars' => ''
15325 }, 'Parse::RecDescent::Rule' ),
15326 'bodystructure' => bless( {
15327 'calls' => [
15328 'part'
15329 ],
15330 'changed' => 0,
15331 'impcount' => 0,
15332 'line' => 183,
15333 'name' => 'bodystructure',
15334 'opcount' => 0,
15335 'prods' => [
15336 bless( {
15337 'actcount' => 1,
15338 'dircount' => 0,
15339 'error' => undef,
15340 'items' => [
15341 bless( {
15342 'description' => '\'(\'',
15343 'hashname' => '__STRING1__',
15344 'line' => 183,
15345 'lookahead' => 0,
15346 'pattern' => '('
15347 }, 'Parse::RecDescent::InterpLit' ),
15348 bless( {
15349 'argcode' => undef,
15350 'expected' => undef,
15351 'line' => 183,
15352 'lookahead' => 0,
15353 'matchrule' => 0,
15354 'max' => 100000000,
15355 'min' => 1,
15356 'repspec' => 's',
15357 'subrule' => 'part'
15358 }, 'Parse::RecDescent::Repetition' ),
15359 bless( {
15360 'description' => '\')\'',
15361 'hashname' => '__STRING2__',
15362 'line' => 183,
15363 'lookahead' => 0,
15364 'pattern' => ')'
15365 }, 'Parse::RecDescent::InterpLit' ),
15366 bless( {
15367 'code' => '{ $return = $item{\'part(s)\'} }',
15368 'hashname' => '__ACTION1__',
15369 'line' => 184,
15370 'lookahead' => 0
15371 }, 'Parse::RecDescent::Action' )
15372 ],
15373 'line' => undef,
15374 'number' => 0,
15375 'patcount' => 0,
15376 'strcount' => 2,
15377 'uncommit' => undef
15378 }, 'Parse::RecDescent::Production' )
15379 ],
15380 'vars' => ''
15381 }, 'Parse::RecDescent::Rule' ),
15382 'bodysubtype' => bless( {
15383 'calls' => [
15384 'PLAIN',
15385 'HTML',
15386 'NIL',
15387 'STRING'
15388 ],
15389 'changed' => 0,
15390 'impcount' => 0,
15391 'line' => 54,
15392 'name' => 'bodysubtype',
15393 'opcount' => 0,
15394 'prods' => [
15395 bless( {
15396 'actcount' => 0,
15397 'dircount' => 0,
15398 'error' => undef,
15399 'items' => [
15400 bless( {
15401 'argcode' => undef,
15402 'implicit' => undef,
15403 'line' => 54,
15404 'lookahead' => 0,
15405 'matchrule' => 0,
15406 'subrule' => 'PLAIN'
15407 }, 'Parse::RecDescent::Subrule' )
15408 ],
15409 'line' => undef,
15410 'number' => 0,
15411 'patcount' => 0,
15412 'strcount' => 0,
15413 'uncommit' => undef
15414 }, 'Parse::RecDescent::Production' ),
15415 bless( {
15416 'actcount' => 0,
15417 'dircount' => 0,
15418 'error' => undef,
15419 'items' => [
15420 bless( {
15421 'argcode' => undef,
15422 'implicit' => undef,
15423 'line' => 54,
15424 'lookahead' => 0,
15425 'matchrule' => 0,
15426 'subrule' => 'HTML'
15427 }, 'Parse::RecDescent::Subrule' )
15428 ],
15429 'line' => 54,
15430 'number' => 1,
15431 'patcount' => 0,
15432 'strcount' => 0,
15433 'uncommit' => undef
15434 }, 'Parse::RecDescent::Production' ),
15435 bless( {
15436 'actcount' => 0,
15437 'dircount' => 0,
15438 'error' => undef,
15439 'items' => [
15440 bless( {
15441 'argcode' => undef,
15442 'implicit' => undef,
15443 'line' => 54,
15444 'lookahead' => 0,
15445 'matchrule' => 0,
15446 'subrule' => 'NIL'
15447 }, 'Parse::RecDescent::Subrule' )
15448 ],
15449 'line' => 54,
15450 'number' => 2,
15451 'patcount' => 0,
15452 'strcount' => 0,
15453 'uncommit' => undef
15454 }, 'Parse::RecDescent::Production' ),
15455 bless( {
15456 'actcount' => 0,
15457 'dircount' => 0,
15458 'error' => undef,
15459 'items' => [
15460 bless( {
15461 'argcode' => undef,
15462 'implicit' => undef,
15463 'line' => 54,
15464 'lookahead' => 0,
15465 'matchrule' => 0,
15466 'subrule' => 'STRING'
15467 }, 'Parse::RecDescent::Subrule' )
15468 ],
15469 'line' => 54,
15470 'number' => 3,
15471 'patcount' => 0,
15472 'strcount' => 0,
15473 'uncommit' => undef
15474 }, 'Parse::RecDescent::Production' )
15475 ],
15476 'vars' => ''
15477 }, 'Parse::RecDescent::Rule' ),
15478 'bodytype' => bless( {
15479 'calls' => [
15480 'STRING'
15481 ],
15482 'changed' => 0,
15483 'impcount' => 0,
15484 'line' => 65,
15485 'name' => 'bodytype',
15486 'opcount' => 0,
15487 'prods' => [
15488 bless( {
15489 'actcount' => 0,
15490 'dircount' => 0,
15491 'error' => undef,
15492 'items' => [
15493 bless( {
15494 'argcode' => undef,
15495 'implicit' => undef,
15496 'line' => 65,
15497 'lookahead' => 0,
15498 'matchrule' => 0,
15499 'subrule' => 'STRING'
15500 }, 'Parse::RecDescent::Subrule' )
15501 ],
15502 'line' => undef,
15503 'number' => 0,
15504 'patcount' => 0,
15505 'strcount' => 0,
15506 'uncommit' => undef
15507 }, 'Parse::RecDescent::Production' )
15508 ],
15509 'vars' => ''
15510 }, 'Parse::RecDescent::Rule' ),
15511 'cc' => bless( {
15512 'calls' => [
15513 'ADDRESSES'
15514 ],
15515 'changed' => 0,
15516 'impcount' => 0,
15517 'line' => 99,
15518 'name' => 'cc',
15519 'opcount' => 0,
15520 'prods' => [
15521 bless( {
15522 'actcount' => 0,
15523 'dircount' => 0,
15524 'error' => undef,
15525 'items' => [
15526 bless( {
15527 'argcode' => undef,
15528 'implicit' => undef,
15529 'line' => 99,
15530 'lookahead' => 0,
15531 'matchrule' => 0,
15532 'subrule' => 'ADDRESSES'
15533 }, 'Parse::RecDescent::Subrule' )
15534 ],
15535 'line' => undef,
15536 'number' => 0,
15537 'patcount' => 0,
15538 'strcount' => 0,
15539 'uncommit' => undef
15540 }, 'Parse::RecDescent::Production' )
15541 ],
15542 'vars' => ''
15543 }, 'Parse::RecDescent::Rule' ),
15544 'date' => bless( {
15545 'calls' => [
15546 'NIL',
15547 'STRING'
15548 ],
15549 'changed' => 0,
15550 'impcount' => 0,
15551 'line' => 94,
15552 'name' => 'date',
15553 'opcount' => 0,
15554 'prods' => [
15555 bless( {
15556 'actcount' => 0,
15557 'dircount' => 0,
15558 'error' => undef,
15559 'items' => [
15560 bless( {
15561 'argcode' => undef,
15562 'implicit' => undef,
15563 'line' => 94,
15564 'lookahead' => 0,
15565 'matchrule' => 0,
15566 'subrule' => 'NIL'
15567 }, 'Parse::RecDescent::Subrule' )
15568 ],
15569 'line' => undef,
15570 'number' => 0,
15571 'patcount' => 0,
15572 'strcount' => 0,
15573 'uncommit' => undef
15574 }, 'Parse::RecDescent::Production' ),
15575 bless( {
15576 'actcount' => 0,
15577 'dircount' => 0,
15578 'error' => undef,
15579 'items' => [
15580 bless( {
15581 'argcode' => undef,
15582 'implicit' => undef,
15583 'line' => 94,
15584 'lookahead' => 0,
15585 'matchrule' => 0,
15586 'subrule' => 'STRING'
15587 }, 'Parse::RecDescent::Subrule' )
15588 ],
15589 'line' => 94,
15590 'number' => 1,
15591 'patcount' => 0,
15592 'strcount' => 0,
15593 'uncommit' => undef
15594 }, 'Parse::RecDescent::Production' )
15595 ],
15596 'vars' => ''
15597 }, 'Parse::RecDescent::Rule' ),
15598 'envelope' => bless( {
15599 'calls' => [
15600 'envelopestruct'
15601 ],
15602 'changed' => 0,
15603 'impcount' => 0,
15604 'line' => 189,
15605 'name' => 'envelope',
15606 'opcount' => 0,
15607 'prods' => [
15608 bless( {
15609 'actcount' => 1,
15610 'dircount' => 0,
15611 'error' => undef,
15612 'items' => [
15613 bless( {
15614 'description' => '/.*?\\\\(.*?ENVELOPE/',
15615 'hashname' => '__PATTERN1__',
15616 'ldelim' => '/',
15617 'line' => 189,
15618 'lookahead' => 0,
15619 'mod' => '',
15620 'pattern' => '.*?\\(.*?ENVELOPE',
15621 'rdelim' => '/'
15622 }, 'Parse::RecDescent::Token' ),
15623 bless( {
15624 'argcode' => undef,
15625 'implicit' => undef,
15626 'line' => 189,
15627 'lookahead' => 0,
15628 'matchrule' => 0,
15629 'subrule' => 'envelopestruct'
15630 }, 'Parse::RecDescent::Subrule' ),
15631 bless( {
15632 'description' => '/.*\\\\)/',
15633 'hashname' => '__PATTERN2__',
15634 'ldelim' => '/',
15635 'line' => 189,
15636 'lookahead' => 0,
15637 'mod' => '',
15638 'pattern' => '.*\\)',
15639 'rdelim' => '/'
15640 }, 'Parse::RecDescent::Token' ),
15641 bless( {
15642 'code' => '{ $return = $item{envelopestruct} }',
15643 'hashname' => '__ACTION1__',
15644 'line' => 190,
15645 'lookahead' => 0
15646 }, 'Parse::RecDescent::Action' )
15647 ],
15648 'line' => undef,
15649 'number' => 0,
15650 'patcount' => 2,
15651 'strcount' => 0,
15652 'uncommit' => undef
15653 }, 'Parse::RecDescent::Production' )
15654 ],
15655 'vars' => ''
15656 }, 'Parse::RecDescent::Rule' ),
15657 'envelopestruct' => bless( {
15658 'calls' => [
15659 'date',
15660 'subject',
15661 'from',
15662 'sender',
15663 'replyto',
15664 'to',
15665 'cc',
15666 'bcc',
15667 'inreplyto',
15668 'messageid'
15669 ],
15670 'changed' => 0,
15671 'impcount' => 0,
15672 'line' => 106,
15673 'name' => 'envelopestruct',
15674 'opcount' => 0,
15675 'prods' => [
15676 bless( {
15677 'actcount' => 1,
15678 'dircount' => 0,
15679 'error' => undef,
15680 'items' => [
15681 bless( {
15682 'description' => '\'(\'',
15683 'hashname' => '__STRING1__',
15684 'line' => 106,
15685 'lookahead' => 0,
15686 'pattern' => '('
15687 }, 'Parse::RecDescent::InterpLit' ),
15688 bless( {
15689 'argcode' => undef,
15690 'implicit' => undef,
15691 'line' => 106,
15692 'lookahead' => 0,
15693 'matchrule' => 0,
15694 'subrule' => 'date'
15695 }, 'Parse::RecDescent::Subrule' ),
15696 bless( {
15697 'argcode' => undef,
15698 'implicit' => undef,
15699 'line' => 106,
15700 'lookahead' => 0,
15701 'matchrule' => 0,
15702 'subrule' => 'subject'
15703 }, 'Parse::RecDescent::Subrule' ),
15704 bless( {
15705 'argcode' => undef,
15706 'implicit' => undef,
15707 'line' => 106,
15708 'lookahead' => 0,
15709 'matchrule' => 0,
15710 'subrule' => 'from'
15711 }, 'Parse::RecDescent::Subrule' ),
15712 bless( {
15713 'argcode' => undef,
15714 'implicit' => undef,
15715 'line' => 106,
15716 'lookahead' => 0,
15717 'matchrule' => 0,
15718 'subrule' => 'sender'
15719 }, 'Parse::RecDescent::Subrule' ),
15720 bless( {
15721 'argcode' => undef,
15722 'implicit' => undef,
15723 'line' => 106,
15724 'lookahead' => 0,
15725 'matchrule' => 0,
15726 'subrule' => 'replyto'
15727 }, 'Parse::RecDescent::Subrule' ),
15728 bless( {
15729 'argcode' => undef,
15730 'implicit' => undef,
15731 'line' => 106,
15732 'lookahead' => 0,
15733 'matchrule' => 0,
15734 'subrule' => 'to'
15735 }, 'Parse::RecDescent::Subrule' ),
15736 bless( {
15737 'argcode' => undef,
15738 'implicit' => undef,
15739 'line' => 106,
15740 'lookahead' => 0,
15741 'matchrule' => 0,
15742 'subrule' => 'cc'
15743 }, 'Parse::RecDescent::Subrule' ),
15744 bless( {
15745 'argcode' => undef,
15746 'implicit' => undef,
15747 'line' => 107,
15748 'lookahead' => 0,
15749 'matchrule' => 0,
15750 'subrule' => 'bcc'
15751 }, 'Parse::RecDescent::Subrule' ),
15752 bless( {
15753 'argcode' => undef,
15754 'implicit' => undef,
15755 'line' => 107,
15756 'lookahead' => 0,
15757 'matchrule' => 0,
15758 'subrule' => 'inreplyto'
15759 }, 'Parse::RecDescent::Subrule' ),
15760 bless( {
15761 'argcode' => undef,
15762 'implicit' => undef,
15763 'line' => 107,
15764 'lookahead' => 0,
15765 'matchrule' => 0,
15766 'subrule' => 'messageid'
15767 }, 'Parse::RecDescent::Subrule' ),
15768 bless( {
15769 'description' => '\')\'',
15770 'hashname' => '__STRING2__',
15771 'line' => 107,
15772 'lookahead' => 0,
15773 'pattern' => ')'
15774 }, 'Parse::RecDescent::InterpLit' ),
15775 bless( {
15776 'code' => '{ $return = bless {}, "Mail::IMAPClient::BodyStructure::Envelope";
15777 $return->{$_} = $item{$_}
15778 for qw/date subject from sender replyto to cc/
15779 , qw/bcc inreplyto messageid/;
15780 1;
15781 }',
15782 'hashname' => '__ACTION1__',
15783 'line' => 108,
15784 'lookahead' => 0
15785 }, 'Parse::RecDescent::Action' )
15786 ],
15787 'line' => undef,
15788 'number' => 0,
15789 'patcount' => 0,
15790 'strcount' => 2,
15791 'uncommit' => undef
15792 }, 'Parse::RecDescent::Production' )
15793 ],
15794 'vars' => ''
15795 }, 'Parse::RecDescent::Rule' ),
15796 'from' => bless( {
15797 'calls' => [
15798 'ADDRESSES'
15799 ],
15800 'changed' => 0,
15801 'impcount' => 0,
15802 'line' => 101,
15803 'name' => 'from',
15804 'opcount' => 0,
15805 'prods' => [
15806 bless( {
15807 'actcount' => 0,
15808 'dircount' => 0,
15809 'error' => undef,
15810 'items' => [
15811 bless( {
15812 'argcode' => undef,
15813 'implicit' => undef,
15814 'line' => 101,
15815 'lookahead' => 0,
15816 'matchrule' => 0,
15817 'subrule' => 'ADDRESSES'
15818 }, 'Parse::RecDescent::Subrule' )
15819 ],
15820 'line' => undef,
15821 'number' => 0,
15822 'patcount' => 0,
15823 'strcount' => 0,
15824 'uncommit' => undef
15825 }, 'Parse::RecDescent::Production' )
15826 ],
15827 'vars' => ''
15828 }, 'Parse::RecDescent::Rule' ),
15829 'hostname' => bless( {
15830 'calls' => [
15831 'NIL',
15832 'STRING'
15833 ],
15834 'changed' => 0,
15835 'impcount' => 0,
15836 'line' => 81,
15837 'name' => 'hostname',
15838 'opcount' => 0,
15839 'prods' => [
15840 bless( {
15841 'actcount' => 0,
15842 'dircount' => 0,
15843 'error' => undef,
15844 'items' => [
15845 bless( {
15846 'argcode' => undef,
15847 'implicit' => undef,
15848 'line' => 81,
15849 'lookahead' => 0,
15850 'matchrule' => 0,
15851 'subrule' => 'NIL'
15852 }, 'Parse::RecDescent::Subrule' )
15853 ],
15854 'line' => undef,
15855 'number' => 0,
15856 'patcount' => 0,
15857 'strcount' => 0,
15858 'uncommit' => undef
15859 }, 'Parse::RecDescent::Production' ),
15860 bless( {
15861 'actcount' => 0,
15862 'dircount' => 0,
15863 'error' => undef,
15864 'items' => [
15865 bless( {
15866 'argcode' => undef,
15867 'implicit' => undef,
15868 'line' => 81,
15869 'lookahead' => 0,
15870 'matchrule' => 0,
15871 'subrule' => 'STRING'
15872 }, 'Parse::RecDescent::Subrule' )
15873 ],
15874 'line' => 81,
15875 'number' => 1,
15876 'patcount' => 0,
15877 'strcount' => 0,
15878 'uncommit' => undef
15879 }, 'Parse::RecDescent::Production' )
15880 ],
15881 'vars' => ''
15882 }, 'Parse::RecDescent::Rule' ),
15883 'inreplyto' => bless( {
15884 'calls' => [
15885 'NIL',
15886 'STRING'
15887 ],
15888 'changed' => 0,
15889 'impcount' => 0,
15890 'line' => 92,
15891 'name' => 'inreplyto',
15892 'opcount' => 0,
15893 'prods' => [
15894 bless( {
15895 'actcount' => 0,
15896 'dircount' => 0,
15897 'error' => undef,
15898 'items' => [
15899 bless( {
15900 'argcode' => undef,
15901 'implicit' => undef,
15902 'line' => 92,
15903 'lookahead' => 0,
15904 'matchrule' => 0,
15905 'subrule' => 'NIL'
15906 }, 'Parse::RecDescent::Subrule' )
15907 ],
15908 'line' => undef,
15909 'number' => 0,
15910 'patcount' => 0,
15911 'strcount' => 0,
15912 'uncommit' => undef
15913 }, 'Parse::RecDescent::Production' ),
15914 bless( {
15915 'actcount' => 0,
15916 'dircount' => 0,
15917 'error' => undef,
15918 'items' => [
15919 bless( {
15920 'argcode' => undef,
15921 'implicit' => undef,
15922 'line' => 92,
15923 'lookahead' => 0,
15924 'matchrule' => 0,
15925 'subrule' => 'STRING'
15926 }, 'Parse::RecDescent::Subrule' )
15927 ],
15928 'line' => 92,
15929 'number' => 1,
15930 'patcount' => 0,
15931 'strcount' => 0,
15932 'uncommit' => undef
15933 }, 'Parse::RecDescent::Production' )
15934 ],
15935 'vars' => ''
15936 }, 'Parse::RecDescent::Rule' ),
15937 'key' => bless( {
15938 'calls' => [
15939 'STRING'
15940 ],
15941 'changed' => 0,
15942 'impcount' => 0,
15943 'line' => 56,
15944 'name' => 'key',
15945 'opcount' => 0,
15946 'prods' => [
15947 bless( {
15948 'actcount' => 0,
15949 'dircount' => 0,
15950 'error' => undef,
15951 'items' => [
15952 bless( {
15953 'argcode' => undef,
15954 'implicit' => undef,
15955 'line' => 56,
15956 'lookahead' => 0,
15957 'matchrule' => 0,
15958 'subrule' => 'STRING'
15959 }, 'Parse::RecDescent::Subrule' )
15960 ],
15961 'line' => undef,
15962 'number' => 0,
15963 'patcount' => 0,
15964 'strcount' => 0,
15965 'uncommit' => undef
15966 }, 'Parse::RecDescent::Production' )
15967 ],
15968 'vars' => ''
15969 }, 'Parse::RecDescent::Rule' ),
15970 'kvpair' => bless( {
15971 'calls' => [
15972 'key',
15973 'value'
15974 ],
15975 'changed' => 0,
15976 'impcount' => 0,
15977 'line' => 59,
15978 'name' => 'kvpair',
15979 'opcount' => 0,
15980 'prods' => [
15981 bless( {
15982 'actcount' => 1,
15983 'dircount' => 0,
15984 'error' => undef,
15985 'items' => [
15986 bless( {
15987 'description' => '\')\'',
15988 'hashname' => '__STRING1__',
15989 'line' => 59,
15990 'lookahead' => -1,
15991 'pattern' => ')'
15992 }, 'Parse::RecDescent::InterpLit' ),
15993 bless( {
15994 'argcode' => undef,
15995 'implicit' => undef,
15996 'line' => 59,
15997 'lookahead' => 0,
15998 'matchrule' => 0,
15999 'subrule' => 'key'
16000 }, 'Parse::RecDescent::Subrule' ),
16001 bless( {
16002 'argcode' => undef,
16003 'implicit' => undef,
16004 'line' => 59,
16005 'lookahead' => 0,
16006 'matchrule' => 0,
16007 'subrule' => 'value'
16008 }, 'Parse::RecDescent::Subrule' ),
16009 bless( {
16010 'code' => '{ $return = { $item{key} => $item{value} } }',
16011 'hashname' => '__ACTION1__',
16012 'line' => 60,
16013 'lookahead' => 0
16014 }, 'Parse::RecDescent::Action' )
16015 ],
16016 'line' => undef,
16017 'number' => 0,
16018 'patcount' => 0,
16019 'strcount' => 1,
16020 'uncommit' => undef
16021 }, 'Parse::RecDescent::Production' )
16022 ],
16023 'vars' => ''
16024 }, 'Parse::RecDescent::Rule' ),
16025 'mailboxname' => bless( {
16026 'calls' => [
16027 'NIL',
16028 'STRING'
16029 ],
16030 'changed' => 0,
16031 'impcount' => 0,
16032 'line' => 80,
16033 'name' => 'mailboxname',
16034 'opcount' => 0,
16035 'prods' => [
16036 bless( {
16037 'actcount' => 0,
16038 'dircount' => 0,
16039 'error' => undef,
16040 'items' => [
16041 bless( {
16042 'argcode' => undef,
16043 'implicit' => undef,
16044 'line' => 80,
16045 'lookahead' => 0,
16046 'matchrule' => 0,
16047 'subrule' => 'NIL'
16048 }, 'Parse::RecDescent::Subrule' )
16049 ],
16050 'line' => undef,
16051 'number' => 0,
16052 'patcount' => 0,
16053 'strcount' => 0,
16054 'uncommit' => undef
16055 }, 'Parse::RecDescent::Production' ),
16056 bless( {
16057 'actcount' => 0,
16058 'dircount' => 0,
16059 'error' => undef,
16060 'items' => [
16061 bless( {
16062 'argcode' => undef,
16063 'implicit' => undef,
16064 'line' => 80,
16065 'lookahead' => 0,
16066 'matchrule' => 0,
16067 'subrule' => 'STRING'
16068 }, 'Parse::RecDescent::Subrule' )
16069 ],
16070 'line' => 80,
16071 'number' => 1,
16072 'patcount' => 0,
16073 'strcount' => 0,
16074 'uncommit' => undef
16075 }, 'Parse::RecDescent::Production' )
16076 ],
16077 'vars' => ''
16078 }, 'Parse::RecDescent::Rule' ),
16079 'messageid' => bless( {
16080 'calls' => [
16081 'NIL',
16082 'STRING'
16083 ],
16084 'changed' => 0,
16085 'impcount' => 0,
16086 'line' => 93,
16087 'name' => 'messageid',
16088 'opcount' => 0,
16089 'prods' => [
16090 bless( {
16091 'actcount' => 0,
16092 'dircount' => 0,
16093 'error' => undef,
16094 'items' => [
16095 bless( {
16096 'argcode' => undef,
16097 'implicit' => undef,
16098 'line' => 93,
16099 'lookahead' => 0,
16100 'matchrule' => 0,
16101 'subrule' => 'NIL'
16102 }, 'Parse::RecDescent::Subrule' )
16103 ],
16104 'line' => undef,
16105 'number' => 0,
16106 'patcount' => 0,
16107 'strcount' => 0,
16108 'uncommit' => undef
16109 }, 'Parse::RecDescent::Production' ),
16110 bless( {
16111 'actcount' => 0,
16112 'dircount' => 0,
16113 'error' => undef,
16114 'items' => [
16115 bless( {
16116 'argcode' => undef,
16117 'implicit' => undef,
16118 'line' => 93,
16119 'lookahead' => 0,
16120 'matchrule' => 0,
16121 'subrule' => 'STRING'
16122 }, 'Parse::RecDescent::Subrule' )
16123 ],
16124 'line' => 93,
16125 'number' => 1,
16126 'patcount' => 0,
16127 'strcount' => 0,
16128 'uncommit' => undef
16129 }, 'Parse::RecDescent::Production' )
16130 ],
16131 'vars' => ''
16132 }, 'Parse::RecDescent::Rule' ),
16133 'multipart' => bless( {
16134 'calls' => [
16135 'subpart',
16136 'bodysubtype',
16137 'bodyparms',
16138 'bodydisp',
16139 'bodylang',
16140 'bodyloc',
16141 'bodyextra',
16142 'bodyextensions'
16143 ],
16144 'changed' => 0,
16145 'impcount' => 0,
16146 'line' => 163,
16147 'name' => 'multipart',
16148 'opcount' => 0,
16149 'prods' => [
16150 bless( {
16151 'actcount' => 1,
16152 'dircount' => 2,
16153 'error' => undef,
16154 'items' => [
16155 bless( {
16156 'argcode' => undef,
16157 'expected' => undef,
16158 'line' => 163,
16159 'lookahead' => 0,
16160 'matchrule' => 0,
16161 'max' => 100000000,
16162 'min' => 1,
16163 'repspec' => 's',
16164 'subrule' => 'subpart'
16165 }, 'Parse::RecDescent::Repetition' ),
16166 bless( {
16167 'code' => '$commit = 1',
16168 'hashname' => '__DIRECTIVE1__',
16169 'line' => 163,
16170 'lookahead' => 0,
16171 'name' => '<commit>'
16172 }, 'Parse::RecDescent::Directive' ),
16173 bless( {
16174 'argcode' => undef,
16175 'implicit' => undef,
16176 'line' => 163,
16177 'lookahead' => 0,
16178 'matchrule' => 0,
16179 'subrule' => 'bodysubtype'
16180 }, 'Parse::RecDescent::Subrule' ),
16181 bless( {
16182 'argcode' => undef,
16183 'expected' => undef,
16184 'line' => 164,
16185 'lookahead' => 0,
16186 'matchrule' => 0,
16187 'max' => 1,
16188 'min' => 0,
16189 'repspec' => '?',
16190 'subrule' => 'bodyparms'
16191 }, 'Parse::RecDescent::Repetition' ),
16192 bless( {
16193 'argcode' => undef,
16194 'expected' => undef,
16195 'line' => 164,
16196 'lookahead' => 0,
16197 'matchrule' => 0,
16198 'max' => 1,
16199 'min' => 0,
16200 'repspec' => '?',
16201 'subrule' => 'bodydisp'
16202 }, 'Parse::RecDescent::Repetition' ),
16203 bless( {
16204 'argcode' => undef,
16205 'expected' => undef,
16206 'line' => 164,
16207 'lookahead' => 0,
16208 'matchrule' => 0,
16209 'max' => 1,
16210 'min' => 0,
16211 'repspec' => '?',
16212 'subrule' => 'bodylang'
16213 }, 'Parse::RecDescent::Repetition' ),
16214 bless( {
16215 'argcode' => undef,
16216 'expected' => undef,
16217 'line' => 164,
16218 'lookahead' => 0,
16219 'matchrule' => 0,
16220 'max' => 1,
16221 'min' => 0,
16222 'repspec' => '?',
16223 'subrule' => 'bodyloc'
16224 }, 'Parse::RecDescent::Repetition' ),
16225 bless( {
16226 'argcode' => undef,
16227 'expected' => undef,
16228 'line' => 164,
16229 'lookahead' => 0,
16230 'matchrule' => 0,
16231 'max' => 1,
16232 'min' => 0,
16233 'repspec' => '?',
16234 'subrule' => 'bodyextra'
16235 }, 'Parse::RecDescent::Repetition' ),
16236 bless( {
16237 'argcode' => undef,
16238 'expected' => undef,
16239 'line' => 164,
16240 'lookahead' => 0,
16241 'matchrule' => 0,
16242 'max' => 100000000,
16243 'min' => 0,
16244 'repspec' => 's?',
16245 'subrule' => 'bodyextensions'
16246 }, 'Parse::RecDescent::Repetition' ),
16247 bless( {
16248 'code' => 'push @{$thisparser->{deferred}}, sub { $subpartCount = 0 };',
16249 'hashname' => '__DIRECTIVE2__',
16250 'line' => 165,
16251 'lookahead' => 0,
16252 'name' => '<defer:{ $subpartCount = 0 }>'
16253 }, 'Parse::RecDescent::Directive' ),
16254 bless( {
16255 'code' => '{ $return =
16256 { bodysubtype => $item{bodysubtype}
16257 , bodytype => \'MULTIPART\'
16258 , bodystructure => $item{\'subpart(s)\'}
16259 };
16260 take_optional_items($return, \\%item
16261 , qw/bodyparms bodydisp bodylang bodyloc bodyextra/);
16262 1;
16263 }',
16264 'hashname' => '__ACTION1__',
16265 'line' => 166,
16266 'lookahead' => 0
16267 }, 'Parse::RecDescent::Action' )
16268 ],
16269 'line' => undef,
16270 'number' => 0,
16271 'patcount' => 0,
16272 'strcount' => 0,
16273 'uncommit' => undef
16274 }, 'Parse::RecDescent::Production' )
16275 ],
16276 'vars' => ''
16277 }, 'Parse::RecDescent::Rule' ),
16278 'nestedmessage' => bless( {
16279 'calls' => [
16280 'rfc822message',
16281 'bodyparms',
16282 'bodyid',
16283 'bodydesc',
16284 'bodyenc',
16285 'bodysize',
16286 'envelopestruct',
16287 'bodystructure',
16288 'textlines',
16289 'bodyMD5',
16290 'bodydisp',
16291 'bodylang',
16292 'bodyextra'
16293 ],
16294 'changed' => 0,
16295 'impcount' => 0,
16296 'line' => 142,
16297 'name' => 'nestedmessage',
16298 'opcount' => 0,
16299 'prods' => [
16300 bless( {
16301 'actcount' => 1,
16302 'dircount' => 1,
16303 'error' => undef,
16304 'items' => [
16305 bless( {
16306 'argcode' => undef,
16307 'implicit' => undef,
16308 'line' => 142,
16309 'lookahead' => 0,
16310 'matchrule' => 0,
16311 'subrule' => 'rfc822message'
16312 }, 'Parse::RecDescent::Subrule' ),
16313 bless( {
16314 'code' => '$commit = 1',
16315 'hashname' => '__DIRECTIVE1__',
16316 'line' => 142,
16317 'lookahead' => 0,
16318 'name' => '<commit>'
16319 }, 'Parse::RecDescent::Directive' ),
16320 bless( {
16321 'argcode' => undef,
16322 'implicit' => undef,
16323 'line' => 142,
16324 'lookahead' => 0,
16325 'matchrule' => 0,
16326 'subrule' => 'bodyparms'
16327 }, 'Parse::RecDescent::Subrule' ),
16328 bless( {
16329 'argcode' => undef,
16330 'implicit' => undef,
16331 'line' => 142,
16332 'lookahead' => 0,
16333 'matchrule' => 0,
16334 'subrule' => 'bodyid'
16335 }, 'Parse::RecDescent::Subrule' ),
16336 bless( {
16337 'argcode' => undef,
16338 'implicit' => undef,
16339 'line' => 142,
16340 'lookahead' => 0,
16341 'matchrule' => 0,
16342 'subrule' => 'bodydesc'
16343 }, 'Parse::RecDescent::Subrule' ),
16344 bless( {
16345 'argcode' => undef,
16346 'implicit' => undef,
16347 'line' => 142,
16348 'lookahead' => 0,
16349 'matchrule' => 0,
16350 'subrule' => 'bodyenc'
16351 }, 'Parse::RecDescent::Subrule' ),
16352 bless( {
16353 'argcode' => undef,
16354 'implicit' => undef,
16355 'line' => 143,
16356 'lookahead' => 0,
16357 'matchrule' => 0,
16358 'subrule' => 'bodysize'
16359 }, 'Parse::RecDescent::Subrule' ),
16360 bless( {
16361 'argcode' => undef,
16362 'expected' => undef,
16363 'line' => 144,
16364 'lookahead' => 0,
16365 'matchrule' => 0,
16366 'max' => 1,
16367 'min' => 0,
16368 'repspec' => '?',
16369 'subrule' => 'envelopestruct'
16370 }, 'Parse::RecDescent::Repetition' ),
16371 bless( {
16372 'argcode' => undef,
16373 'expected' => undef,
16374 'line' => 144,
16375 'lookahead' => 0,
16376 'matchrule' => 0,
16377 'max' => 1,
16378 'min' => 0,
16379 'repspec' => '?',
16380 'subrule' => 'bodystructure'
16381 }, 'Parse::RecDescent::Repetition' ),
16382 bless( {
16383 'argcode' => undef,
16384 'expected' => undef,
16385 'line' => 144,
16386 'lookahead' => 0,
16387 'matchrule' => 0,
16388 'max' => 1,
16389 'min' => 0,
16390 'repspec' => '?',
16391 'subrule' => 'textlines'
16392 }, 'Parse::RecDescent::Repetition' ),
16393 bless( {
16394 'argcode' => undef,
16395 'expected' => undef,
16396 'line' => 145,
16397 'lookahead' => 0,
16398 'matchrule' => 0,
16399 'max' => 1,
16400 'min' => 0,
16401 'repspec' => '?',
16402 'subrule' => 'bodyMD5'
16403 }, 'Parse::RecDescent::Repetition' ),
16404 bless( {
16405 'argcode' => undef,
16406 'expected' => undef,
16407 'line' => 145,
16408 'lookahead' => 0,
16409 'matchrule' => 0,
16410 'max' => 1,
16411 'min' => 0,
16412 'repspec' => '?',
16413 'subrule' => 'bodydisp'
16414 }, 'Parse::RecDescent::Repetition' ),
16415 bless( {
16416 'argcode' => undef,
16417 'expected' => undef,
16418 'line' => 145,
16419 'lookahead' => 0,
16420 'matchrule' => 0,
16421 'max' => 1,
16422 'min' => 0,
16423 'repspec' => '?',
16424 'subrule' => 'bodylang'
16425 }, 'Parse::RecDescent::Repetition' ),
16426 bless( {
16427 'argcode' => undef,
16428 'expected' => undef,
16429 'line' => 145,
16430 'lookahead' => 0,
16431 'matchrule' => 0,
16432 'max' => 1,
16433 'min' => 0,
16434 'repspec' => '?',
16435 'subrule' => 'bodyextra'
16436 }, 'Parse::RecDescent::Repetition' ),
16437 bless( {
16438 'code' => '{
16439 $return = {};
16440 $return->{$_} = $item{$_}
16441 for qw/bodyparms bodyid bodydesc bodyenc bodysize/;
16442 # envelopestruct bodystructure textlines/;
16443  
16444 take_optional_items($return, \\%item
16445 , qw/envelopestruct bodystructure textlines/
16446 , qw/bodyMD5 bodydisp bodylang bodyextra/);
16447  
16448 merge_hash($return, $item{bodystructure}[0]);
16449 merge_hash($return, $item{basicfields});
16450 $return->{bodytype} = "MESSAGE" ;
16451 $return->{bodysubtype} = "RFC822" ;
16452 1;
16453 }',
16454 'hashname' => '__ACTION1__',
16455 'line' => 146,
16456 'lookahead' => 0
16457 }, 'Parse::RecDescent::Action' )
16458 ],
16459 'line' => undef,
16460 'number' => 0,
16461 'patcount' => 0,
16462 'strcount' => 0,
16463 'uncommit' => undef
16464 }, 'Parse::RecDescent::Production' )
16465 ],
16466 'vars' => ''
16467 }, 'Parse::RecDescent::Rule' ),
16468 'othertypemessage' => bless( {
16469 'calls' => [
16470 'bodytype',
16471 'basicfields',
16472 'bodyMD5',
16473 'bodydisp',
16474 'bodylang',
16475 'bodyextra'
16476 ],
16477 'changed' => 0,
16478 'impcount' => 0,
16479 'line' => 133,
16480 'name' => 'othertypemessage',
16481 'opcount' => 0,
16482 'prods' => [
16483 bless( {
16484 'actcount' => 1,
16485 'dircount' => 0,
16486 'error' => undef,
16487 'items' => [
16488 bless( {
16489 'argcode' => undef,
16490 'implicit' => undef,
16491 'line' => 133,
16492 'lookahead' => 0,
16493 'matchrule' => 0,
16494 'subrule' => 'bodytype'
16495 }, 'Parse::RecDescent::Subrule' ),
16496 bless( {
16497 'argcode' => undef,
16498 'implicit' => undef,
16499 'line' => 133,
16500 'lookahead' => 0,
16501 'matchrule' => 0,
16502 'subrule' => 'basicfields'
16503 }, 'Parse::RecDescent::Subrule' ),
16504 bless( {
16505 'argcode' => undef,
16506 'expected' => undef,
16507 'line' => 133,
16508 'lookahead' => 0,
16509 'matchrule' => 0,
16510 'max' => 1,
16511 'min' => 0,
16512 'repspec' => '?',
16513 'subrule' => 'bodyMD5'
16514 }, 'Parse::RecDescent::Repetition' ),
16515 bless( {
16516 'argcode' => undef,
16517 'expected' => undef,
16518 'line' => 133,
16519 'lookahead' => 0,
16520 'matchrule' => 0,
16521 'max' => 1,
16522 'min' => 0,
16523 'repspec' => '?',
16524 'subrule' => 'bodydisp'
16525 }, 'Parse::RecDescent::Repetition' ),
16526 bless( {
16527 'argcode' => undef,
16528 'expected' => undef,
16529 'line' => 134,
16530 'lookahead' => 0,
16531 'matchrule' => 0,
16532 'max' => 1,
16533 'min' => 0,
16534 'repspec' => '?',
16535 'subrule' => 'bodylang'
16536 }, 'Parse::RecDescent::Repetition' ),
16537 bless( {
16538 'argcode' => undef,
16539 'expected' => undef,
16540 'line' => 134,
16541 'lookahead' => 0,
16542 'matchrule' => 0,
16543 'max' => 1,
16544 'min' => 0,
16545 'repspec' => '?',
16546 'subrule' => 'bodyextra'
16547 }, 'Parse::RecDescent::Repetition' ),
16548 bless( {
16549 'code' => '{ $return = { bodytype => $item{bodytype} };
16550 take_optional_items($return, \\%item
16551 , qw/bodyMD5 bodydisp bodylang bodyextra/ );
16552 merge_hash($return, $item{basicfields});
16553 1;
16554 }',
16555 'hashname' => '__ACTION1__',
16556 'line' => 135,
16557 'lookahead' => 0
16558 }, 'Parse::RecDescent::Action' )
16559 ],
16560 'line' => undef,
16561 'number' => 0,
16562 'patcount' => 0,
16563 'strcount' => 0,
16564 'uncommit' => undef
16565 }, 'Parse::RecDescent::Production' )
16566 ],
16567 'vars' => ''
16568 }, 'Parse::RecDescent::Rule' ),
16569 'part' => bless( {
16570 'calls' => [
16571 'multipart',
16572 'textmessage',
16573 'nestedmessage',
16574 'othertypemessage'
16575 ],
16576 'changed' => 0,
16577 'impcount' => 0,
16578 'line' => 178,
16579 'name' => 'part',
16580 'opcount' => 0,
16581 'prods' => [
16582 bless( {
16583 'actcount' => 1,
16584 'dircount' => 0,
16585 'error' => undef,
16586 'items' => [
16587 bless( {
16588 'argcode' => undef,
16589 'implicit' => undef,
16590 'line' => 178,
16591 'lookahead' => 0,
16592 'matchrule' => 0,
16593 'subrule' => 'multipart'
16594 }, 'Parse::RecDescent::Subrule' ),
16595 bless( {
16596 'code' => '{ $return = bless $item{multipart}, $mibs }',
16597 'hashname' => '__ACTION1__',
16598 'line' => 178,
16599 'lookahead' => 0
16600 }, 'Parse::RecDescent::Action' )
16601 ],
16602 'line' => undef,
16603 'number' => 0,
16604 'patcount' => 0,
16605 'strcount' => 0,
16606 'uncommit' => undef
16607 }, 'Parse::RecDescent::Production' ),
16608 bless( {
16609 'actcount' => 1,
16610 'dircount' => 0,
16611 'error' => undef,
16612 'items' => [
16613 bless( {
16614 'argcode' => undef,
16615 'implicit' => undef,
16616 'line' => 179,
16617 'lookahead' => 0,
16618 'matchrule' => 0,
16619 'subrule' => 'textmessage'
16620 }, 'Parse::RecDescent::Subrule' ),
16621 bless( {
16622 'code' => '{ $return = bless $item{textmessage}, $mibs }',
16623 'hashname' => '__ACTION1__',
16624 'line' => 179,
16625 'lookahead' => 0
16626 }, 'Parse::RecDescent::Action' )
16627 ],
16628 'line' => 179,
16629 'number' => 1,
16630 'patcount' => 0,
16631 'strcount' => 0,
16632 'uncommit' => undef
16633 }, 'Parse::RecDescent::Production' ),
16634 bless( {
16635 'actcount' => 1,
16636 'dircount' => 0,
16637 'error' => undef,
16638 'items' => [
16639 bless( {
16640 'argcode' => undef,
16641 'implicit' => undef,
16642 'line' => 180,
16643 'lookahead' => 0,
16644 'matchrule' => 0,
16645 'subrule' => 'nestedmessage'
16646 }, 'Parse::RecDescent::Subrule' ),
16647 bless( {
16648 'code' => '{ $return = bless $item{nestedmessage}, $mibs }',
16649 'hashname' => '__ACTION1__',
16650 'line' => 180,
16651 'lookahead' => 0
16652 }, 'Parse::RecDescent::Action' )
16653 ],
16654 'line' => 180,
16655 'number' => 2,
16656 'patcount' => 0,
16657 'strcount' => 0,
16658 'uncommit' => undef
16659 }, 'Parse::RecDescent::Production' ),
16660 bless( {
16661 'actcount' => 1,
16662 'dircount' => 0,
16663 'error' => undef,
16664 'items' => [
16665 bless( {
16666 'argcode' => undef,
16667 'implicit' => undef,
16668 'line' => 181,
16669 'lookahead' => 0,
16670 'matchrule' => 0,
16671 'subrule' => 'othertypemessage'
16672 }, 'Parse::RecDescent::Subrule' ),
16673 bless( {
16674 'code' => '{ $return = bless $item{othertypemessage}, $mibs }',
16675 'hashname' => '__ACTION1__',
16676 'line' => 181,
16677 'lookahead' => 0
16678 }, 'Parse::RecDescent::Action' )
16679 ],
16680 'line' => 181,
16681 'number' => 3,
16682 'patcount' => 0,
16683 'strcount' => 0,
16684 'uncommit' => undef
16685 }, 'Parse::RecDescent::Production' )
16686 ],
16687 'vars' => ''
16688 }, 'Parse::RecDescent::Rule' ),
16689 'personalname' => bless( {
16690 'calls' => [
16691 'NIL',
16692 'STRING'
16693 ],
16694 'changed' => 0,
16695 'impcount' => 0,
16696 'line' => 78,
16697 'name' => 'personalname',
16698 'opcount' => 0,
16699 'prods' => [
16700 bless( {
16701 'actcount' => 0,
16702 'dircount' => 0,
16703 'error' => undef,
16704 'items' => [
16705 bless( {
16706 'argcode' => undef,
16707 'implicit' => undef,
16708 'line' => 78,
16709 'lookahead' => 0,
16710 'matchrule' => 0,
16711 'subrule' => 'NIL'
16712 }, 'Parse::RecDescent::Subrule' )
16713 ],
16714 'line' => undef,
16715 'number' => 0,
16716 'patcount' => 0,
16717 'strcount' => 0,
16718 'uncommit' => undef
16719 }, 'Parse::RecDescent::Production' ),
16720 bless( {
16721 'actcount' => 0,
16722 'dircount' => 0,
16723 'error' => undef,
16724 'items' => [
16725 bless( {
16726 'argcode' => undef,
16727 'implicit' => undef,
16728 'line' => 78,
16729 'lookahead' => 0,
16730 'matchrule' => 0,
16731 'subrule' => 'STRING'
16732 }, 'Parse::RecDescent::Subrule' )
16733 ],
16734 'line' => 78,
16735 'number' => 1,
16736 'patcount' => 0,
16737 'strcount' => 0,
16738 'uncommit' => undef
16739 }, 'Parse::RecDescent::Production' )
16740 ],
16741 'vars' => ''
16742 }, 'Parse::RecDescent::Rule' ),
16743 'replyto' => bless( {
16744 'calls' => [
16745 'ADDRESSES'
16746 ],
16747 'changed' => 0,
16748 'impcount' => 0,
16749 'line' => 102,
16750 'name' => 'replyto',
16751 'opcount' => 0,
16752 'prods' => [
16753 bless( {
16754 'actcount' => 0,
16755 'dircount' => 0,
16756 'error' => undef,
16757 'items' => [
16758 bless( {
16759 'argcode' => undef,
16760 'implicit' => undef,
16761 'line' => 102,
16762 'lookahead' => 0,
16763 'matchrule' => 0,
16764 'subrule' => 'ADDRESSES'
16765 }, 'Parse::RecDescent::Subrule' )
16766 ],
16767 'line' => undef,
16768 'number' => 0,
16769 'patcount' => 0,
16770 'strcount' => 0,
16771 'uncommit' => undef
16772 }, 'Parse::RecDescent::Production' )
16773 ],
16774 'vars' => ''
16775 }, 'Parse::RecDescent::Rule' ),
16776 'rfc822message' => bless( {
16777 'calls' => [
16778 'MESSAGE',
16779 'RFC822'
16780 ],
16781 'changed' => 0,
16782 'impcount' => 0,
16783 'line' => 52,
16784 'name' => 'rfc822message',
16785 'opcount' => 0,
16786 'prods' => [
16787 bless( {
16788 'actcount' => 1,
16789 'dircount' => 0,
16790 'error' => undef,
16791 'items' => [
16792 bless( {
16793 'argcode' => undef,
16794 'implicit' => undef,
16795 'line' => 52,
16796 'lookahead' => 0,
16797 'matchrule' => 0,
16798 'subrule' => 'MESSAGE'
16799 }, 'Parse::RecDescent::Subrule' ),
16800 bless( {
16801 'argcode' => undef,
16802 'implicit' => undef,
16803 'line' => 52,
16804 'lookahead' => 0,
16805 'matchrule' => 0,
16806 'subrule' => 'RFC822'
16807 }, 'Parse::RecDescent::Subrule' ),
16808 bless( {
16809 'code' => '{ $return = "MESSAGE RFC822" }',
16810 'hashname' => '__ACTION1__',
16811 'line' => 52,
16812 'lookahead' => 0
16813 }, 'Parse::RecDescent::Action' )
16814 ],
16815 'line' => undef,
16816 'number' => 0,
16817 'patcount' => 0,
16818 'strcount' => 0,
16819 'uncommit' => undef
16820 }, 'Parse::RecDescent::Production' )
16821 ],
16822 'vars' => ''
16823 }, 'Parse::RecDescent::Rule' ),
16824 'sender' => bless( {
16825 'calls' => [
16826 'ADDRESSES'
16827 ],
16828 'changed' => 0,
16829 'impcount' => 0,
16830 'line' => 103,
16831 'name' => 'sender',
16832 'opcount' => 0,
16833 'prods' => [
16834 bless( {
16835 'actcount' => 0,
16836 'dircount' => 0,
16837 'error' => undef,
16838 'items' => [
16839 bless( {
16840 'argcode' => undef,
16841 'implicit' => undef,
16842 'line' => 103,
16843 'lookahead' => 0,
16844 'matchrule' => 0,
16845 'subrule' => 'ADDRESSES'
16846 }, 'Parse::RecDescent::Subrule' )
16847 ],
16848 'line' => undef,
16849 'number' => 0,
16850 'patcount' => 0,
16851 'strcount' => 0,
16852 'uncommit' => undef
16853 }, 'Parse::RecDescent::Production' )
16854 ],
16855 'vars' => ''
16856 }, 'Parse::RecDescent::Rule' ),
16857 'sourceroute' => bless( {
16858 'calls' => [
16859 'NIL',
16860 'STRING'
16861 ],
16862 'changed' => 0,
16863 'impcount' => 0,
16864 'line' => 79,
16865 'name' => 'sourceroute',
16866 'opcount' => 0,
16867 'prods' => [
16868 bless( {
16869 'actcount' => 0,
16870 'dircount' => 0,
16871 'error' => undef,
16872 'items' => [
16873 bless( {
16874 'argcode' => undef,
16875 'implicit' => undef,
16876 'line' => 79,
16877 'lookahead' => 0,
16878 'matchrule' => 0,
16879 'subrule' => 'NIL'
16880 }, 'Parse::RecDescent::Subrule' )
16881 ],
16882 'line' => undef,
16883 'number' => 0,
16884 'patcount' => 0,
16885 'strcount' => 0,
16886 'uncommit' => undef
16887 }, 'Parse::RecDescent::Production' ),
16888 bless( {
16889 'actcount' => 0,
16890 'dircount' => 0,
16891 'error' => undef,
16892 'items' => [
16893 bless( {
16894 'argcode' => undef,
16895 'implicit' => undef,
16896 'line' => 79,
16897 'lookahead' => 0,
16898 'matchrule' => 0,
16899 'subrule' => 'STRING'
16900 }, 'Parse::RecDescent::Subrule' )
16901 ],
16902 'line' => 79,
16903 'number' => 1,
16904 'patcount' => 0,
16905 'strcount' => 0,
16906 'uncommit' => undef
16907 }, 'Parse::RecDescent::Production' )
16908 ],
16909 'vars' => ''
16910 }, 'Parse::RecDescent::Rule' ),
16911 'start' => bless( {
16912 'calls' => [
16913 'part'
16914 ],
16915 'changed' => 0,
16916 'impcount' => 0,
16917 'line' => 186,
16918 'name' => 'start',
16919 'opcount' => 0,
16920 'prods' => [
16921 bless( {
16922 'actcount' => 1,
16923 'dircount' => 0,
16924 'error' => undef,
16925 'items' => [
16926 bless( {
16927 'description' => '/.*?\\\\(.*?BODYSTRUCTURE \\\\(/i',
16928 'hashname' => '__PATTERN1__',
16929 'ldelim' => '/',
16930 'line' => 186,
16931 'lookahead' => 0,
16932 'mod' => 'i',
16933 'pattern' => '.*?\\(.*?BODYSTRUCTURE \\(',
16934 'rdelim' => '/'
16935 }, 'Parse::RecDescent::Token' ),
16936 bless( {
16937 'argcode' => undef,
16938 'expected' => undef,
16939 'line' => 186,
16940 'lookahead' => 0,
16941 'matchrule' => 0,
16942 'max' => 1,
16943 'min' => 1,
16944 'repspec' => '1',
16945 'subrule' => 'part'
16946 }, 'Parse::RecDescent::Repetition' ),
16947 bless( {
16948 'description' => '/\\\\).*\\\\)\\\\r?\\\\n?/',
16949 'hashname' => '__PATTERN2__',
16950 'ldelim' => '/',
16951 'line' => 186,
16952 'lookahead' => 0,
16953 'mod' => '',
16954 'pattern' => '\\).*\\)\\r?\\n?',
16955 'rdelim' => '/'
16956 }, 'Parse::RecDescent::Token' ),
16957 bless( {
16958 'code' => '{ $return = $item{\'part(1)\'}[0] }',
16959 'hashname' => '__ACTION1__',
16960 'line' => 187,
16961 'lookahead' => 0
16962 }, 'Parse::RecDescent::Action' )
16963 ],
16964 'line' => undef,
16965 'number' => 0,
16966 'patcount' => 2,
16967 'strcount' => 0,
16968 'uncommit' => undef
16969 }, 'Parse::RecDescent::Production' )
16970 ],
16971 'vars' => ''
16972 }, 'Parse::RecDescent::Rule' ),
16973 'subject' => bless( {
16974 'calls' => [
16975 'NIL',
16976 'STRING'
16977 ],
16978 'changed' => 0,
16979 'impcount' => 0,
16980 'line' => 91,
16981 'name' => 'subject',
16982 'opcount' => 0,
16983 'prods' => [
16984 bless( {
16985 'actcount' => 0,
16986 'dircount' => 0,
16987 'error' => undef,
16988 'items' => [
16989 bless( {
16990 'argcode' => undef,
16991 'implicit' => undef,
16992 'line' => 91,
16993 'lookahead' => 0,
16994 'matchrule' => 0,
16995 'subrule' => 'NIL'
16996 }, 'Parse::RecDescent::Subrule' )
16997 ],
16998 'line' => undef,
16999 'number' => 0,
17000 'patcount' => 0,
17001 'strcount' => 0,
17002 'uncommit' => undef
17003 }, 'Parse::RecDescent::Production' ),
17004 bless( {
17005 'actcount' => 0,
17006 'dircount' => 0,
17007 'error' => undef,
17008 'items' => [
17009 bless( {
17010 'argcode' => undef,
17011 'implicit' => undef,
17012 'line' => 91,
17013 'lookahead' => 0,
17014 'matchrule' => 0,
17015 'subrule' => 'STRING'
17016 }, 'Parse::RecDescent::Subrule' )
17017 ],
17018 'line' => 91,
17019 'number' => 1,
17020 'patcount' => 0,
17021 'strcount' => 0,
17022 'uncommit' => undef
17023 }, 'Parse::RecDescent::Production' )
17024 ],
17025 'vars' => ''
17026 }, 'Parse::RecDescent::Rule' ),
17027 'subpart' => bless( {
17028 'calls' => [
17029 'part'
17030 ],
17031 'changed' => 0,
17032 'impcount' => 0,
17033 'line' => 176,
17034 'name' => 'subpart',
17035 'opcount' => 0,
17036 'prods' => [
17037 bless( {
17038 'actcount' => 1,
17039 'dircount' => 1,
17040 'error' => undef,
17041 'items' => [
17042 bless( {
17043 'description' => '\'(\'',
17044 'hashname' => '__STRING1__',
17045 'line' => 176,
17046 'lookahead' => 0,
17047 'pattern' => '('
17048 }, 'Parse::RecDescent::InterpLit' ),
17049 bless( {
17050 'argcode' => undef,
17051 'implicit' => undef,
17052 'line' => 176,
17053 'lookahead' => 0,
17054 'matchrule' => 0,
17055 'subrule' => 'part'
17056 }, 'Parse::RecDescent::Subrule' ),
17057 bless( {
17058 'description' => '\')\'',
17059 'hashname' => '__STRING2__',
17060 'line' => 176,
17061 'lookahead' => 0,
17062 'pattern' => ')'
17063 }, 'Parse::RecDescent::InterpLit' ),
17064 bless( {
17065 'code' => '{$return = $item{part}}',
17066 'hashname' => '__ACTION1__',
17067 'line' => 176,
17068 'lookahead' => 0
17069 }, 'Parse::RecDescent::Action' ),
17070 bless( {
17071 'code' => 'push @{$thisparser->{deferred}}, sub { ++$subpartCount; };',
17072 'hashname' => '__DIRECTIVE1__',
17073 'line' => 176,
17074 'lookahead' => 0,
17075 'name' => '<defer:{ ++$subpartCount; }>'
17076 }, 'Parse::RecDescent::Directive' )
17077 ],
17078 'line' => undef,
17079 'number' => 0,
17080 'patcount' => 0,
17081 'strcount' => 2,
17082 'uncommit' => undef
17083 }, 'Parse::RecDescent::Production' )
17084 ],
17085 'vars' => ''
17086 }, 'Parse::RecDescent::Rule' ),
17087 'textlines' => bless( {
17088 'calls' => [
17089 'NIL',
17090 'NUMBER'
17091 ],
17092 'changed' => 0,
17093 'impcount' => 0,
17094 'line' => 50,
17095 'name' => 'textlines',
17096 'opcount' => 0,
17097 'prods' => [
17098 bless( {
17099 'actcount' => 0,
17100 'dircount' => 0,
17101 'error' => undef,
17102 'items' => [
17103 bless( {
17104 'argcode' => undef,
17105 'implicit' => undef,
17106 'line' => 50,
17107 'lookahead' => 0,
17108 'matchrule' => 0,
17109 'subrule' => 'NIL'
17110 }, 'Parse::RecDescent::Subrule' )
17111 ],
17112 'line' => undef,
17113 'number' => 0,
17114 'patcount' => 0,
17115 'strcount' => 0,
17116 'uncommit' => undef
17117 }, 'Parse::RecDescent::Production' ),
17118 bless( {
17119 'actcount' => 0,
17120 'dircount' => 0,
17121 'error' => undef,
17122 'items' => [
17123 bless( {
17124 'argcode' => undef,
17125 'implicit' => undef,
17126 'line' => 50,
17127 'lookahead' => 0,
17128 'matchrule' => 0,
17129 'subrule' => 'NUMBER'
17130 }, 'Parse::RecDescent::Subrule' )
17131 ],
17132 'line' => 50,
17133 'number' => 1,
17134 'patcount' => 0,
17135 'strcount' => 0,
17136 'uncommit' => undef
17137 }, 'Parse::RecDescent::Production' )
17138 ],
17139 'vars' => ''
17140 }, 'Parse::RecDescent::Rule' ),
17141 'textmessage' => bless( {
17142 'calls' => [
17143 'TEXT',
17144 'basicfields',
17145 'textlines',
17146 'bodyMD5',
17147 'bodydisp',
17148 'bodylang',
17149 'bodyextra',
17150 'bodyextensions'
17151 ],
17152 'changed' => 0,
17153 'impcount' => 0,
17154 'line' => 123,
17155 'name' => 'textmessage',
17156 'opcount' => 0,
17157 'prods' => [
17158 bless( {
17159 'actcount' => 1,
17160 'dircount' => 1,
17161 'error' => undef,
17162 'items' => [
17163 bless( {
17164 'argcode' => undef,
17165 'implicit' => undef,
17166 'line' => 123,
17167 'lookahead' => 0,
17168 'matchrule' => 0,
17169 'subrule' => 'TEXT'
17170 }, 'Parse::RecDescent::Subrule' ),
17171 bless( {
17172 'code' => '$commit = 1',
17173 'hashname' => '__DIRECTIVE1__',
17174 'line' => 123,
17175 'lookahead' => 0,
17176 'name' => '<commit>'
17177 }, 'Parse::RecDescent::Directive' ),
17178 bless( {
17179 'argcode' => undef,
17180 'implicit' => undef,
17181 'line' => 123,
17182 'lookahead' => 0,
17183 'matchrule' => 0,
17184 'subrule' => 'basicfields'
17185 }, 'Parse::RecDescent::Subrule' ),
17186 bless( {
17187 'argcode' => undef,
17188 'expected' => undef,
17189 'line' => 123,
17190 'lookahead' => 0,
17191 'matchrule' => 0,
17192 'max' => 1,
17193 'min' => 0,
17194 'repspec' => '?',
17195 'subrule' => 'textlines'
17196 }, 'Parse::RecDescent::Repetition' ),
17197 bless( {
17198 'argcode' => undef,
17199 'expected' => undef,
17200 'line' => 123,
17201 'lookahead' => 0,
17202 'matchrule' => 0,
17203 'max' => 1,
17204 'min' => 0,
17205 'repspec' => '?',
17206 'subrule' => 'bodyMD5'
17207 }, 'Parse::RecDescent::Repetition' ),
17208 bless( {
17209 'argcode' => undef,
17210 'expected' => undef,
17211 'line' => 124,
17212 'lookahead' => 0,
17213 'matchrule' => 0,
17214 'max' => 1,
17215 'min' => 0,
17216 'repspec' => '?',
17217 'subrule' => 'bodydisp'
17218 }, 'Parse::RecDescent::Repetition' ),
17219 bless( {
17220 'argcode' => undef,
17221 'expected' => undef,
17222 'line' => 124,
17223 'lookahead' => 0,
17224 'matchrule' => 0,
17225 'max' => 1,
17226 'min' => 0,
17227 'repspec' => '?',
17228 'subrule' => 'bodylang'
17229 }, 'Parse::RecDescent::Repetition' ),
17230 bless( {
17231 'argcode' => undef,
17232 'expected' => undef,
17233 'line' => 124,
17234 'lookahead' => 0,
17235 'matchrule' => 0,
17236 'max' => 1,
17237 'min' => 0,
17238 'repspec' => '?',
17239 'subrule' => 'bodyextra'
17240 }, 'Parse::RecDescent::Repetition' ),
17241 bless( {
17242 'argcode' => undef,
17243 'expected' => undef,
17244 'line' => 124,
17245 'lookahead' => 0,
17246 'matchrule' => 0,
17247 'max' => 100000000,
17248 'min' => 0,
17249 'repspec' => 's?',
17250 'subrule' => 'bodyextensions'
17251 }, 'Parse::RecDescent::Repetition' ),
17252 bless( {
17253 'code' => '{
17254 $return = $item{basicfields} || {};
17255 $return->{bodytype} = \'TEXT\';
17256 take_optional_items($return, \\%item
17257 , qw/textlines bodyMD5 bodydisp bodylang bodyextra/);
17258 1;
17259 }',
17260 'hashname' => '__ACTION1__',
17261 'line' => 125,
17262 'lookahead' => 0
17263 }, 'Parse::RecDescent::Action' )
17264 ],
17265 'line' => undef,
17266 'number' => 0,
17267 'patcount' => 0,
17268 'strcount' => 0,
17269 'uncommit' => undef
17270 }, 'Parse::RecDescent::Production' )
17271 ],
17272 'vars' => ''
17273 }, 'Parse::RecDescent::Rule' ),
17274 'to' => bless( {
17275 'calls' => [
17276 'ADDRESSES'
17277 ],
17278 'changed' => 0,
17279 'impcount' => 0,
17280 'line' => 104,
17281 'name' => 'to',
17282 'opcount' => 0,
17283 'prods' => [
17284 bless( {
17285 'actcount' => 0,
17286 'dircount' => 0,
17287 'error' => undef,
17288 'items' => [
17289 bless( {
17290 'argcode' => undef,
17291 'implicit' => undef,
17292 'line' => 104,
17293 'lookahead' => 0,
17294 'matchrule' => 0,
17295 'subrule' => 'ADDRESSES'
17296 }, 'Parse::RecDescent::Subrule' )
17297 ],
17298 'line' => undef,
17299 'number' => 0,
17300 'patcount' => 0,
17301 'strcount' => 0,
17302 'uncommit' => undef
17303 }, 'Parse::RecDescent::Production' )
17304 ],
17305 'vars' => ''
17306 }, 'Parse::RecDescent::Rule' ),
17307 'value' => bless( {
17308 'calls' => [
17309 'NIL',
17310 'NUMBER',
17311 'STRING',
17312 'KVPAIRS'
17313 ],
17314 'changed' => 0,
17315 'impcount' => 0,
17316 'line' => 57,
17317 'name' => 'value',
17318 'opcount' => 0,
17319 'prods' => [
17320 bless( {
17321 'actcount' => 0,
17322 'dircount' => 0,
17323 'error' => undef,
17324 'items' => [
17325 bless( {
17326 'argcode' => undef,
17327 'implicit' => undef,
17328 'line' => 57,
17329 'lookahead' => 0,
17330 'matchrule' => 0,
17331 'subrule' => 'NIL'
17332 }, 'Parse::RecDescent::Subrule' )
17333 ],
17334 'line' => undef,
17335 'number' => 0,
17336 'patcount' => 0,
17337 'strcount' => 0,
17338 'uncommit' => undef
17339 }, 'Parse::RecDescent::Production' ),
17340 bless( {
17341 'actcount' => 0,
17342 'dircount' => 0,
17343 'error' => undef,
17344 'items' => [
17345 bless( {
17346 'argcode' => undef,
17347 'implicit' => undef,
17348 'line' => 57,
17349 'lookahead' => 0,
17350 'matchrule' => 0,
17351 'subrule' => 'NUMBER'
17352 }, 'Parse::RecDescent::Subrule' )
17353 ],
17354 'line' => 57,
17355 'number' => 1,
17356 'patcount' => 0,
17357 'strcount' => 0,
17358 'uncommit' => undef
17359 }, 'Parse::RecDescent::Production' ),
17360 bless( {
17361 'actcount' => 0,
17362 'dircount' => 0,
17363 'error' => undef,
17364 'items' => [
17365 bless( {
17366 'argcode' => undef,
17367 'implicit' => undef,
17368 'line' => 57,
17369 'lookahead' => 0,
17370 'matchrule' => 0,
17371 'subrule' => 'STRING'
17372 }, 'Parse::RecDescent::Subrule' )
17373 ],
17374 'line' => 57,
17375 'number' => 2,
17376 'patcount' => 0,
17377 'strcount' => 0,
17378 'uncommit' => undef
17379 }, 'Parse::RecDescent::Production' ),
17380 bless( {
17381 'actcount' => 0,
17382 'dircount' => 0,
17383 'error' => undef,
17384 'items' => [
17385 bless( {
17386 'argcode' => undef,
17387 'implicit' => undef,
17388 'line' => 57,
17389 'lookahead' => 0,
17390 'matchrule' => 0,
17391 'subrule' => 'KVPAIRS'
17392 }, 'Parse::RecDescent::Subrule' )
17393 ],
17394 'line' => 57,
17395 'number' => 3,
17396 'patcount' => 0,
17397 'strcount' => 0,
17398 'uncommit' => undef
17399 }, 'Parse::RecDescent::Production' )
17400 ],
17401 'vars' => ''
17402 }, 'Parse::RecDescent::Rule' )
17403 },
17404 'startcode' => ''
17405 }, 'Parse::RecDescent' );
17406 }
« IMAPClient.pm ↑ Summary IMAPClient/Thread.pm »