Condition Coverage

blib/lib/ODF/lpOD/Document.pm
Criterion Covered Total %
condition 0 147 0.0


and 3 conditions

line !l l&&!r l&&r condition
120 0 0 0 $part_name and $$self{$part_name}
297 0 0 0 $opt{'type'} and $opt{'type'} =~ /^image/
652 0 0 0 $name and $family
797 0 0 0 $class and $style->isa('ODF::lpOD::Style')
1322 0 0 0 $mimetype and $mimetype =~ /^image/
1386 0 0 0 defined $opt{'target'} and $opt{'target'} ne $$self{'uri'}
1492 0 0 0 ref $container and $container->isa('ODF::lpOD::Container')
2226 0 0 0 $action and $object

or 2 conditions

line l !l condition
334 0 0 $suffix //= 'unknown'
426 0 0 $path ||= '/'
685 0 0 $part_name ||= 'content.xml'
1241 0 0 ($opt{'compress'} // $COMPRESSION{$part_name}) // 0
1289 0 0 shift() // ''
1739 0 0 shift() || 0
2088 0 0 shift() // (return undef)
2148 0 0 $e->get_attribute('value type') || 'string'
2160 0 0 shift() || 'string'
2197 0 0 $e->get_attribute('value type') // 'string'
2198 0 0 $e->get_text // ''
2278 0 0 $e->get_text || 0

or 3 conditions

line l !l&&r !l&&!r condition
80 0 0 0 $$self{'uri'} //= $$self{'source'}
111 0 0 0 $$self{'indent'} // 'ODF::lpOD::Common'->debug
0 0 0 $$self{'pretty'} //= $$self{'indent'} // 'ODF::lpOD::Common'->debug
144 0 0 0 $container or is_false($opt{'warning'})
293 0 0 0 $opt{'path'} || $opt{'part'}
309 0 0 0 $opt{'type'} || file_type($source)
332 0 0 0 $opt{'type'} || file_type($source) || "image/$suffix"
405 0 0 0 $opt{'indent'} // 'ODF::lpOD::Common'->debug
0 0 0 $opt{'pretty'} //= $opt{'indent'} // 'ODF::lpOD::Common'->debug
573 0 0 0 $self->get_element('styles.xml', $xp) // $self->get_element('content.xml', $xp)
641 0 0 0 $self->get_element('styles.xml', $xp) // $self->get_element('content.xml', $xp)
650 0 0 0 shift() || $style->get_name
674 0 0 0 is_true($opt{'default'}) or defined_false($opt{'automatic'})
734 0 0 0 $opt{'name'} || $style->get_name
749 0 0 0 $opt{'name'} || $style->get_name
882 0 0 0 $opt{'context'} // $self->get_body
890 0 0 0 $opt{'context'} // $self->get_body
928 0 0 0 $opt{'context'} // $self->get_body
934 0 0 0 $self->get_variable($name, 'class', 'user') || $self->get_variable($name, 'class', 'simple')
998 0 0 0 $context //= $self->get_body->set_first_child($tag)
1241 0 0 0 $opt{'compress'} // $COMPRESSION{$part_name}
1537 0 0 0 $$self{'indent'} // 'ODF::lpOD::Common'->debug
0 0 0 $$self{'pretty'} //= $$self{'indent'} // 'ODF::lpOD::Common'->debug
1539 0 0 0 $$self{'twig'} //= 'XML::Twig'->new('twig_handlers', $$self{'handlers'}, 'twig_roots', $$self{'roots'}, 'elt_class', $$self{'elt_class'}, 'pretty_print', $$self{'pretty_print'}, 'output_encoding', 1, 'id', $ODF::lpOD::Common::LPOD_ID)
1566 0 0 0 shift() || $$self{'container'}->get_part($$self{'part'})
1630 0 0 0 shift() || $$self{'context'}
1690 0 0 0 $$self{'indent'} // 'ODF::lpOD::Common'->debug
0 0 0 $opt{'pretty'} //= $$self{'indent'} // 'ODF::lpOD::Common'->debug
1835 0 0 0 $opt{'family'} ||= $name
2059 0 0 0 $self->get_element('meta:document-statistic') || $self->append_element('meta:document-statistic')
2172 0 0 0 $self->get_element('meta:user-defined', 'attribute', 'name', 'value', $name) // $self->append_element('meta:user-defined')
2264 0 0 0 scalar getlogin || scalar getpwuid $< || $<
2272 0 0 0 $0 || $$