Condition Coverage

blib/lib/Aozora2Epub/XHTML.pm
Criterion Covered Total %
condition 53 73 72.6


and 3 conditions

line !l l&&!r l&&r condition
33 3 8 1 $men == 1 and $ku == 6
11 0 1 $men == 1 and $ku == 6 and $ten == 88
36 3 7 1 $men == 1 and $ku == 90
10 0 1 $men == 1 and $ku == 90 and $ten == 61
37 7 2 1 $men == 2 and $ku == 15
9 0 1 $men == 2 and $ku == 15 and $ten == 73
64 7 1 2 $unicode > 65535 and not $kindle_ok_font_over0xffff{$unicode}
122 0 0 25 $parent and $parent->isa("HTML::Element")
0 0 25 $parent and $parent->isa("HTML::Element") and $parent->tag("div")
0 15 10 $parent and $parent->isa("HTML::Element") and $parent->tag("div") and $parent->attr("class")
15 0 10 $parent and $parent->isa("HTML::Element") and $parent->tag("div") and $parent->attr("class") and $parent->attr("class") =~ /jisage_\d+/
151 0 0 1 $br and $br->isa("HTML::Element")
0 0 1 $br and $br->isa("HTML::Element") and $br->tag eq "br"
155 0 0 1 $caption->tag eq "span" and $caption->attr("class") =~ /caption/
194 0 3 3 @c and _is_empty($c[0])
195 0 3 7 @c and _is_empty($c[-1])
281 3 37 4 $contents[0] and _is_empty($contents[0])
303 62 0 14 $elem->isa('HTML::Element') && $elem->tag eq 'span' && $elem->attr('class') && $elem->attr('class') =~ /notes/
310 54 10 2 _is_chuuki($elem) && $elem->as_text =~ /\x{ff03}\x{6539}\x{4e01}|\x{ff03}\x{6539}\x{30da}\x{30fc}\x{30b8}/
315 12 0 2 _is_chuuki($elem) && $elem->as_text =~ /\x{ff03}\x{30da}\x{30fc}\x{30b8}\x{306e}\x{5de6}\x{53f3}\x{4e2d}\x{592e}/
340 6 9 4 $last_elem and _is_empty($last_elem) || _is_center_chuuki($last_elem)

or 2 conditions

line l !l condition
295 3 37 $bib_info || ''
296 0 40 $notation_notes || ''

or 3 conditions

line l !l&&r !l&&!r condition
340 6 1 6 _is_empty($last_elem) || _is_center_chuuki($last_elem)
363 3 5 2 _is_empty($c1) or $c1->tag =~ /h[123]/