Branch Coverage

blib/lib/Text/Amuse/InlineElement.pm
Criterion Covered Total %
branch 83 100 83.0


line true false branch
56 182846 37960 if (defined $args{$k})
61 0 36801 if %args
62 0 36801 unless $self->{'type'}
63 0 36801 unless ($self->{'fmt'} eq "ltx" or $self->{'fmt'} eq "html")
71 2744 392356 if ($type)
109 64 35151 if (@_ > 1)
129 25063 7145 if ($type eq "text")
130 11070 13993 if ($self->is_latex) { }
13993 0 elsif ($self->is_html) { }
137 41 13952 if ($self->lang eq 'fr') { }
152 1583 5562 if ($type eq "safe")
155 18 5544 if ($type eq "ruby")
156 18 0 if ($string =~ m[\A\s*(.+?)\s*\|\s*(.+?)\s*\z])
160 9 9 if ($self->is_latex) { }
9 0 elsif ($self->is_html) { }
168 642 4902 if ($type eq 'verbatim') { }
812 4090 elsif ($type eq 'anchor') { }
2526 1564 elsif ($type eq 'open' or $type eq 'close') { }
90 1474 elsif ($type eq 'nobreakspace') { }
32 1442 elsif ($type eq 'noindent') { }
555 887 elsif ($type eq 'br') { }
94 793 elsif ($type eq 'bigskip') { }
793 0 elsif ($type eq 'verbatim_code') { }
169 642 0 if ($string =~ m[\A(.*)\z]s) { }
180 0 812 unless length $anchor
181 371 441 if ($self->is_latex) { }
441 0 elsif ($self->is_html) { }
196 44 2482 if ($self->tag =~ /\A\[([a-zA-Z-]+)\]\z/)
198 22 22 if ($self->is_latex) { }
22 0 elsif ($self->is_html) { }
199 11 11 if ($type eq 'open') { }
208 11 11 if ($type eq 'open') { }
217 0 2482 unless $out
221 45 45 if ($self->is_latex) { }
45 0 elsif ($self->is_html) { }
229 13 19 if ($self->is_latex) { }
234 0 19 if ($string =~ /\A(\s+)/)
241 247 308 if ($self->is_latex) { }
246 84 224 if ($string =~ /\A(\s+)/)
253 47 47 if ($self->is_latex) { }
258 1 46 if ($string =~ /\A(\s+)/)
266 56 737 if $string =~ m[.+]
267 628 165 if ($string =~ /\A=(.+)=\z/s) { }
56 109 elsif ($string =~ m[\A(.*)\z]s) { }
109 0 elsif ($string =~ m[\A(.*)\z]s) { }
279 775 18 if (length $string) { }
536 752 738 if ($self->type eq 'open_inline') { }
738 0 elsif ($self->type eq 'close_inline') { }
556 1282 1754 if ($self->is_latex) { }
1754 0 elsif ($self->is_html) { }