Condition Coverage

blib/lib/YAML/PP/Schema.pm
Criterion Covered Total %
condition 31 43 72.0


and 3 conditions

line !l l&&!r l&&r condition
114 750 624 9 $i < @schemas and $schemas[$i] =~ /^[^A-Za-z]/ || $schemas[$i] =~ /^[a-zA-Z0-9]+=/
206 0 149 1394 $tag and ref $tag eq "Regexp"
240 18499 0 155 my $bool = $args{'bool'} and $] >= "5.036"
314 634 0 56 not $res and my $matches = $resolvers->{'tags'}

or 2 conditions

line l !l condition
34 0 595 $true ||= \&YAML::PP::Schema::_bool_jsonpp_true
35 0 595 $false ||= \&YAML::PP::Schema::_bool_jsonpp_false
40 0 0 $true ||= \&YAML::PP::Schema::_bool_booleanpm_true
41 0 0 $false ||= \&YAML::PP::Schema::_bool_booleanpm_false
52 595 165 $true ||= \&YAML::PP::Schema::_bool_perl_true
53 595 165 $false ||= \&YAML::PP::Schema::_bool_perl_false
159 68 613 $resolvers->{'tags'} ||= []
164 17019 3840 $resolvers->{'tag'}{$tag} ||= {}
169 20035 758 $resolvers->{'value'} ||= {}
207 168 1226 $resolvers->{$type}{'tags'} ||= []
217 0 149 $resolvers->{$type}{'tag'}{$tag} ||= {"on_create", $args{'on_create'}, "on_data", $args{'on_data'}}

or 3 conditions

line l !l&&r !l&&!r condition
28 156 2 0 $b eq "perl" or $b eq "perl_experimental"
114 5 9 619 $schemas[$i] =~ /^[^A-Za-z]/ || $schemas[$i] =~ /^[a-zA-Z0-9]+=/
138 22 0 1346 $LOADED_SCHEMA{$item} ||= &Module::Load::load($class)