Condition Coverage

blib/lib/XML/Mini/Document.pm
Criterion Covered Total %
condition 36 74 48.6


and 3 conditions

line !l l&&!r l&&r condition
198 0 1 156 $$res{'open'} and $$res{'close'}
1 0 156 $$res{'open'} and $$res{'close'} and $$res{'open'} == $$res{'close'}
234 8 0 1 ref $filename and UNIVERSAL::isa($filename, 'IO::Handle')
271 2 2 3 $type eq 'SCALAR' and $input =~ /<[^>]+>/ms
449 0 0 2 $type and $type eq 'HASH'
571 0 0 570 defined $plainText and $plainText =~ /\S/ms
606 0 596 119 defined $remainder and $remainder =~ /\S/ms
690 0 0 0 defined $ufinaltxt and $ufinaltxt =~ /\S+/
773 0 0 0 -e $dir and -d $dir
845 0 8 373 defined $attrval and length $attrval

or 2 conditions

line l !l condition
77 0 0 shift() || (return undef)
91 0 0 shift() || (return undef)
286 2 0 shift() || (return 'XML::Mini'->Error('XML::Mini::Document::fromHash - must pass a hash reference'))
287 2 0 shift() || {}
296 2 3 ref $value || ''
332 14 35 shift() || 'STRING'
347 11 0 shift() || (return 'XML::Mini'->Error('XML::Mini::Document::extractHASHref No value passed!'))
348 11 0 shift() || (return 'XML::Mini'->Error('XML::Mini::Document::extractHASHref No parent element passed!'))
349 11 0 shift() || {}
373 3 0 shift() || (return 'XML::Mini'->Error('XML::Mini::Document::extractARRAYref No value passed!'))
374 3 0 shift() || (return 'XML::Mini'->Error('XML::Mini::Document::extractARRAYref No parent element passed!'))
375 3 0 shift() || {}
412 36 0 shift() || (return 'XML::Mini'->Error('XML::Mini::Document::extractSTRING No parent element passed!'))
413 36 0 shift() || {}
467 0 3 shift() || 0
764 0 0 shift() || (return 'XML::Mini'->Error('XML::Mini::Document::toFile - must pass a filename to save to'))

or 3 conditions

line l !l&&r !l&&!r condition
37 0 9 0 ref $class || $class
424 10 4 22 $$params{'attributes'}{$pname}{$name} or $$params{'attributes'}{'-all'}{$name}
571 7 0 570 $doctype or defined $doctypeCont
788 0 0 0 $filename =~ m[/\.\./] or $filename =~ /#;`\*/