line |
true |
false |
branch |
23
|
0 |
20 |
if (@_ & 1)
|
31
|
2 |
18 |
if (defined $id)
|
33
|
0 |
2 |
if ($self->can("parent_id"))
|
37
|
0 |
0 |
if (defined $parent_id) { }
|
43
|
1 |
1 |
if ($self->autoget)
|
66
|
24 |
43 |
if (@_)
|
67
|
20 |
4 |
defined((&CORE::GLOBAL::caller(1))[3]) ? :
|
69
|
21 |
3 |
if ($settings->{'validation'} and $caller ne "RT::Client::REST::Object::from_form")
|
91
|
2 |
0 |
if ($self->autosync and $self->can("store") and "id" ne $method and "parent_id" ne $method and $caller ne "RT::Client::REST::Object::from_form")
|
105
|
10 |
55 |
if ($settings->{'list'}) { }
|
114
|
20 |
149 |
if ($settings->{'is_datetime'})
|
120
|
2 |
1 |
if (@_)
|
121
|
1 |
1 |
unless ($_[0]->isa("DateTime"))
|
139
|
9 |
160 |
if ($settings->{'list'})
|
147
|
0 |
1 |
unless (@_)
|
166
|
0 |
1 |
unless (@_)
|
195
|
2 |
1 |
if (exists $self->{'__dirty'})
|
212
|
0 |
1 |
if (exists $self->{'__dirty_cf'})
|
224
|
0 |
1 |
$all ? :
|
230
|
0 |
0 |
exists $attributes->{$attr}{'rest_name'} ? :
|
233
|
0 |
0 |
if (exists $attributes->{$attr}{'value2form'}) { }
|
|
0 |
0 |
elsif ($attributes->{$attr}{'list'}) { }
|
238
|
0 |
0 |
defined $self->$attr ? :
|
243
|
0 |
1 |
$all ? :
|
255
|
0 |
0 |
unless (@_)
|
261
|
0 |
0 |
unless ("HASH" eq ref $hash)
|
269
|
0 |
0 |
$i++ & 1 ? :
|
275
|
0 |
0 |
exists $attributes->{$attr}{'rest_name'} ? :
|
283
|
0 |
0 |
if ($key =~ m[^(?:cf|customfield)(?:-|\.\{)([#\s\w_:()?/-]+)])
|
287
|
0 |
0 |
if (defined $value and $value =~ /,/)
|
295
|
0 |
0 |
unless (exists $rest2attr{$key})
|
302
|
0 |
0 |
if ($settings->{'is_datetime'} and $value eq "Not set")
|
306
|
0 |
0 |
if (exists $attributes->{$method}{'form2value'}) { }
|
|
0 |
0 |
elsif ($attributes->{$method}{'list'}) { }
|
310
|
0 |
0 |
defined $value ? :
|
342
|
1 |
0 |
if (defined $self->id) { }
|
366
|
0 |
3 |
if (@_ & 1)
|
383
|
0 |
0 |
unless $_->blessed and $_->can("rethrow")
|
385
|
0 |
0 |
if ($_->isa('RT::Clite::REST::Object::InvalidAttributeException')) { }
|
397
|
0 |
0 |
if (length $query) { }
|
409
|
0 |
2 |
delete $opts{'reverseorder'} ? :
|
412
|
0 |
0 |
unless $_->blessed and $_->can("rethrow")
|
414
|
0 |
0 |
if ($_->isa('RT::Client::REST::Object::InvalidAttributeException')) { }
|
434
|
0 |
2 |
unless $_->blessed and $_->can("rethrow")
|
436
|
0 |
2 |
if ($_->isa('RT::Client::REST::InvalidQueryException')) { }
|
460
|
0 |
2 |
unless (exists $attributes->{$attr})
|
470
|
0 |
2 |
exists $attributes->{$attr}{'rest_name'} ? :
|
477
|
8 |
22 |
unless (defined $self->rt)
|
483
|
8 |
14 |
unless (defined $self->id)
|
494
|
3 |
4 |
unless (defined $self->rt)
|
505
|
0 |
0 |
unless (@_)
|
511
|
0 |
0 |
if (@_)
|
522
|
0 |
0 |
unless (@_)
|
528
|
0 |
0 |
if ('HASH' eq ref $name) { }
|
536
|
0 |
0 |
if (@_)
|
548
|
18 |
50 |
if (@_)
|
550
|
7 |
11 |
unless (UNIVERSAL::isa($rt, "RT::Client::REST"))
|
563
|
1 |
1 |
unless (UNIVERSAL::isa($rt, "RT::Client::REST"))
|
586
|
0 |
38 |
if $self->autostore and $self->can("store")
|