Branch Coverage

blib/lib/Test/CPAN/Changes.pm
Criterion Covered Total %
branch 20 24 83.3


line true false branch
24 0 0 $arg && defined $arg->{'version'} ? :
43 3 5 defined $arg->{'version'} ? :
51 0 8 unless ($Test->ok(!!eval { do { $changes = $Parser->parse_file($file); 1 } }, "$file is loadable"))
63 1 7 unless $Test->ok(!!@releases, "$file contains at least one release")
67 1 6 if (not defined $release->date or $release->date eq "")
73 1 0 unless ($d =~ /^$CPAN::Changes::Parser::_ISO_8601_DATE$/ or $d =~ /^($CPAN::Changes::Parser::_UNKNOWN_DATE)$/)
80 1 7 unless $Test->ok(!defined($date_err), "$file contains all valid release dates")
87 1 6 unless (version::is_lax($version))
92 1 7 unless $Test->ok(!defined($version_err), "$file contains all valid release versions")
95 3 5 if (defined $arg->{'version'})
99 2 1 if ($Test->ok(!!$release, "$file has an entry for version $v")) { }
101 1 1 unless $Test->ok(!!@$entries, "$file version $v has content")