Branch Coverage

blib/lib/Module/Build/Xilinx.pm
Criterion Covered Total %
branch 15 206 7.2


line true false branch
58 0 1 unless $os =~ /Windows|Linux|Unix/i
59 0 1 if $os eq 'Unix' and not $^O =~ /linux/i
64 0 1 if (defined $$pp{'language'})
65 0 0 if $$pp{'language'} =~ /vhdl/i
66 0 0 if $$pp{'language'} =~ /verilog/i
67 0 0 unless $$pp{'language'} =~ /VHDL|Verilog/i
78 1 0 if (defined $self->tcl_script)
85 0 1 if defined $xil_path
86 0 1 if defined $xil_path
89 1 0 unless exists $$oref{'device'}
90 1 0 unless exists $$oref{'view'}
97 0 0 if $self->SUPER::can_action('build')
100 0 0 if ($self->verbose)
106 0 0 unless open my $fh, '>', $tcl
111 0 0 unless defined $xil_path
125 0 0 unless -d $dir
128 0 0 if ref $files eq 'ARRAY' and scalar @$files
130 0 0 if $@
158 0 0 unless -d $dir
161 0 0 if ref $files eq 'ARRAY' and scalar @$files
163 0 0 if $@
174 0 0 unless -d $dir
178 0 0 if $fh{$_}
182 0 0 if $@
190 0 0 unless $key =~ /$regex_tb/
191 0 0 exists $$tb{$key} ? :
192 0 0 unless ref $hh eq 'HASH'
194 0 0 unless defined $$hh{'toplevel'}
195 0 0 unless defined $$hh{'srclib'}
196 0 0 unless defined $$hh{'wdb'}
197 0 0 unless defined $$hh{'exe'}
198 0 0 unless defined $$hh{'prj'}
199 0 0 unless defined $$hh{'cmd'}
220 0 1 if defined $env_xil and -d $env_xil
221 0 1 if defined $xil_path and -d $xil_path
222 0 1 if ($self->is_windowsish) { }
228 0 0 if -d $d
233 0 0 unless defined $_
234 0 0 unless -d $_
235 0 0 if -d "$_\\Xilinx"
240 0 4 unless defined $_
241 0 4 unless -d $_
242 0 4 if -d "$_/Xilinx"
245 1 0 unless (scalar @xildirs)
249 0 0 if ($self->verbose)
254 0 0 unless opendir my $fd, $xdir
255 0 0 unless $fd
259 0 0 unless scalar @possible
263 0 0 if ($self->verbose)
266 0 0 unless (scalar @final)
272 0 0 $self->is_windowsish ? :
276 0 0 if (-e $f64 or -e $f32)
279 0 0 if $self->verbose
292 0 0 unless -e $tcl
294 0 0 if $Module::Build::Xilinx::Config{'archname'} =~ /x86_64|x64/
296 0 0 if $self->verbose
297 0 0 if ($self->is_windowsish) { }
299 0 0 unless open my $fh, '>', $bat
305 0 0 unless system($bat) == 0
307 0 0 unless system("source $cmd1 && $cmd2") == 0
318 0 0 if $Module::Build::Xilinx::Config{'archname'} =~ /x86_64|x64/
320 0 0 if $self->verbose
321 0 0 if ($self->is_windowsish) { }
323 0 0 unless open my $fh, '>', $bat
329 0 0 unless system($bat) == 0
331 0 0 unless system("source $cmd1 && $cmd2") == 0
341 0 0 if $Module::Build::Xilinx::Config{'archname'} =~ /x86_64|x64/
343 0 0 if $self->verbose
344 0 0 if ($self->is_windowsish) { }
346 0 0 unless open my $fh, '>', $bat
352 0 0 unless system($bat) == 0
354 0 0 unless system("source $cmd1 && $cmd2") == 0
365 0 0 if $Module::Build::Xilinx::Config{'archname'} =~ /x86_64|x64/
367 0 0 if $self->verbose
368 0 0 if ($self->is_windowsish) { }
370 0 0 unless open my $fh, '>', $bat
376 0 0 unless system($bat) == 0
378 0 0 unless system("source $cmd1 && ./$cmd2") == 0
389 0 0 if $Module::Build::Xilinx::Config{'archname'} =~ /x86_64|x64/
394 0 0 if $self->verbose
395 0 0 unless open my $fh, '>', $pcmd
431 0 0 if ($self->is_windowsish) { }
433 0 0 unless open my $fh, '>', $bat
439 0 0 unless system($bat) == 0
441 0 0 unless system("source $cmd1 && $cmd2") == 0
475 0 0 unless ref $simfiles eq 'ARRAY'
476 0 0 if (scalar @$simfiles) { }
477 0 0 if ($self->verbose)
483 0 0 unless -e $flag
485 0 0 if $self->is_windowsish
487 0 0 unless (exists $$tb_data{$vf})
499 0 0 unless open my $fh, '>', $cmdfile
508 0 0 if $self->verbose
516 0 0 unless open my $dsf, '>', $ds
531 0 0 unless ref $simfiles eq 'ARRAY'
532 0 0 if (scalar @$simfiles) { }
533 0 0 if ($self->verbose)
538 0 0 if $self->is_windowsish
540 0 0 if (exists $$tb_data{$vf} and defined $$tb_data{$vf}{'wdb'}) { }
542 0 0 unless (-e $wdb)
561 0 0 unless defined $device
562 0 0 if $self->verbose and defined $device
787 0 0 if 6 * scalar(@prjs) != $total_files