Branch Coverage

blib/lib/Selenium/Firefox/Profile.pm
Criterion Covered Total %
branch 18 30 60.0


line true false branch
28 1 5 if ($args{'profile_dir'} and -d $args{'profile_dir'}) { }
42 0 6 unless bless $self, $class
55 2 7 if (&JSON::is_bool($value)) { }
3 4 elsif ($value =~ /^(['"]).*\1$/ or &looks_like_number($value)) { }
83 2 2 $value ? :
98 1 3 unless -e $xpi
100 1 2 unless $xpi_abs_path =~ /\.xpi$/
121 1 0 unless ($is_marionette)
142 0 0 unless $port
159 0 1 unless ($zip->writeToFileHandle($fh) == 0)
179 0 3 unless open my $fh, ">>", $userjs
193 3 0 unless -d $extension_dir
208 0 0 unless copy($xpi, $xpi_dest)
216 0 1 unless my $unzipped = "IO::Uncompress::Unzip"->new($xpi)
222 0 0 if ($filename eq "install.rdf")