Branch Coverage

blib/lib/FFI/Build.pm
Criterion Covered Total %
branch 39 62 62.9


line true false branch
55 0 38 unless defined $name
76 0 38 if $ENV{'V'}
78 2 36 if (defined $args{'cflags'})
80 0 2 ref $args{'cflags'} ? :
85 0 38 if (defined $args{'libs'})
87 0 0 ref $args{'libs'} ? :
92 8 30 if (defined $args{'alien'})
94 8 0 ref $args{'alien'} ? :
97 0 0 if $alien->can("cflags")
0 0 unless (eval { do { $alien->can("libs") if $alien->can("cflags") } })
111 21 2 ref $args{'source'} ? :
23 15 if $args{'source'}
135 5 69 unless (@file_classes)
137 5 0 if (defined $VERSION) { }
170 14 8 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 73 2 if ($path =~ /$regex/)
249 0 27 if ($source->can("build_all"))
252 0 0 if ($count == 1) { }
262 2 25 if $source->ld
266 0 27 if $next->ld
274 19 0 unless -f $self->file->path
279 0 0 if $object_time > $target_time
284 0 19 unless &$needs_rebuild(@objects)
306 0 19 if ($exit or not -f $self->file->path) { }
12 7 elsif ($self->verbose >= 2) { }
7 0 elsif ($self->verbose >= 1) { }
332 9 0 if (-f $dll)
342 6 11 if (-d $dir)