Branch Coverage

blib/lib/Dist/Zilla/Plugin/GenerateFile/FromShareDir.pm
Criterion Covered Total %
branch 16 24 66.6


line true false branch
116 1 4 unless ($file_path)
117 1 0 if ($self->dist eq $self->zilla->name)
118 1 0 if (my $sharedir = $self->zilla->_share_dir_map->{'dist'})
123 0 1 unless defined $file_path
126 0 5 unless -e $file_path
139 4 1 if ($self->location eq 'build') { }
141 1 3 if ($self->phase eq 'release')
176 2 4 unless $file->name eq $self->filename
178 0 4 if ($file->can('is_bytes') and $file->is_bytes)
196 0 4 unless $file->can('encoded_content')
204 4 1 if $self->phase eq 'build'
210 0 0 if $self->phase eq 'release'