Condition Coverage

blib/lib/YAML/Perl/Base.pm
Criterion Covered Total %
condition 66 140 47.1


and 3 conditions

line !l l&&!r l&&r condition
13 0 114 686 $class->isa('YAML::Perl::Base') and defined $flag
114 1 685 $class->isa('YAML::Perl::Base') and defined $flag and $flag eq '-base'
98 250 0 0 $@ and not "$@" =~ /Can't locate/
168 1686 16 80 ref $default eq 'ARRAY' && !@$default
1655 0 47 ref $default eq 'HASH' && !keys(%$default)

or 2 conditions

line l !l condition
217 0 33 $_[1] || 0

or 3 conditions

line l !l&&r !l&&!r condition
209 0 806 47 $#_ > 0 or defined $_[0]{'composer_class'}
1 1996 47 $#_ > 0 or defined $_[0]{'emitter'}
2 698 53 $#_ > 0 or defined $_[0]{'reader_class'}
0 126 28 $#_ > 0 or defined $_[0]{'reader'}
1 81 30 $#_ > 0 or defined $_[0]{'serializer'}
0 1856 43 $#_ > 0 or defined $_[0]{'yaml_constructors'}
0 820 35 $#_ > 0 or defined $_[0]{'representer_class'}
2 561 37 $#_ > 0 or defined $_[0]{'emitter_class'}
1 24 19 $#_ > 0 or defined $_[0]{'serializer'}
1 167 33 $#_ > 0 or defined $_[0]{'reader'}
2 83 19 $#_ > 0 or defined $_[0]{'serializer_class'}
0 108 28 $#_ > 0 or defined $_[0]{'scanner'}
0 73 17 $#_ > 0 or defined $_[0]{'parser'}
0 234 17 $#_ > 0 or defined $_[0]{'writer_class'}
0 1632 9 $#_ > 0 or defined $_[0]{'resolver'}
0 84 15 $YAML::Perl::DumperClass or $YAML::DumperClass
0 0 0 $YAML::Perl::DumperClass or $YAML::DumperClass
1 0 9 $#_ > 0 or defined $_[0]{'dumper_class'}
0 0 1 $#_ > 0 or defined $_[0]{'constructor'}
1 1 1 $#_ > 0 or defined $_[0]{'stream'}
0 0 0 $#_ > 0 or defined $_[0]{'yaml_multi_constructors'}
0 0 2 $#_ > 0 or defined $_[0]{'scanner_class'}
0 84 8 $#_ > 0 or defined $_[0]{'parser'}
2 4 6 $#_ > 0 or defined $_[0]{'resolver'}
0 0 8 $#_ > 0 or defined $_[0]{'loader'}
0 0 0 $#_ > 0 or defined $_[0]{'representer'}
0 0 2 $#_ > 0 or defined $_[0]{'dumper'}
0 0 2 $#_ > 0 or defined $_[0]{'scanner'}
0 0 0 $YAML::Perl::LoaderClass or $YAML::LoaderClass
0 0 0 $YAML::Perl::LoaderClass or $YAML::LoaderClass
0 0 0 $#_ > 0 or defined $_[0]{'loader_class'}
0 0 0 $#_ > 0 or defined $_[0]{'constructor_class'}
0 0 0 $#_ > 0 or defined $_[0]{'composer'}
0 0 0 $YAML::Perl::ResolverClass or $YAML::ResolverClass
0 0 0 $YAML::Perl::ResolverClass or $YAML::ResolverClass
0 0 0 $#_ > 0 or defined $_[0]{'resolver_class'}
0 0 0 $#_ > 0 or defined $_[0]{'resolver'}
0 0 0 $#_ > 0 or defined $_[0]{'writer'}
0 0 0 $#_ > 0 or defined $_[0]{'emitter'}
0 0 0 $#_ > 0 or defined $_[0]{'writer'}
0 0 0 $#_ > 0 or defined $_[0]{'composer'}