| blib/lib/Dist/Zilla/Plugin/Prepender.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 18 | 77.7 |
| line | true | false | branch |
|---|---|---|---|
| 55 | 1 | 8 | if $file->name =~ /$skip/ |
| 58 | 0 | 4 | unless ($file->does('Dist::Zilla::Role::MutableFile')) |
| 63 | 0 | 4 | if $DZIL_5 and $file->encoding eq 'bytes' |
| 64 | 1 | 3 | if $file->name =~ /\.(?:pm|pl)$/i |
| 65 | 2 | 1 | if $file->content =~ /^#!(?:.*)perl(?:$|\s)/ |
| 88 | 3 | 0 | if ($self->copyright) |
| 96 | 12 | 12 | length $_ ? : |
| 105 | 0 | 3 | if ($content =~ /\A$re{'shebang'}\n(?:$re{'vimmode'}|$re{'emacsmode'})/) { } |
| 2 | 1 | elsif ($content =~ /\A(?:$re{'shebang'}|$re{'vimmode'}|$re{'emacsmode'})/) { } |