Branch Coverage

blib/lib/File/Open/NoCache/ReadOnly.pm
Criterion Covered Total %
branch 17 22 77.2


line true false branch
50 0 4 unless defined $class
53 0 4 if (ref $_[0] eq 'HASH') { }
1 3 elsif (ref $_[0] or not defined $_[0]) { }
2 1 elsif (scalar(@_) % 2 == 0) { }
63 3 1 if (my $filename = $params{'filename'})
64 2 1 if (open my $fd, '<', $filename)
68 0 1 if ($params{'fatal'})
104 2 1 if (my $fd = $self->{'fd'})
119 2 0 if (defined $^V and $^V ge 'v5.14.0')
120 0 2 if ${^GLOBAL_PHASE} eq 'DESTRUCT'
124 1 1 if (defined $self->{'fd'})