Branch Coverage

blib/lib/Socialtext/Resting.pm
Criterion Covered Total %
branch 61 134 45.5


line true false branch
200 0 4 ref $pname ? :
210 1 3 if $self->json_verbose
212 0 4 if $accept eq 'perl_hash'
219 3 1 if ($status == 200 or $status == 404) { }
221 0 3 if ($self->accept || '') eq 'perl_hash'
256 0 0 if ($status == 200 or $status == 404) { }
287 0 0 if ($status == 204 or $status == 201) { }
320 1 0 if ($status == 204 or $status == 201) { }
351 0 0 if ($status == 204) { }
384 0 0 if ($status == 204) { }
430 1 0 if ($status == 204 or $status == 201) { }
468 0 0 unless $status == 204
510 1 5 if (ref $page_content)
517 1 5 if (my $prev_etag = $$self{'etag_cache'}{$workspace}{$page_id})
529 4 2 if ($status == 204 or $status == 201) { }
563 1 0 if ($status == 204) { }
597 0 12 if ref $id
598 0 12 unless defined $id
710 0 3 if ($self->filter)
713 0 3 if ($self->query)
716 0 3 if ($self->order)
719 0 3 if ($self->offset)
722 0 3 if ($self->count)
725 0 3 if (@extend)
744 2 1 if (exists $replacements{'_query'})
749 1 1 if (my $query = join(';', @params))
750 0 1 if ($uri =~ /\?/) { }
759 0 3 if $accept eq 'perl_hash'
766 0 3 if ($status == 200 and wantarray) { }
3 0 elsif ($status == 200) { }
0 0 elsif ($status == 404) { }
0 0 elsif ($status == 302) { }
770 0 3 if ($self->accept || '') eq 'perl_hash'
809 0 0 if $uri
843 0 0 $incipients ? :
908 0 0 if ($status == 200 or $status == 404) { }
943 0 0 if $wksp
945 0 0 if $wksp
987 0 0 if ($status == 200) { }
0 0 elsif ($status == 404) { }
1022 0 0 if ($status == 201 or $status == 400 or $status == 409) { }
1065 0 0 if ($status == 201 or $status == 400) { }
1096 0 0 if ($status == 200) { }
1128 1 0 if $status == 200
1175 0 0 if ($status == 200) { }
1247 3 1 unless $args{$k . 's'}
1248 1 3 if $args{$k}
1249 2 2 if @ids
1253 6 0 unless exists $args{$k}
1268 2 0 if ($status == 204 or $status == 201) { }
1296 0 0 if ($status == 204 or $status == 201) { }
1322 0 0 if ($status == 200) { }
1341 0 0 unless $args{'id'}
1349 0 0 if ($status == 204) { }
1362 0 19 unless $server
1365 0 19 if $self->verbose
1368 19 0 unless ($self->siteminder)
1369 0 19 if ($self->user_cookie) { }
1376 7 12 if $p{'accept'}
1377 11 8 if $p{'type'}
1378 1 18 if $p{'if_match'}
1379 0 19 if $self->on_behalf_of
1384 7 12 if ($p{'method'} eq 'PUT')
1386 6 1 if $p{'content'}
1390 0 19 if (my $cookie = $self->cookie)
1393 11 8 if $p{'content'}
1396 0 19 if ($self->http_header_debug)