Branch Coverage

blib/lib/Mail/IMAPClient/Thread.pm
Criterion Covered Total %
branch 100 212 47.1


line true false branch
41 0 170 if defined $main::RD_TRACE
60 170 0 defined $_[4] ? :
62 170 0 $#arg & 1 ? :
77 0 170 if defined $main::RD_TRACE
90 0 170 if defined $main::RD_TRACE
98 25 145 if $lastsep = $1
84 86 unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::Thread::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:\d+)/)
100 84 0 if defined $lastsep
102 0 84 if defined $main::RD_TRACE
110 0 86 if defined $main::RD_TRACE
117 0 86 if defined $main::RD_TRACE
130 84 86 unless ($_matched or defined $score)
135 0 84 if defined $main::RD_TRACE
142 0 86 if (not defined $return and defined $score)
144 0 0 if defined $main::RD_TRACE
151 86 0 unless defined $return
152 0 86 if (defined $main::RD_TRACE)
177 0 2 if defined $main::RD_TRACE
196 2 0 defined $_[4] ? :
198 2 0 $#arg & 1 ? :
213 0 2 if defined $main::RD_TRACE
226 0 2 if defined $main::RD_TRACE
234 0 2 if $lastsep = $1
0 2 unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::Thread::skip)/'' if $lastsep = $1;/e and $text =~ /\A(?:^\* THREAD )/i)
236 0 0 if defined $lastsep
238 0 0 if defined $main::RD_TRACE
246 0 2 if defined $main::RD_TRACE
253 0 2 if defined $main::RD_TRACE
260 0 2 unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::Thread::thread, 0, 100000000, $_noactions, $expectation, sub { \@arg; } , undef)))
262 0 0 if defined $main::RD_TRACE
269 0 2 if defined $main::RD_TRACE
281 0 2 if defined $main::RD_TRACE
288 0 2 $_noactions ? :
291 0 2 unless (defined $_tok)
293 0 0 if defined $main::RD_TRACE
297 0 2 if defined $main::RD_TRACE
305 0 2 if defined $main::RD_TRACE
318 0 2 unless ($_matched or defined $score)
323 0 0 if defined $main::RD_TRACE
330 0 2 if (not defined $return and defined $score)
332 0 0 if defined $main::RD_TRACE
339 0 2 unless defined $return
340 0 2 if (defined $main::RD_TRACE)
365 0 134 if defined $main::RD_TRACE
384 134 0 defined $_[4] ? :
386 134 0 $#arg & 1 ? :
401 0 134 if defined $main::RD_TRACE
414 0 134 if defined $main::RD_TRACE
423 3 131 if $lastsep = $1
68 66 unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::Thread::skip)/'' if $lastsep = $1;/e and do { $_tok = '('; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 })
428 68 0 if defined $lastsep
431 0 68 if defined $main::RD_TRACE
436 0 66 if defined $main::RD_TRACE
443 0 66 if defined $main::RD_TRACE
450 0 66 unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Mail::IMAPClient::Thread::threadmember, 1, 100000000, $_noactions, $expectation, sub { \@arg; } , undef)))
452 0 0 if defined $main::RD_TRACE
459 0 66 if defined $main::RD_TRACE
471 0 66 if defined $main::RD_TRACE
480 0 66 if $lastsep = $1
0 66 unless ($text =~ s/\A($Parse::RecDescent::Mail::IMAPClient::Thread::skip)/'' if $lastsep = $1;/e and do { $_tok = ')'; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ''; 1 })
485 0 0 if defined $lastsep
488 0 0 if defined $main::RD_TRACE
493 0 66 if defined $main::RD_TRACE
500 0 66 if defined $main::RD_TRACE
507 0 66 $_noactions ? :
510 0 66 unless (defined $_tok)
512 0 0 if defined $main::RD_TRACE
516 0 66 if defined $main::RD_TRACE
524 0 66 if defined $main::RD_TRACE
537 68 66 unless ($_matched or defined $score)
542 0 68 if defined $main::RD_TRACE
549 0 66 if (not defined $return and defined $score)
551 0 0 if defined $main::RD_TRACE
558 0 66 unless defined $return
559 0 66 if (defined $main::RD_TRACE)
584 0 170 if defined $main::RD_TRACE
603 170 0 defined $_[4] ? :
605 170 0 $#arg & 1 ? :
620 0 170 if defined $main::RD_TRACE
633 0 170 if defined $main::RD_TRACE
640 84 86 unless (defined($_tok = NUMBER($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef)))
643 0 84 if defined $main::RD_TRACE
651 0 86 if defined $main::RD_TRACE
663 0 86 if defined $main::RD_TRACE
670 0 86 $_noactions ? :
671 0 86 unless (defined $_tok)
673 0 0 if defined $main::RD_TRACE
677 0 86 if defined $main::RD_TRACE
685 0 86 if defined $main::RD_TRACE
701 0 84 if defined $main::RD_TRACE
714 0 84 if defined $main::RD_TRACE
721 66 18 unless (defined($_tok = thread($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef)))
724 0 66 if defined $main::RD_TRACE
732 0 18 if defined $main::RD_TRACE
744 0 18 if defined $main::RD_TRACE
751 0 18 $_noactions ? :
752 0 18 unless (defined $_tok)
754 0 0 if defined $main::RD_TRACE
758 0 18 if defined $main::RD_TRACE
766 0 18 if defined $main::RD_TRACE
779 66 104 unless ($_matched or defined $score)
784 0 66 if defined $main::RD_TRACE
791 0 104 if (not defined $return and defined $score)
793 0 0 if defined $main::RD_TRACE
800 0 104 unless defined $return
801 0 104 if (defined $main::RD_TRACE)