Condition Coverage

blib/lib/Git/Bunch.pm
Criterion Covered Total %
condition 39 87 44.8


and 3 conditions

line !l l&&!r l&&r condition
227 10 0 0 defined $ir and ref $ir ne 'ARRAY'
237 10 0 0 defined $er and ref $er ne 'ARRAY'
262 15 0 0 -d "$dir/branches" and -f "$dir/HEAD"
288 12 12 12 $skip_non_repo and not $is_repo
293 3 3 0 -f $dir and $args->{'exclude_files'}
3 3 0 -d $dir and $args->{'exclude_non_git_dirs'}
295 18 0 0 $ir and not $e->{'name'} ~~ \@$ir
300 18 0 0 defined $irp and not $e->{'name'} =~ qr/$irp/
305 18 0 0 $er and $e->{'name'} ~~ \@$er
310 18 0 0 defined $erp and $e->{'name'} =~ qr/$erp/
315 18 0 0 $min_rat and &max(grep({defined $_;} $e->{'mtime'}, $e->{'commit_time'}, $e->{'status_time'}, $e->{'pull_time'})) < $min_rat
474 0 2 10 $exit == 0 and $output =~ /nothing to commit/
481 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/
655 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}
684 0 3 0 $exit == 0 and $output =~ /Already up-to-date/
0 0 3 $exit == 0 and $output =~ /^Updating \s|
1051 4 0 0 $backup and not $created

or 2 conditions

line l !l condition
336 18 0 $title //= 'Directory'
338 4 14 $must_exist // 1
548 0 0 $args{'sort'} // ''
882 0 3 $args{'delete_branch'} // 0
887 0 3 $args{'action'} // 'sync'
890 0 0 $create_bare //= 1

or 3 conditions

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