Branch Coverage

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


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