Branch Coverage

blib/lib/Module/CPANTS/Kwalitee/MetaYML.pm
Criterion Covered Total %
branch 27 82 32.9


line true false branch
31 3 8 if (-f $meta_yml and -r _)
36 0 11 if (-f $meta_json and -r _)
42 0 8 if (not $me->d->{'meta_yml'} and -f $mymeta_yml and -r _)
46 8 3 unless ($me->d->{'meta_yml'})
53 0 3 if (($me->d->{'meta_yml_spec_version'} || '1.0') gt '1.4')
56 0 0 if (not $@ and $meta_14)
61 3 0 !exists $me->d->{'meta_yml'}{'dynamic_config'} || $me->d->{'meta_yml'}{'dynamic_config'} ? :
67 0 3 unless my $meta = 'CPAN::Meta::YAML'->read($file)
70 0 3 if (@$meta > 1 or ref $meta->[0] ne ref {}) { }
78 0 3 if (my $error = $@)
82 3 0 if ($me->d->{'meta_yml'})
84 0 3 if $error
94 0 0 unless open my $fh, '<', $file
98 0 0 if (my $error = $@)
102 0 0 if ($meta)
104 0 0 if $error
107 0 0 if (not $me->d->{'meta_yml'})
116 0 7 unless eval "require $json_class; 1"
124 0 3 if ($error = $@) { }
0 3 elsif (not $spec->is_valid) { }
144 11 0 !$d->{'error'}{'meta_yml_is_parsable'} ? :
157 11 0 !$d->{'error'}{'meta_json_is_parsable'} ? :
171 0 11 unless $d->{'meta_yml'}
172 0 11 if $d->{'meta_yml'}{'provides'}
177 0 0 unless $d->{'meta_yml'}
187 0 11 if $d->{'error'}{'meta_yml_conforms_to_known_spec'}
192 0 0 unless $d->{'meta_yml'}
193 0 0 unless $d->{'meta_yml_is_parsable'}
203 0 11 if $d->{'error'}{'meta_json_is_parsable'}
204 0 11 if $d->{'error'}{'meta_json_conforms_to_known_spec'}
209 0 0 unless $d->{'meta_json_is_parsable'}
221 0 11 unless $yaml
222 0 11 ref $yaml->{'requires'} eq ref {} && $yaml->{'requires'}{'perl'} ? :
227 0 0 unless $yaml
228 0 0 unless ref $yaml->{'requires'} eq ref {}
229 0 0 unless $yaml->{'requires'}{'perl'}
240 0 11 unless $yaml
241 0 11 ref $yaml->{'resources'} eq ref {} && $yaml->{'resources'}{'repository'} ? :
246 0 0 unless $yaml
247 0 0 unless ref $yaml->{'resources'} eq ref {}
248 0 0 unless $yaml->{'resources'}{'repository'}