Branch Coverage

blib/lib/FFI/Library.pm
Criterion Covered Total %
branch 20 34 58.8


line true false branch
14 1 7 unless @_ <= 3
19 1 6 if (not defined $libname) { }
2 4 elsif (ref $libname and int $libname == int \$0) { }
0 4 elsif (&_is_win()) { }
3 1 elsif (-e $libname) { }
35 0 3 $flags == 1 ? :
45 1 0 unless $handle
57 5 0 unless defined $flags
60 0 5 unless defined $handle
68 11 0 if ($self->{'impl'} eq 'dl') { }
0 0 elsif ($self->{'impl'} eq 'dynaloader') { }
0 0 elsif ($self->{'impl'} eq 'null') { }
92 2 4 unless defined $addr
103 5 1 if ($self->{'impl'} eq 'dl') { }
0 1 elsif ($self->{'impl'} eq 'dynaloader') { }
1 0 elsif ($self->{'impl'} eq 'null') { }
110 0 0 if defined &DynaLoader::dl_free_file