Branch Coverage

blib/lib/Dist/Zilla/Plugin/Author/KENTNL/RecommendFixes.pm
Criterion Covered Total %
branch 39 64 60.9


line true false branch
45 44 11 unless my $rval = $self->$orig(@args)
63 126 16 unless ($status)
72 0 115 if ($status)
81 0 0 unless $status
86 0 0 if $status
97 0 10 if (&_CAN_VARIABLE_MAGIC())
102 1 56 if exists $cache{\$_[0]}
124 16 105 if ($_[0]->exists)
132 0 160 if $line =~ /$regex/
141 0 80 if ($line =~ /$re/)
146 6 0 unless (@rematches)
149 0 0 if (@rematches > 1)
182 0 85 if (&dpath($expression)->match($data))
190 0 12 if (&dpath($expression)->match(&$get_yaml($yaml_path)))
292 0 3 unless $self->libdir
296 3 3 if -d $thing
297 1 2 unless $thing->basename =~ /\.pm\z/msx
300 1 2 unless (@out)
308 0 1 unless $self->tdir
312 0 1 if -d $thing
313 0 1 unless $thing->basename =~ /\.t\z/msx
316 0 1 unless (@out)
328 20 0 unless $assert->should('exist', 'misc/' . $file)
329 0 20 unless $assert->should_not('exist', $file)
463 0 5 unless my $distmeta = $self->zilla->distmeta
468 0 85 unless $assert->should_not('have_dpath', 'distmeta', $distmeta, '/prereqs/*/*/' . $bad)
489 2 3 unless $self->libdir
490 1 2 unless @{$self->libfiles;}
493 1 1 unless @plugins
497 0 1 unless $self->tdir
498 0 1 unless @{$self->tfiles;}
501 0 1 if ($assert->test('have_line', $tfile, qr/dztest/))