Condition Coverage

blib/lib/SVN/Notify.pm
Criterion Covered Total %
condition 76 112 67.8


and 3 conditions

line !l l&&!r l&&r condition
749 2848 0 210 $params{'language'} and not $ENV{'LANG'}
762 2723 335 0 $params{'revision_url'} and not $params{'revision_url'} =~ /%s/
1049 2 0 1 -f $file and -x _
1132 231 75 0 $self->{'to_regex_map'} && $self->{'to_email_map'}
1179 144 156 0 $self->{'subject_cx'} and $self->{'verbose'} > 1
1263 32699 11658 2404 $2 ne ' ' and $1 ne '_'
1267 2477 97 51 $self->{'subject_cx'} and $. == 1
1340 2580 0 45 $self->{'max_sub_length'} and length $self->{'subject'} > $self->{'max_sub_length'}
1571 0 1523 62 $start and @$start
1709 0 1514 62 $end and @$end

or 2 conditions

line l !l condition
696 944 2116 $params{'filters'} ||= {}
703 0 568 $filts->{$k} ||= []
715 62 707 $filts->{$k} ||= []
737 3 3055 $params{'verbose'} ||= 0
738 0 2746 $params{'charset'} || 'UTF-8'
741 0 2830 $params{'diff_content_type'} || 'text/plain'
966 0 4 $opts->{'encoding'} || 'UTF-8'
1974 0 156 $self->{'ticket_map'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
724 963 0 3 $params{'to'} || ()
735 0 0 0 $ENV{'SVNLOOK'} || $class->find_exe('svnlook')
3058 0 0 $params{'svnlook'} ||= $ENV{'SVNLOOK'} || $class->find_exe('svnlook')
736 674 181 2203 $params{'with_diff'} ||= $params{'attach_diff'}
738 312 2746 0 $params{'encoding'} ||= $params{'charset'} || 'UTF-8'
739 257 2801 0 $params{'svn_encoding'} ||= $params{'encoding'}
740 257 2801 0 $params{'diff_encoding'} ||= $params{'svn_encoding'}
741 228 2830 0 $params{'diff_content_type'} ||= $params{'diff_content_type'} || 'text/plain'
743 0 0 0 $ENV{'SENDMAIL'} || $class->find_exe('sendmail')
3050 0 0 $params{'sendmail'} ||= $ENV{'SENDMAIL'} || $class->find_exe('sendmail')
746 3050 8 0 $params{'sendmail'} or $params{'smtp'}
761 94 179 2723 delete $params{'svnweb_url'} || delete $params{'viewcvs_url'}
62 273 2723 $params{'revision_url'} ||= delete $params{'svnweb_url'} || delete $params{'viewcvs_url'}
1085 2713 0 1 @{$self->{'to'};} or $self->{'to_regex_map'}
0 0 1 @{$self->{'to'};} or $self->{'to_regex_map'} or $self->{'to_email_map'}
1117 75 160 2564 $self->{'to_regex_map'} or $self->{'subject_cx'}
160 71 2493 $self->{'to_regex_map'} or $self->{'subject_cx'} or $self->{'to_email_map'}
1174 1751 362 0 $cx ||= $_
1175 206 1907 1339 not $cx or m[^\Q$cx\E(?:$|/|\\)]
1542 73 86 0 $self->{'boundary'} ||= join('', (('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'), ('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'), 0..9)[map {rand 62;} 0..10])
1644 130 104 0 $2 || $1
1790 241 91 0 $_ticket_regexen{$regex} || $regex