Branch Coverage

lib/Mail/Toaster/FreeBSD.pm
Criterion Covered Total %
branch 0 108 0.0


line true false branch
22 0 0 if defined $p{'test_ok'}
26 0 0 unless my $camcontrol = $self->util->find_bin('camcontrol', %args)
39 0 0 unless $flags
43 0 0 if ($def =~ /=/) { }
55 0 0 unless my $port = shift()
58 0 0 unless ($path)
61 0 0 unless $path
76 0 0 unless my $portname = shift()
90 0 0 if defined $p{'test_ok'}
93 0 0 if $self->is_port_installed($check, 'verbose', 1)
98 0 0 unless my $category = $p{'category'} || $self->get_port_category($portname)
102 0 0 unless -d $path
108 0 0 if ($options)
120 0 0 if ($portname eq 'ezmlm-idx')
125 0 0 if $self->is_port_installed($check, 'verbose', 1)
129 0 0 if ($portname =~ /\Ap5\-(.*)\z/)
132 0 0 if $self->util->install_module_cpan($p_name)
141 0 0 unless my $port = shift()
154 0 0 if defined $p{'test_ok'}
157 0 0 if (-x '/usr/sbin/pkg') { }
166 0 0 if (scalar @matches == 0)
167 0 0 if (scalar @matches == 0)
168 0 0 if (scalar @matches == 0)
169 0 0 if scalar @matches == 0
170 0 0 if scalar @matches > 1
186 0 0 if (defined $p{'test_ok'})
192 0 0 if ($self->get_version =~ /\A6/)
196 0 0 if ($package eq 'packages')
205 0 0 if $self->is_port_installed('portupgrade')
211 0 0 unless my $package = shift()
225 0 0 if defined $p{'test_ok'}
227 0 0 if $self->is_port_installed($package, 'alt', $alt, %args)
230 0 0 if $pkg_url
233 0 0 if (-x '/usr/sbin/pkg')
238 0 0 unless (-x $pkg_add)
240 0 0 unless ($pkg_add and -x $pkg_add)
246 0 0 if (not $r2) { }
250 0 0 unless ($r)
298 0 0 if defined $p{'test_ok'}
301 0 0 unless (-d $opt_dir)
314 0 0 if defined $p{'test_ok'}
316 0 0 unless $self->util->is_writable('/usr/ports', %args)
331 0 0 if defined $p{'test_ok'}
337 0 0 unless ($portsnap and -x $portsnap)
341 0 0 unless (-e $ps_conf)
342 0 0 if (-e "$ps_conf.sample") { }
351 0 0 unless ($portsnap and -x $portsnap)
357 0 0 unless (-e $ps_conf)
364 0 0 if (not -e '/usr/ports/.portsnap.INDEX') { }
397 0 0 if defined $p{'test_ok'}
401 0 0 if -f $file
403 0 0 unless $_ =~ /^$check\=/
404 0 0 if $_ eq $line
409 0 0 if ($changes)