Branch Coverage

blib/lib/App/Yabsm/Config/Parser.pm
Criterion Covered Total %
branch 70 104 67.3


line true false branch
63 0 37 unless -f $file
64 0 37 unless -r $file
80 7 9 if ($config_valid) { }
81 0 7 wantarray ? :
133 162 74 wantarray ? :
171 0 4 wantarray ? :
186 0 38 wantarray ? :
201 20 16 $include_tf ? :
209 0 36 wantarray ? :
224 10 16 $include_tf ? :
234 0 26 wantarray ? :
249 9 16 $include_tf ? :
258 0 25 wantarray ? :
286 0 35 if exists $config{'yabsm_dir'}
296 1 38 if exists $config{'subvols'}{$name}
297 0 38 if exists $config{'snaps'}{$name}
298 0 38 if exists $config{'ssh_backups'}{$name}
299 0 38 if exists $config{'local_backups'}{$name}
308 0 22 if exists $config{'subvols'}{$name}
309 1 21 if exists $config{'snaps'}{$name}
310 0 21 if exists $config{'ssh_backups'}{$name}
311 0 21 if exists $config{'local_backups'}{$name}
320 0 11 if exists $config{'subvols'}{$name}
321 0 11 if exists $config{'snaps'}{$name}
322 1 10 if exists $config{'ssh_backups'}{$name}
323 0 10 if exists $config{'local_backups'}{$name}
332 0 9 if exists $config{'subvols'}{$name}
333 0 9 if exists $config{'snaps'}{$name}
334 0 9 if exists $config{'ssh_backups'}{$name}
335 0 9 if exists $config{'local_backups'}{$name}
347 0 16 wantarray ? :
384 0 65 wantarray ? :
432 2 14 unless ($config_ref->{'yabsm_dir'})
436 1 0 unless ($config_ref->{'snaps'} or $config_ref->{'ssh_backups'} or $config_ref->{'local_backups'})
444 9 7 if (@error_msgs) { }
473 11 0 if (defined $subvol)
474 1 10 unless (grep {$subvol eq $_;} keys %{$$config_ref{"subvols"};})
482 10 1 if (defined $timeframes)
492 16 0 wantarray ? :
516 7 0 if (defined $subvol)
517 1 6 unless (grep {$subvol eq $_;} keys %{$$config_ref{"subvols"};})
525 7 0 if (defined $timeframes)
535 16 0 wantarray ? :
559 7 0 if (defined $subvol)
560 1 6 unless (grep {$subvol eq $_;} keys %{$$config_ref{"subvols"};})
568 7 0 if (defined $timeframes)
578 16 0 wantarray ? :
597 22 29 if ($tframe eq '5minute') { }
10 19 elsif ($tframe eq 'hourly') { }
7 12 elsif ($tframe eq 'daily') { }
6 6 elsif ($tframe eq 'weekly') { }
6 0 elsif ($tframe eq 'monthly') { }