Branch Coverage

blib/lib/RT/Extension/Converter/RT3.pm
Criterion Covered Total %
branch 0 180 0.0


line true false branch
65 0 0 if ($args{'Name'} eq 'root')
74 0 0 if ($user->Id)
75 0 0 if $self->config->debug
82 0 0 if ($val) { }
83 0 0 if $self->config->debug
84 0 0 if ($is_superuser)
86 0 0 if $self->config->debug
119 0 0 if ($queue->id)
120 0 0 if $self->config->debug
126 0 0 if ($val) { }
127 0 0 if $self->config->debug
160 0 0 if ($self->config->debug)
165 0 0 $val ? :
186 0 0 unless ($cf->Id)
188 0 0 if ($cf->Id)
193 0 0 unless ($cf->Id)
200 0 0 unless ($cf->Id)
242 0 0 unless $rightlist{$_}
244 0 0 unless @rights
249 0 0 unless ($user->id)
255 0 0 if $self->config->debug
257 0 0 if $self->config->debug
260 0 0 unless ($val)
265 0 0 if $self->config->debug
268 0 0 unless ($val)
291 0 0 if ($args{'EffectiveId'} and $args{'EffectiveId'} != $args{'id'})
298 0 0 if ($args{'Status'} eq 'dead')
307 0 0 unless ($queue->id)
316 0 0 if (defined $args{$type} and $args{$type} =~ /^\d+$/)
323 0 0 if ($args{'Area'} and my $area = delete $args{'Area'})
324 0 0 if $self->config->debug
331 0 0 unless $val
333 0 0 if ($args{'Told'})
372 0 0 if ($$txn{'type'} eq 'create' or $$txn{'type'} eq 'import') { }
0 0 elsif ($$txn{'type'} eq 'status') { }
0 0 elsif ($$txn{'type'} eq 'correspond') { }
0 0 elsif ($$txn{'type'} eq 'comments') { }
0 0 elsif ($$txn{'type'} eq 'queue_id') { }
0 0 elsif ($$txn{'type'} eq 'owner') { }
0 0 elsif ($$txn{'type'} eq 'effective_sn') { }
0 0 elsif ($$txn{'type'} eq 'area') { }
0 0 elsif ($$txn{'type'} eq 'requestors') { }
0 0 elsif ($$txn{'type'} eq 'date_due') { }
0 0 elsif ($$txn{'type'} eq 'subject') { }
0 0 elsif ($$txn{'type'} eq 'priority') { }
0 0 elsif ($$txn{'type'} eq 'final_priority') { }
0 0 elsif ($$txn{'type'} eq 'date_told') { }
410 0 0 if $$txn{'actor'} eq '_rt_system'
415 0 0 unless $Owner
417 0 0 if ($Owner == $RT::Nobody->Id and $$txn{'trans_data'} eq $$txn{'actor'}) { }
0 0 elsif ($Owner == $actor->Id and $new_user->Id == $RT::Nobody->Id) { }
0 0 elsif ($Owner != $RT::Nobody->Id) { }
451 0 0 if ($$txn{'trans_data'}) { }
509 0 0 if ($load_content)
510 0 0 if (my $trans_file = $self->_find_transaction_file('Path', $args{'Path'}, 'Date', $$txn{'trans_date'}, 'Filename', $filename))
518 0 0 if ($trans_args{'Type'}) { }
521 0 0 if ($$txn{'actor'}) { }
548 0 0 unless ($transaction)
576 0 0 if $self->config->debug
577 0 0 if (-e $file) { }
601 0 0 if $self->config->debug
603 0 0 unless open FILE, "<$trans_file"
609 0 0 if (/^--- Headers Follow ---$/) { }
0 0 elsif ($headers) { }
613 0 0 if /^\s*$/
614 0 0 if /^>From /
624 0 0 if ($header =~ m[^content-type:\s*multipart/(alternative|mixed|report|signed|digest|related)\s*;]i)
627 0 0 if ($header =~ m[;\s*boundary=\s*"?([\-\w\.\=/\+\%\#]+)"?]i) { }
0 0 elsif ($header =~ /;\s*boundary=\s*$/i and $headers[0] =~ m[\s*"?([\-\w\.\=/\+\%\#]+)"?]i) { }
0 0 elsif ($headers[0] =~ m[(^|;)\s*boundary=\s*"([ \-\w\.\=/\+\%\#]+)"]i) { }
0 0 elsif ($headers[0] =~ m[(^|;)\s*boundary=\s*"?([\-\w\.\=/\+\%\#]+)"?]i) { }
0 0 elsif ($headers[1] =~ m[(^|;)\s*boundary=\s*"?([\-\w\.\=/\+\%\#]+)"?]i) { }
0 0 elsif ($headers[2] =~ m[(^|;)\s*boundary=\s*"?([\-\w\.\=/\+\%\#]+)"?]i) { }
649 0 0 if $self->config->debug
650 0 0 unless (grep /^(\-\-)?\Q$boundary\E(\-\-)?$/, @body)
665 0 0 if $self->config->debug
670 0 0 if $self->config->debug
694 0 0 unless ($user_obj->Id)
697 0 0 unless ($user_obj->Id)
704 0 0 unless ($val)
709 0 0 unless ($user_obj->Id)
731 0 0 if ($self->config->debug) { }
740 0 0 unless ($mergeinto->Id)
754 0 0 if ($ticket_obj->id != $ticket)
759 0 0 unless $val
782 0 0 unless (@_)
804 0 0 unless shift()
807 0 0 if (not ref $args{$key}) { }
0 0 elsif (ref $args{$key} eq 'ARRAY') { }
814 0 0 if (ref $var) { }