Branch Coverage

blib/lib/FFI/Build.pm
Criterion Covered Total %
branch 27 48 56.2


line true false branch
28 0 14 unless defined $name
42 2 12 if (defined $args{'cflags'})
44 0 2 ref $args{'cflags'} ? :
47 0 14 if (defined $args{'libs'})
49 0 0 ref $args{'libs'} ? :
52 0 14 if (defined $args{'alien'})
54 0 0 ref $args{'alien'} ? :
57 0 0 if $alien->can('cflags')
0 0 unless (eval { do { $alien->can('libs') if $alien->can('cflags') } })
69 8 0 ref $args{'source'} ? :
8 6 if $args{'source'}
86 2 26 unless (@file_classes)
111 6 4 if eval { do { $class->can('new') } }
127 2 26 if (eval { do { $file_spec->isa('FFI::Build::File::Base') } })
140 27 2 if ($path =~ /$regex/)
165 2 10 if $source->ld
169 0 12 if $next->ld
177 5 0 unless -f $self->file->path
182 0 0 if $object_time > $target_time
187 0 5 unless &$needs_rebuild(@objects)
205 0 5 if ($exit or not -f $self->file->path) { }
5 0 elsif ($self->verbose) { }
223 5 0 if -f $dll
227 4 8 if (-d $dir)