line |
true |
false |
branch |
113
|
1 |
0 |
if (exists $params->{'sharing'} and defined $params->{'sharing'} and $params->{'sharing'} =~ /\bpublic\b/i) |
117
|
1 |
0 |
unless exists $params->{'url'} |
119
|
1 |
0 |
if (exists $params->{'url'} and defined $params->{'url'}) |
121
|
1 |
0 |
unless exists $params->{'sharing'} |
125
|
0 |
0 |
unless exists $params->{'format'} and defined $params->{'format'} |
171
|
1 |
7 |
unless defined $id |
172
|
1 |
6 |
unless $id =~ /^\d+$/ |
174
|
5 |
1 |
if (defined $params and ref $params eq 'HASH') { } |
184
|
0 |
0 |
unless scalar keys %$params |
186
|
0 |
0 |
if (exists $params->{'sharing'} and defined $params->{'sharing'} and $params->{'sharing'} =~ /\bpublic\b/i) |
190
|
0 |
0 |
unless exists $params->{'url'} and defined $params->{'url'} |
192
|
0 |
0 |
if (exists $params->{'url'} and defined $params->{'url'}) |
196
|
0 |
0 |
unless exists $params->{'sharing'} and defined $params->{'sharing'} and $params->{'sharing'} =~ /\bpublic\b/i |
230
|
1 |
1 |
unless defined $id |
231
|
1 |
0 |
unless $id =~ /^\d+$/ |
281
|
7 |
0 |
if (defined $params) |
290
|
1 |
0 |
if (exists $params->{'start_date'} and defined $params->{'start_date'}) { } |
|
0 |
0 |
elsif (exists $params->{'end_date'} and defined $params->{'end_date'}) { } |
292
|
1 |
0 |
unless exists $params->{'end_date'} and defined $params->{'end_date'} |
294
|
0 |
0 |
unless _is_valid_date($params->{'start_date'}) |
296
|
0 |
0 |
unless _is_valid_date($params->{'end_date'}) |
300
|
0 |
0 |
unless exists $params->{'start_date'} and defined $params->{'start_date'} |
304
|
0 |
0 |
if (exists $params->{$_} and defined $params->{$_}) |
370
|
2 |
0 |
if (exists $params->{'meta'} and defined $params->{'meta'}) |
372
|
2 |
0 |
unless ref $params->{'meta'} eq 'HASH' |
418
|
1 |
7 |
unless defined $metric |
419
|
1 |
6 |
unless $metric =~ /^\d+$/ |
476
|
1 |
9 |
unless defined $metric |
477
|
1 |
8 |
unless $metric =~ /^\d+$/ |
528
|
1 |
8 |
unless defined $metric |
529
|
1 |
7 |
unless $metric =~ /^\d+$/ |
585
|
7 |
0 |
if (defined $params) |
594
|
1 |
0 |
if (exists $params->{'start_date'} and defined $params->{'start_date'}) { } |
|
0 |
0 |
elsif (exists $params->{'end_date'} and defined $params->{'end_date'}) { } |
596
|
1 |
0 |
unless exists $params->{'end_date'} and defined $params->{'end_date'} |
598
|
0 |
0 |
unless _is_valid_date($params->{'start_date'}) |
600
|
0 |
0 |
unless _is_valid_date($params->{'end_date'}) |
604
|
0 |
0 |
unless exists $params->{'start_date'} and defined $params->{'start_date'} |
608
|
0 |
0 |
if (exists $params->{$_} and defined $params->{$_}) |
683
|
0 |
0 |
if exists $params->{'meta'} and defined $params->{'meta'} |
699
|
2 |
0 |
if (defined $params and ref $params eq 'HASH') |
700
|
0 |
2 |
if (exists $params->{'id'} and defined $params->{'id'}) { } |
|
0 |
4 |
elsif (exists $params->{'ref_id'} and defined $params->{'ref_id'}) { } |
715
|
0 |
0 |
if defined $params and exists $params->{'value'} and defined $params->{'value'} |