Branch Coverage

lib/FFI/Build.pm
Criterion Covered Total %
branch 44 62 70.9


line true false branch
55 0 38 unless defined $name
76 0 38 if $ENV{'V'}
78 3 35 if (defined $args{'cflags'})
80 1 2 ref $args{'cflags'} ? :
85 0 38 if (defined $args{'libs'})
87 0 0 ref $args{'libs'} ? :
92 10 28 if (defined $args{'alien'})
94 10 0 ref $args{'alien'} ? :
97 1 1 if $alien->can("cflags")
1 1 unless (eval { do { $alien->can("libs") if $alien->can("cflags") } })
111 23 2 ref $args{'source'} ? :
25 13 if $args{'source'}
135 7 97 unless (@file_classes)
137 7 0 if (defined $VERSION) { }
170 20 10 if eval { do { $class->can("new") } }
186 7 55 if (eval { do { $file_spec->isa("FFI::Build::File::Base") } })
191 5 50 if (ref $file_spec eq "ARRAY")
195 1 4 unless ($class->can("new"))
216 103 0 if ($path =~ /$regex/)
249 0 57 if ($source->can("build_all"))
252 0 0 if ($count == 1) { }
262 0 57 if $source->ld
266 0 57 if $next->ld
274 19 1 unless -f $self->file->path
279 1 0 if $object_time > $target_time
284 0 20 unless &$needs_rebuild(@objects)
306 0 20 if ($exit or not -f $self->file->path) { }
11 9 elsif ($self->verbose >= 2) { }
9 0 elsif ($self->verbose >= 1) { }
332 8 0 if (-f $dll)
342 5 10 if (-d $dir)