Branch Coverage

blib/lib/CPAN/Changes.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
40 3 34 if (@args > 1 or @args == 1 and ref $args[0] ne "ARRAY")
50 3 711 if ($version =~ s/^v//i or $version =~ tr/.// > 1)
61 0 714 unless defined $version
69 3 711 $v ? :
76 7 7 if $release
91 0 16 if ($opts{'reverse'})
95 16 0 unless $opts{'styles'}
96 16 0 unless $opts{'indents'}
99 6 10 if $out
105 9 10 if (grep {length $indents->[0] . $styles->[1] . $_->text > $width if length $styles->[1] > 1;} @{$release->entries;} or not grep({$_->has_entries;} @{$release->entries;}))
107 36 0 if length $styles->[1] > 1
117 3 16 unless $out eq "" or $out =~ /\n\n\z/
138 1 17 if exists $args{'next_token'}
146 0 9 if exists $args{'next_token'}
158 1 10 if (_numify_version($release->version) == $version)