| blib/lib/Iterator/File/Line.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 18 | 77.7 |
| line | true | false | branch |
|---|---|---|---|
| 20 | 0 | 5 | if ($args{'filename'}) { } |
| 5 | 0 | elsif ($args{'fh'}) { } | |
| 35 | 0 | 0 | unless open my $fh, '<', $filename |
| 46 | 2 | 3 | exists $args{'chomp'} ? : |
| 63 | 1 | 12 | unless defined $line |
| 64 | 8 | 4 | if $self->chomp |
| 65 | 2 | 10 | $self->filter ? : |
| 81 | 1 | 4 | if ($self->eol) |
| 85 | 1 | 4 | if ($self->encoding) |