| line |
true |
false |
branch |
|
133
|
0 |
4 |
if ($^O eq 'MSWin32') |
|
146
|
0 |
40 |
if (my $path = Mozilla::ProfilesIni::_find_profile_path('home', $home, 'type', $type)) { } |
|
148
|
0 |
0 |
if (_catfile($path, 'profiles.ini')) |
|
155
|
2 |
2 |
if ($$self{'pseudo'}) |
|
159
|
2 |
0 |
unless $pseudo->profile_exists('name', 'default') |
|
192
|
0 |
4 |
if ($@) { } |
|
204
|
0 |
40 |
unless $plugin->can($_) |
|
212
|
8 |
0 |
if $plugin->allowed_options($_) |
|
303
|
0 |
1 |
unless not ref $value or ref $value eq 'ARRAY' |
|
315
|
0 |
0 |
unless ref $log and $log->isa('Log::Dispatch') |
|
327
|
0 |
2 |
unless $value eq '' or _catdir($value) |
|
350
|
0 |
0 |
unless ref $value |
|
351
|
0 |
0 |
unless ref $value eq 'ARRAY' |
|
355
|
0 |
0 |
unless not ref $value or ref $value eq 'Regexp' |
|
377
|
1 |
3 |
if ($$self{'debug'}) |
|
389
|
1 |
3 |
if (ref $plugin eq 'ARRAY') |
|
497
|
0 |
1 |
if (-e $dest) |
|
504
|
0 |
1 |
unless ($$self{'plugin'}->open_for_backup('path', $dest)) |
|
517
|
1 |
0 |
$relative ? : |
|
518
|
0 |
1 |
if ($name) |
|
521
|
0 |
0 |
unless ($name =~ $exclude->re) |
|
522
|
0 |
0 |
if -d $file |
|
524
|
0 |
0 |
unless $r |
|
534
|
0 |
1 |
unless ($$self{'plugin'}->close_backup) |
|
596
|
1 |
0 |
unless defined $relative |
|
599
|
0 |
1 |
unless ($relative) |
|
604
|
0 |
1 |
if ($prof->profile_is_locked('name', $name)) |
|
614
|
0 |
1 |
unless $r |
|
670
|
1 |
2 |
unless $args{'message'} =~ /\n$/ |
|
671
|
3 |
0 |
if $$self{'log'} |
|
696
|
0 |
0 |
unless (-d $profd) |
|
700
|
0 |
0 |
unless (-r $filename) |
|
709
|
0 |
0 |
unless close $fh |
|
719
|
0 |
0 |
if ($_ =~ /user_pref($Mozilla::Backup::RE{'balanced'}{join $;, -'parens', '()'})\;/) |
|
721
|
0 |
0 |
if ($args =~ /\(\s*($Mozilla::Backup::RE{'delimited'}{join $;, -'delim', '"'}{-'esc'})\,\s*(.+)\s*\)/) { } |
|
741
|
0 |
0 |
if ($pref =~ $re->re) { } |
|
|
0 |
0 |
elsif ($pref =~ /\.dir$/) { } |
|
742
|
0 |
0 |
if (exists $prefs{$pref . '-rel'}) { } |
|
743
|
0 |
0 |
if ($prefs{$pref . '-rel'} =~ /\"\[ProfD\](.+)\"/) { } |
|
746
|
0 |
0 |
unless (-e $path) |
|
768
|
0 |
0 |
if (keys %prefs) { } |
|
791
|
0 |
0 |
unless close $fh |
|
840
|
1 |
0 |
unless ($prof->profile_exists('name', $name)) |
|
844
|
0 |
1 |
unless ($prof->create_profile('name', $name, 'is_default', $def)) |
|
850
|
0 |
1 |
unless ($prof->profile_exists('name', $name)) |
|
857
|
0 |
1 |
unless (-d $dest) |
|
861
|
0 |
1 |
if ($prof->profile_is_locked('name', $name)) |
|
870
|
1 |
0 |
if ($$self{'plugin'}->open_for_restore($path)) { } |
|
876
|
0 |
0 |
unless ($file =~ $exclude->re) |
|
877
|
0 |
0 |
unless ($$self{'plugin'}->restore_file($file, $dest)) |
|
884
|
0 |
1 |
if ($munge) |
|
885
|
0 |
0 |
if (my $filename = _catfile($dest, 'prefs.js')) { } |
|
890
|
0 |
0 |
unless $r |
|
913
|
0 |
0 |
if ('Mozilla::ProfilesIni'->can($meth)) { } |
|
918
|
0 |
0 |
if ($_[0] eq 'type') { } |