Branch Coverage

blib/lib/RTF/Parser.pm
Criterion Covered Total %
branch 38 50 76.0


line true false branch
178 9 8 if $INC{'RTF/Control.pm'}
197 6 8 if $$self{'_DO_ON_CONTROL'}
199 4 4 if ($$self{'_RTF_CONTROL_USED'}) { }
230 0 1 if $reader
287 2 2 if (@_) { }
289 2 0 if (ref $_[0] eq 'HASH') { }
319 0 0 if (defined $bool) { }
381 25 36 if (defined($sub = $$self{'_DO_ON_CONTROL'}{$RTF::Action::AUTOLOAD})) { }
387 0 36 if ($default) { }
10 26 elsif ($$self{'_DO_ON_CONTROL'}{'__DEFAULT__'}) { }
490 79 95 if ($token_type eq 'control') { }
34 61 elsif ($token_type eq 'text') { }
47 14 elsif ($token_type eq 'group') { }
505 24 23 $token_argument ? :
534 2 77 if ($type eq '*') { }
0 77 elsif ($type eq 'bin') { }
1 76 elsif ($type =~ /[-_~:|{}*\\]/) { }
3 73 elsif ($type eq q[']) { }
537 1 1 if ($$self{'_DONT_SKIP_DESTINATIONS'}) { }
548 0 1 unless $token_type eq 'control'
552 0 1 if (defined $$self{'_DO_ON_CONTROL'}{$token_argument}) { }
568 0 0 unless $token_type eq 'text'
624 0 2 if $token_type eq 'eof'
627 1 1 if ($token_type eq 'group')
629 0 1 $token_argument ? :