Branch Coverage

blib/lib/Dist/Zilla/Plugin/Author/KENTNL/RecommendFixes.pm
Criterion Covered Total %
branch 41 66 62.1


line true false branch
44 44 11 unless my $rval = $self->$orig(@args)
62 127 15 unless ($status)
71 0 115 if ($status)
80 0 0 unless $status
85 0 0 if $status
100 12 33 unless exists $cache{$_[0]}
111 15 106 if ($_[0]->exists)
119 19 20 unless @lines
121 0 160 if $line =~ /$regex/
130 0 80 if ($line =~ /$re/)
135 6 0 unless (@rematches)
138 0 0 if (@rematches > 1)
155 1 11 unless exists $yaml_cache{$_[0]}
171 0 85 if (&dpath($expression)->match($data))
179 0 12 if (&dpath($expression)->match(&$get_yaml($yaml_path)))
281 0 2 unless $self->libdir
285 3 3 if -d $thing
286 2 1 unless $thing->basename =~ /\.pm\z/msx
289 1 1 unless (@out)
297 0 1 unless $self->tdir
301 0 1 if -d $thing
302 0 1 unless $thing->basename =~ /\.t\z/msx
305 0 1 unless (@out)
317 20 0 unless $assert->should('exist', 'misc/' . $file)
318 0 20 unless $assert->should_not('exist', $file)
452 0 5 unless my $distmeta = $self->zilla->distmeta
457 0 85 unless $assert->should_not('have_dpath', 'distmeta', $distmeta, '/prereqs/*/*/' . $bad)
478 3 2 unless $self->libdir
479 1 1 unless @{$self->libfiles;}
482 0 1 unless @plugins
486 0 1 unless $self->tdir
487 0 1 unless @{$self->tfiles;}
490 0 1 if ($assert->test('have_line', $tfile, qr/dztest/))