Condition Coverage

blib/lib/News/Web.pm
Criterion Covered Total %
condition 0 163 0.0


and 2 conditions

line l !l condition
530 0 0 "Couldn't connect to ${group}: $!\n" && (return '')
563 0 0 "Couldn't get xover info: $!\n" && (return '')
755 0 0 "Couldn't get newsgroups: $!\n" && (return '')
766 0 0 "Couldn't get group descriptions: $!\n" && (return '')
812 0 0 "Couldn't get newsgroups: $!\n" && (return '')

and 3 conditions

line !l l&&!r l&&r condition
156 0 0 0 $args{'group'} and $args{'number'}
211 0 0 0 my $group = $args{'group'} and my $number = $args{'number'}
442 0 0 0 not $headers and $line =~ /^([\w-]+):\s+(.*)$/
0 0 0 not $headers and /^\s+/
535 0 0 0 $args{'last'} and $args{'last'} >= $first
547 0 0 0 defined $args{'first'} and $args{'first'} >= $first
548 0 0 0 defined $args{'last'} and $args{'last'} <= $last
658 0 0 0 $params and ref $params
819 0 0 0 $i < scalar @array and $i < $levels
976 0 0 0 $width <= 0 and length $string <= $real
1062 0 0 0 $width <= 0 and length $retstring <= $real

or 2 conditions

line l !l condition
168 0 0 $self->nntp->article($args{'number'}) || (return "No such message '$args{'number'}' in '$args{'group'}'")
180 0 0 $args{'fullhead'} || 0
285 0 0 $args{'default'} || {}
286 0 0 $args{'params'} || {}
289 0 0 $args{'columns'} || $News::Web::COLUMNS || 80
290 0 0 $args{'rows'} || $News::Web::ROWS || 30
291 0 0 $args{'sigrows'} || $News::Web::SIGROWS || 4
297 0 0 $self->nntp->article($clean) || []
300 0 0 $args{'author'} || ''
0 0 $args{'group'} || undef
0 0 $args{'prefix'} || ''
0 0 $args{'domain'} || ''
0 0 $args{'wraptype'} || 'overflow'
321 0 0 $art->header($_) || ''
329 0 0 $art->header($_) || ''
0 0 $art->header($_) || ''
366 0 0 $args{'signature'} || ''
421 0 0 $args{'params'} || {}
529 0 0 $args{'group'} || ''
553 0 0 $args{'default'} || \%args
554 0 0 $args{'sort'} || 'thread'
557 0 0 $self->nntp->overview_fmt || undef
662 0 0 $defaults ||= {}
666 0 0 $first ||= 1
678 0 0 $sort1{'sort'} ||= 'thread'
680 0 0 $sort2{'sort'} ||= '-thread'
810 0 0 $levels ||= 1
0 0 $pattern ||= '*'
846 0 0 $hash ||= {}
0 0 $default ||= {}
897 0 0 $args{'subjwidth'} || 55
901 0 0 $args{'fromwidth'} || 25
0 0 $args{'fromtype'} || 'name'
960 0 0 $width ||= 55
0 0 $depth ||= 0
0 0 $string ||= ''
993 0 0 $width ||= 25
0 0 $type ||= 'nameemail'
0 0 $string ||= ''
1043 0 0 $address ||= 'unknown@unknown.site.invalid'
1046 0 0 $address ||= ''
0 0 $comment ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
79 0 0 0 ref $proto || $proto
184 0 0 0 $args{'clean'} or $args{'plaintext'}
193 0 0 0 $args{'fullhead'} or $args{'plaintext'}
578 0 0 0 $args{'fields'} || $overview->fields
1006 0 0 0 $2 || $3
1007 0 0 0 $1 || $4
1013 0 0 0 $2 || $3
1014 0 0 0 $1 || $4
1022 0 0 0 $2 || $3
1023 0 0 0 $1 || $4
1042 0 0 0 $comment ||= $string
1059 0 0 0 $retstring ||= $address