Condition Coverage

blib/lib/Test2/Tools/FFI.pm
Criterion Covered Total %
condition 6 12 50.0


or 3 conditions

line l !l&&r !l&&!r condition
150 3 2 0 $self->{'runtime'} ||= sub { my $ffi = 'Test2::Tools::FFI::Platypus'->new(@{$$self{'new_args'};}); my(@dll) = File::Glob::bsd_glob('blib/lib/auto/share/dist/*/lib/*'); if (@dll) { $ffi->lib(@dll); return $ffi; } ; @dll = File::Glob::bsd_glob('share/lib/*'); if (@dll) { $ffi->lib(@dll); return $ffi; } ; $ffi; } ->()
191 5 2 0 $self->{'test'} ||= do { _build_test(); my $ffi = 'Test2::Tools::FFI::Platypus'->new(@{$$self{'new_args'};}); my(@lib) = FFI::CheckLib::find_lib('lib', '*', 'libpath', 't/ffi/_build', 'systempath', []); Carp::croak('unable to find test lib in t/ffi/_build') unless @lib; $ffi->lib(@lib); $ffi }
211 0 2 0 $self->{'combined'} ||= do { _build_test(); my $rt = $self->runtime; my $t = $self->test; my $ffi = 'Test2::Tools::FFI::Platypus'->new(@{$$self{'new_args'};}); $ffi->lib($rt->lib, $t->lib); $ffi }
230 0 9 0 $test_name ||= "Library has symbol: $symbol_name"