Condition Coverage

blib/lib/Mail/SpamAssassin/Plugin/DCC.pm
Criterion Covered Total %
condition 15 104 14.4


and 3 conditions

line !l l&&!r l&&r condition
283 0 0 0 $port && $port =~ /^\d+\z/
451 1 0 0 $cdcc and open CDCC, "$cdcc $cmd 2>&1 |"
465 0 1 0 not $conf->{'dcc_home'} and $cdcc_home
483 1 0 0 $self->{'dcc_version'} =~ /\d+\.(\d+)\.(\d+)$/ and $1 < 3 || $1 == 3 && $2 < 123
485 0 0 0 $1 == 3 and $2 < 50
505 2 0 0 defined $pgmpath and $pgmpath ne ''
566 4 0 0 -S $sockpath and -w _
4 0 0 -S $sockpath and -w _ and -r _
583 1 0 0 $dccproc and -x $dccproc
732 0 0 0 defined $x_dcc and $x_dcc =~ /\brep=(\d+)/
749 0 0 0 $dcc_rep >= $min && $dcc_rep <= $max
764 0 0 0 $v = shift @$resp and $v =~ s/^\t(.+)\s*\n/ $1/
772 0 0 0 $v = shift @$resp and $v =~ s/^([^:]*):/$1/
897 0 0 4 defined $pgm and $pgm eq 'dccproc'
926 0 0 0 defined $raw_x_dcc and $raw_x_dcc =~ /^X-DCC/
977 0 0 0 $old_cksums and $self->dccsight_learn($permsgstatus, $old_cksums)

or 2 conditions

line l !l condition
482 0 1 $conf->{'dccifd_options'} || ''
819 0 0 $envelope->{'helo'} || ''
915 0 0 $pgm || ''
921 4 0 $pgm || ''

or 3 conditions

line l !l&&r !l&&!r condition
108 0 60 0 ref $class || $class
233 0 0 0 not defined $value or $value eq ''
238 0 0 0 $stat_errn != 0 or not -d _
271 0 0 0 not defined $value or $value eq ''
283 0 0 0 not $port && $port =~ /^\d+\z/ or $port < 1
0 0 0 not $port && $port =~ /^\d+\z/ or $port < 1 or $port > 65535
330 0 0 0 not defined $value or $value eq ''
483 0 0 0 $1 < 3 || $1 == 3 && $2 < 123
485 0 0 0 $1 < 3 or $1 == 3 and $2 < 50
580 1 0 0 not defined $dccproc or $dccproc eq ''
630 0 0 4 $self->is_dccifd_available or $self->is_dccproc_available
685 4 0 0 not defined $x_dcc or $x_dcc eq ''
707 0 0 0 $count{'body'} >= $conf->{'dcc_body_max'} or $count{'fuz1'} >= $conf->{'dcc_fuz1_max'}
0 0 0 $count{'body'} >= $conf->{'dcc_body_max'} or $count{'fuz1'} >= $conf->{'dcc_fuz1_max'} or $count{'fuz2'} >= $conf->{'dcc_fuz2_max'}
0 0 0 $count{'body'} >= $conf->{'dcc_body_max'} or $count{'fuz1'} >= $conf->{'dcc_fuz1_max'} or $count{'fuz2'} >= $conf->{'dcc_fuz2_max'} or $count{'rep'} >= $conf->{'dcc_rep_percent'}
946 40 0 0 not defined $learn_score or $learn_score eq ''