Branch Coverage

blib/lib/Dist/Zilla/Plugin/TravisCI/StatusBadge.pm
Criterion Covered Total %
branch 33 38 86.8


line true false branch
91 20 7 unless $self->has_user and $self->has_repo
93 5 22 unless ($self->has_user and $self->has_repo)
100 3 19 unless ($self->has_readme)
111 2 17 if ($self->format eq 'pod' or $self->readme =~ /\.pod$/ and $self->format eq '') { }
113 2 40 if ($line =~ /^=head1 VERSION/)
115 0 2 $self->vector ? :
127 17 289 if ($line =~ /^# VERSION/)
129 1 16 $self->vector ? :
141 19 0 $readme->can('encoding') ? :
147 0 19 $encoding eq 'raw' ? :
163 3 17 unless exists $meta->{'resources'}
179 5 12 exists $meta->{'resources'}{'repository'} ? :
13 4 exists $meta->{'resources'}{'homepage'} ? :
190 0 17 if $self->has_user and $self->has_repo
192 1 16 unless $source =~ /github\.com/i
203 1 15 unless defined $user and defined $repo
221 2 20 $self->has_readme ? :
225 0 65 unless $name
231 19 46 if ($file->exists)