Branch Coverage

blib/lib/YAML/Perl/Loader.pm
Criterion Covered Total %
branch 9 60 15.0


line true false branch
7 0 5 $ENV{'YAML_PP_LOAD_DEBUG'} || $ENV{'YAML_PP_LOAD_TRACE'} ? :
8 0 5 $ENV{'YAML_PP_LOAD_TRACE'} ? :
14 0 4 if ($bool eq 'JSON::PP') { }
0 4 elsif ($bool eq 'boolean') { }
3 1 elsif ($bool eq 'perl') { }
30 3 0 unless ($parser)
34 1 2 if (keys %args)
72 0 0 wantarray ? :
82 0 0 if (not defined $$ref) { }
0 0 elsif (ref $$ref eq 'ARRAY') { }
0 0 elsif (ref $$ref eq 'HASH') { }
97 0 0 if (defined(my $anchor = $event->{'anchor'}))
114 0 0 if @$refs
140 0 0 if @$refs
150 0 0 if (@$refs > 1)
153 0 0 if (ref $$ref1 eq 'SCALAR')
156 0 0 if (ref $$ref2 eq 'HASH') { }
179 0 0 if (my $anchor = $self->anchors->{$name})
194 0 0 if (not defined $$ref) { }
0 0 elsif (ref $$ref eq 'HASH') { }
0 0 elsif (ref $$ref eq 'ARRAY') { }
214 0 0 if ($style eq ':') { }
241 0 0 unless defined $content
243 0 0 if ($content =~ /^($YAML::PP::Parser::RE_INT|$YAML::PP::Parser::RE_FLOAT)$/) { }
0 0 elsif ($content =~ /^($YAML::PP::Parser::RE_HEX)/) { }
0 0 elsif ($content =~ /^($YAML::PP::Parser::RE_OCT)/) { }
0 0 elsif ($content eq 'true' or $content eq 'false') { }
265 0 0 $_[0] eq 'true' ? :
269 0 0 $_[0] eq 'true' ? :
273 0 0 $_[0] eq 'true' ? :