Branch Coverage

blib/lib/Dist/Zilla/Plugin/Author/KENTNL/RecommendFixes.pm
Criterion Covered Total %
branch 43 80 53.7


line true false branch
44 44 11 unless my $rval = $self->$orig(@args)
62 7 0 unless ($status)
71 127 15 unless ($status)
80 0 115 if ($status)
89 0 0 unless $status
94 0 0 if $status
109 12 34 unless exists $cache{$_[0]}
120 15 106 if ($_[0]->exists)
128 19 20 unless @lines
130 0 160 if $line =~ /$regex/
139 0 80 if ($line =~ /$re/)
144 6 0 unless (@rematches)
147 0 0 if (@rematches > 1)
157 0 0 if ($line =~ /$re/)
162 1 0 unless (@rematches)
170 0 0 unless @lines
173 0 0 if ($line =~ /\A\s*\Q$key\E\s*=\s*(.+$)/)
175 0 0 if ($result)
181 0 0 unless (@failures)
198 1 11 unless exists $yaml_cache{$_[0]}
214 0 85 if (&dpath($expression)->match($data))
222 0 12 if (&dpath($expression)->match(&$get_yaml($yaml_path)))
324 0 2 unless $self->libdir
328 3 3 if -d $thing
329 2 1 unless $thing->basename =~ /\.pm\z/msx
332 1 1 unless (@out)
340 0 1 unless $self->tdir
344 0 1 if -d $thing
345 0 1 unless $thing->basename =~ /\.t\z/msx
348 0 1 unless (@out)
360 20 0 unless $assert->should('exist', 'misc/' . $file)
361 0 20 unless $assert->should_not('exist', $file)
507 0 5 unless my $distmeta = $self->zilla->distmeta
512 0 85 unless $assert->should_not('have_dpath', 'distmeta', $distmeta, '/prereqs/*/*/' . $bad)
533 3 2 unless $self->libdir
534 1 1 unless @{$self->libfiles;}
537 0 1 unless @plugins
541 0 1 unless $self->tdir
542 0 1 unless @{$self->tfiles;}
545 0 1 if ($assert->test('have_line', $tfile, qr/dztest/))