Branch Coverage

blib/lib/FFI/Probe.pm
Criterion Covered Total %
branch 36 76 47.3


line true false branch
25 3 0 unless (ref $args{'log'})
35 1 2 if (-r $args{'data_filename'})
38 0 1 unless ($data = do $fn)
40 0 0 if $@
41 0 0 if $!
75 4 3 if defined $self->{'data'}{'header'}{$header}
97 2 1 if ($o) { }
133 0 0 if ($i and -f $i->path) { }
150 5 0 unless $args{'headers'}
151 1 4 unless $args{'decl'}
152 4 1 unless $args{'stmt'}
153 0 5 unless $args{'eval'}
199 0 5 if ($error) { }
0 5 elsif (not $lib) { }
219 0 5 if $result->signal
221 5 0 if ($result->pass) { }
226 9 0 if ($result->stdout =~ /$eval=<<<(.*?)>>>/)
245 0 0 if ($self->check_eval('_template', $code)) { }
276 0 1 unless $ret
281 0 1 $sign eq 'signed' ? :
304 0 0 unless $ret
309 0 0 $sign eq 'signed' ? :
332 0 0 unless $ret
337 0 0 $sign eq 'signed' ? :
357 0 1 unless $ret
362 0 1 if ($complex)
367 1 0 if ($size == 4) { }
0 0 elsif ($size == 8) { }
0 0 elsif ($size > 9) { }
374 0 1 if $complex
396 0 1 unless $ret
404 21 12 if (@key > 0) { }
422 0 12 if (ref $print_value)
430 3 30 /\./ ? :
450 0 4 unless -d $dir
453 0 4 unless open $fh, ">", $self->{'data_filename'}
486 0 3 unless defined $fh
495 1 4 unless (defined $template)