Branch Coverage

blib/lib/File/Open/NoCache/ReadOnly.pm
Criterion Covered Total %
branch 13 20 65.0


line true false branch
67 0 13 if (not defined $class) { }
0 13 elsif (builtin::blessed($class)) { }
68 0 0 if (scalar keys %{$params;} > 0)
82 13 0 if (my $filename = $params->{'filename'}) { }
83 8 5 if (open my $fd, "<", $filename)
87 2 3 if ($params->{'fatal'})
137 8 2 if (my $fd = delete $self->{'fd'}) { }
149 8 0 if (defined $^V and $^V ge "v5.14.0")
150 0 8 if ${^GLOBAL_PHASE} eq "DESTRUCT"
154 5 3 if ($self->{'fd'})