Condition Coverage

blib/lib/Git/Bunch.pm
Criterion Covered Total %
condition 43 107 40.1


and 3 conditions

line !l l&&!r l&&r condition
241 10 0 0 defined $ir and ref $ir ne 'ARRAY'
251 10 0 0 defined $er and ref $er ne 'ARRAY'
276 15 0 0 -d "$dir/branches" and -f "$dir/HEAD"
302 12 12 12 $skip_non_repo and not $is_repo
307 3 3 0 -f $dir and $args->{'exclude_files'}
3 3 0 -d $dir and $args->{'exclude_non_git_dirs'}
309 18 0 0 $ir and not $e->{'name'} ~~ \@$ir
314 18 0 0 defined $irp and not $e->{'name'} =~ qr/$irp/
319 18 0 0 $er and $e->{'name'} ~~ \@$er
324 18 0 0 defined $erp and $e->{'name'} =~ qr/$erp/
329 18 0 0 $min_rat and &max(grep({defined $_;} $e->{'mtime'}, $e->{'commit_time'}, $e->{'status_time'}, $e->{'pull_time'})) < $min_rat
490 0 2 10 $exit == 0 and $output =~ /nothing to commit/
498 0 2 0 $exit == 0 and $output =~ /^\s*Unmerged paths:/m
0 1 1 $exit == 0 and $output =~ /(
0 0 1 $exit == 0 and $output =~ /(
0 0 0 $exit == 128 and $output =~ /Not a git repository/
680 0 1 4 $src_heads{$branch} and $dest_heads{$branch}
1 2 2 $src_heads{$branch} and $dest_heads{$branch} and $src_heads{$branch} eq $dest_heads{$branch}
709 0 3 0 $exit == 0 and $output =~ /Already up-to-date/
0 0 3 $exit == 0 and $output =~ /^Updating \s|
1076 4 0 0 $backup and not $created

or 2 conditions

line l !l condition
350 18 0 $title //= 'Directory'
352 4 14 $must_exist // 1
460 0 6 $args{'_loglevel'} // 'info'
484 0 0 $args{'_loglevel'} // 'info'
492 0 10 $args{'_loglevel'} // 'info'
500 0 0 $args{'_loglevel'} // 'warn'
507 0 1 $args{'_loglevel'} // 'warn'
516 0 1 $args{'_loglevel'} // 'warn'
520 0 0 $args{'_loglevel'} // 'warn'
526 0 0 $args{'_loglevel'} // 'error'
573 0 0 $args{'sort'} // ''
907 0 3 $args{'delete_branch'} // 0
912 0 3 $args{'action'} // 'sync'
915 0 0 $create_bare //= 1
1147 0 0 $args{'command_opts'} // {}
1223 0 0 delete $args{'command_opts'} // {}

or 3 conditions

line l !l&&r !l&&!r condition
919 2 0 1 -d $target or $args{'-dry_run'}
0 0 1 -d $target or $args{'-dry_run'} or $action eq 'list-source-repos'
929 0 0 3 $args{'-dry_run'} or $action eq 'list-source-repos'
969 0 0 6 $args{'skip_mtime_check'} or $args{'-dry_run'}