Branch Coverage

blib/lib/TextFileParser.pm
Criterion Covered Total %
branch 28 34 82.3


line true false branch
43 1 4 unless $self->__is_file_known_or_opened($fname)
44 3 1 unless exists $self->{'__filehandle'}
45 1 2 if exists $self->{'__records'}
52 1 1 unless defined $fname or exists $self->{'__filehandle'}
53 0 4 if defined $fname and not $fname
60 5 0 if defined $fname
63 3 0 exists $self->{'__filename'} && defined $self->{'__filename'} ? :
68 2 3 unless -f $fname and -r $fname
77 0 3 if exists $self->{'__filehandle'}
78 0 3 unless open my $fh, "<$fname"
103 9 13 if @_
104 12 1 exists $self->{'__current_line'} ? :
119 0 7 unless @_
120 3 4 unless defined $self->{'__records'}
133 1 4 unless exists $self->{'__records'}
140 1 5 unless exists $self->{'__records'}
148 1 5 unless exists $self->{'__records'}