| blib/lib/File/Parser/Role.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 14 | 78.5 |
| line | true | false | branch |
|---|---|---|---|
| 30 | 15 | 23 | if (-r "${\$self->file;}") { } |
| 11 | 12 | elsif (ref $self->file eq 'SCALAR') { } | |
| 12 | 0 | elsif (ref $self->file) { } | |
| 35 | 2 | 13 | if (defined $self->encoding) |
| 36 | 0 | 2 | unless binmode $fh, sprintf(':encoding(%s)', $self->encoding) |
| 52 | 2 | 10 | if (defined $self->encoding) |
| 53 | 0 | 2 | unless binmode $self->file, sprintf(':encoding(%s)', $self->encoding) |