Condition Coverage

script/rt
Criterion Covered Total %
condition 34 272 12.5


and 3 conditions

line !l l&&!r l&&r condition
55 0 1 0 $ARGV[0] and $ARGV[0] =~ /^(?:--help|-h)$/
158 0 0 1 @ARGV and exists $actions{$ARGV[0]}
222 0 0 1 $action and $actions{$action} eq \&main::help
231 0 0 0 $_ =~ s/s$// and exists $help{$_}
236 1 0 0 $type and $action
243 0 0 0 $type and $action
315 0 0 0 $reverse_sort and $data{'orderby'} =~ /^-/
357 0 0 0 $queue and $q
0 0 0 $queue and $q and not $q =~ /Queue\s*=/i
0 0 0 $queue and $q and not $q =~ /Queue\s*=/i and not $q =~ /id\s*=/i
394 0 0 0 /^-$/ and not $slurped
0 0 0 /^\d+$/ and my $spc2 = is_object_spec("ticket/$_", $type)
0 0 0 m[^\d+/] and my $spc3 = is_object_spec("ticket/$_", $type)
496 0 0 0 /^-$/ and not $slurped || $input
0 0 0 /^\d+$/ and my $spc2 = is_object_spec("ticket/$_", $type)
520 0 0 0 @ARGV and $ARGV[0] =~ /^($field)([+-]?=)(.*)$/s
538 0 0 0 @ARGV and $ARGV[0] =~ /^($field)=(.*)$/s
677 0 0 0 $type and $type eq "ticket"
0 0 0 $type and $type eq "ticket" and not $text =~ /^Content-Type:/m
678 0 0 0 $content_type and $content_type ne "text/plain"
698 0 0 0 $synerr && $newtext eq $text
789 0 0 0 not $id and m[^(?:ticket/)?($idlist)$]
799 0 0 0 -f $ARGV[0] and -r $ARGV[0]
931 0 0 0 @ARGV and $ARGV[0] =~ /^-/
950 0 0 0 $type eq "ticket" and not exists $ltypes{lc $rel}
1032 0 0 0 do { ref $content eq 'HASH' } && do { my @data; foreach my $k (keys %$content) { if (ref $content->{$k} eq 'ARRAY') { foreach my $v (@{$$content{$k};}) { push @data, $k, $v; } ; } else { push @data, $k, $content->{$k}; } ; } ; $content = \@data }
1198 0 0 0 defined $cookie and $cookie =~ /^RT_SID_(.[^;,\s]+=[0-9A-Fa-f]+);/
1283 49 30 0 $state == 0 and $line =~ /^#/
0 1 78 $state <= 1 and $line =~ /^($field):(?:\s+(.*))?$/
1288 0 0 0 @lines and $lines[0] =~ /^#/
1296 30 0 48 defined $2 && length $2
1299 0 108 662 @lines and $lines[0] eq '' || $lines[0] =~ /^\s+/
1302 0 78 30 @v and $v[-1] eq ""
1367 1 1 0 $line and length($line) + length($v) - rindex($line, "\n") >= 70
1371 0 0 1 @lines and not $lines[-1] =~ /\n\n$/
1393 0 0 0 @lines and not $lines[-1] =~ /\n\n$/
1518 0 0 0 $error and $ntext eq $text
1648 0 0 0 defined $main::a->[1] && defined $main::b->[1]
1728 0 0 0 $yr and defined $mon
0 0 0 $yr and defined $mon and $day
0 0 0 $yr and defined $mon and $day and defined $hr
0 0 0 $yr and defined $mon and $day and defined $hr and defined $sec
1741 0 0 0 $old and $new
1788 0 0 0 exists $k->{'Content'} and not $k->{'Content'} =~ /to have no content$/
0 0 0 exists $k->{'Content'} and not $k->{'Content'} =~ /to have no content$/ and ($k->{'Type'} || '') ne "EmailRecord"
1790 0 0 0 exists $k->{'Attachments'} and $k->{'Attachments'}

or 2 conditions

line l !l condition
80 0 0 eval { do { (getpwuid $<)[7] } } || $ENV{'HOME'} || $ENV{'LOGDIR'} || $ENV{'HOMEPATH'} || '.'
94 0 1 $ENV{'RTCONFIG'} || '.rtrc'
239 0 1 $type || $action || 'introduction'
321 0 0 $type ||= "ticket"
654 0 0 $args ||= ""
841 0 0 $wtime || ''
0 0 $content_type || 'text/plain'
0 0 $msg || ''
1549 0 0 $ENV{'EDITOR'} || $ENV{'VISUAL'} || 'vi'
1788 0 0 $k->{'Type'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
94 0 0 0 eval { do { (getpwuid $<)[0] } } || $ENV{'USER'} || $ENV{'USERNAME'}
180 0 0 0 /^#/ or /^\s*$/
223 0 0 1 $action or $type
239 0 1 0 $key ||= $type || $action || 'introduction'
274 0 0 0 defined $q || /^-/
311 0 0 0 $rawprint or exists $data{'format'}
435 0 0 0 $_ =~ m[/content$] or $_ =~ m[/links]
0 0 0 $_ =~ m[/content$] or $_ =~ m[/links] or not $_ =~ /^ticket/
496 0 0 0 $slurped || $input
593 0 0 0 $edit or %main::add
0 0 0 $edit or %main::add or %main::del
0 0 0 $edit or %main::add or %main::del or not $cl
0 0 0 $edit or %main::add or %main::del or not $cl or @new_objects
612 0 0 0 $e or not @$o
682 0 0 0 $input || $cl
0 0 0 $edit or not $input || $cl
713 0 0 0 $input || $cl
0 0 0 $edit or not $input || $cl
754 0 0 0 $action eq "delete" or $action eq "del"
0 0 0 $action eq "resolve" or $action eq "res"
862 0 0 0 $edit or not $msg
1065 0 0 0 $config{'passwd'} || read_passwd()
1071 0 0 0 $config{'passwd'} || read_passwd()
1111 0 0 0 $res->is_success or $res->code != 401
1156 1 0 0 $file || "$HOME/.rt_sessions"
1206 0 1 0 $file ||= $self->{'file'}
1214 0 0 0 /^$/ or /^#/
1225 0 0 0 $file ||= $self->{'file'}
1276 0 0 29 $e or $c
0 29 0 $e or $c or @$o
1299 209 483 78 $lines[0] eq '' || $lines[0] =~ /^\s+/
1307 30 1 452 not $ws or length $ls < length $ws
1330 1 0 0 $e or $c
1 0 0 $e or $c or @$o
1472 0 0 0 /^#/ or /^\s*$/
1618 0 2 0 $5 || $6
1648 0 0 0 defined $main::a->[1] || defined $main::b->[1]
1777 0 0 0 not $k->{'id'} or exists $k->{'Queue'}