Branch Coverage

blib/lib/XML/Spice.pm
Criterion Covered Total %
branch 3 40 7.5


line true false branch
19 1 2 if (@args) { }
21 0 3 unless $arg =~ /^[A-Za-z]\w*$/
45 0 0 if (ref $arg eq 'HASH') { }
47 0 0 if (not defined $arg->{$key}) { }
80 0 0 if ($XML::Spice::PRETTY_PRINT and not defined $TIDY_LOADED)
82 0 0 if ($@) { }
93 0 0 if exists $chunk->{'cached'} and not $WANT_PRETTY
117 0 0 unless defined $thing
119 0 0 if (ref $thing eq 'CODE')
122 0 0 if (ref $thing eq 'HASH')
124 0 0 if (not defined $thing->{$key}) { }
136 0 0 if (ref $thing eq 'ARRAY') { }
0 0 elsif (ref $thing eq 'XML::Spice::Chunk') { }
145 0 0 if $thing eq ''
153 0 0 if exists $chunk->{'sub'}
161 0 0 unless (defined $subxml)
163 0 0 unless $WANT_PRETTY
164 0 0 $WANT_PRETTY ? :
169 0 0 unless $WANT_PRETTY
170 0 0 $WANT_PRETTY ? :