Branch Coverage

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


line true false branch
56 180952 37622 if (defined $args{$k})
61 0 36429 if %args
62 0 36429 unless $self->{'type'}
63 0 36429 unless ($self->{'fmt'} eq "ltx" or $self->{'fmt'} eq "html")
71 2718 387798 if ($type)
109 64 35091 if (@_ > 1)
129 24795 7055 if ($type eq "text")
130 10936 13859 if ($self->is_latex) { }
13859 0 elsif ($self->is_html) { }
137 41 13818 if ($self->lang eq 'fr') { }
152 1617 5438 if ($type eq "safe")
155 18 5420 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 548 4872 if ($type eq 'verbatim') { }
812 4060 elsif ($type eq 'anchor') { }
2522 1538 elsif ($type eq 'open' or $type eq 'close') { }
90 1448 elsif ($type eq 'nobreakspace') { }
32 1416 elsif ($type eq 'noindent') { }
541 875 elsif ($type eq 'br') { }
88 787 elsif ($type eq 'bigskip') { }
787 0 elsif ($type eq 'verbatim_code') { }
169 548 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 2478 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 2478 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 240 301 if ($self->is_latex) { }
246 83 218 if ($string =~ /\A(\s+)/)
253 44 44 if ($self->is_latex) { }
258 1 43 if ($string =~ /\A(\s+)/)
266 50 737 if $string =~ m[.+]
267 628 159 if ($string =~ /\A=(.+)=\z/s) { }
50 109 elsif ($string =~ m[\A(.*)\z]s) { }
109 0 elsif ($string =~ m[\A(.*)\z]s) { }
279 769 18 if (length $string) { }
536 750 736 if ($self->type eq 'open_inline') { }
736 0 elsif ($self->type eq 'close_inline') { }
556 1249 1721 if ($self->is_latex) { }
1721 0 elsif ($self->is_html) { }