Condition Coverage

blib/lib/XML/SAX/Writer.pm
Criterion Covered Total %
condition 20 32 62.5


and 3 conditions

line !l l&&!r l&&r condition
210 8 0 1 not defined $out and defined $str
373 3 0 0 defined $opt && ref $opt eq 'HASH' && defined $opt->{'EncodeTo'}

or 2 conditions

line l !l condition
44 0 8 $opt->{'Writer'} ||= 'XML::SAX::Writer::XML'
45 1 7 $opt->{'Escape'} ||= \%XML::SAX::Writer::DEFAULT_ESCAPE
46 0 8 $opt->{'AttributeEscape'} ||= \%XML::SAX::Writer::ATTRIBUTE_ESCAPE
47 0 8 $opt->{'CommentEscape'} ||= \%XML::SAX::Writer::COMMENT_ESCAPE
50 1 7 $opt->{'Format'} ||= {}
51 6 2 $opt->{'Output'} ||= *STDOUT{'IO'}
52 1 7 $opt->{'QuoteCharacter'} ||= q[']

or 3 conditions

line l !l&&r !l&&!r condition
96 0 1 7 $ref eq 'GLOB' or UNIVERSAL::isa(\$self->{'Output'}, 'GLOB')
1 3 4 $ref eq 'GLOB' or UNIVERSAL::isa(\$self->{'Output'}, 'GLOB') or UNIVERSAL::isa($self->{'Output'}, 'IO::Handle')
233 0 16 0 ref $class || $class
375 0 0 0 $proto or $proto