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