blib/lib/Facebook/OpenGraph.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 46 | 60 | 76.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
139 | 1 | 0 | 5 | $self->redirect_uri and $self->app_id |
253 | 2 | 2 | 6 | $self->app_id and $self->secret |
372 | 10 | 0 | 3 | $q->{'method'} eq 'POST' and $q->{'body'} |
415 | 41 | 0 | 0 | &blessed($uri) and $uri->isa('URI') |
533 | 50 | 2 | 5 | $self->version and not $path =~ m[\A /v(?:\d+)\.(?:\d+)/ ]x |
597 | 44 | 0 | 1 | $object and ref $object eq 'HASH' |
620 | 0 | 0 | 0 | $r && $r eq 'HASH' |
line | l | !l | condition |
---|---|---|---|
21 | 42 | 25 | shift() || {} |
35 | 2 | 65 | $args->{'batch_limit'} || 50 |
4 | 63 | $args->{'is_beta'} || 0 | |
3 | 64 | $args->{'use_appsecret_proof'} || 0 | |
3 | 64 | $args->{'use_post_method'} || 0 | |
3 | 64 | $args->{'version'} || undef | |
88 | 47 | 13 | $path || '/' |
138 | 5 | 1 | $param_ref ||= {} |
161 | 0 | 4 | $param_ref->{'display'} ||= 'page' |
166 | 0 | 4 | $param_ref->{'response_type'} ||= 'code' |
439 | 2 | 39 | $headers ||= [] |
570 | 45 | 0 | $param_ref || {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
35 | 0 | 67 | 0 | $args->{'json'} || 'JSON'->new->utf8 |
1 | 66 | 0 | $args->{'ua'} || 'Furl::HTTP'->new('capture_request', 1, 'agent', 'Facebook::OpenGraph/' . $VERSION) | |
454 | 2 | 1 | 21 | $param_ref->{'source'} or $param_ref->{'file'} |
1 | 2 | 19 | $param_ref->{'source'} or $param_ref->{'file'} or $param_ref->{'upload_phase'} | |
2 | 1 | 18 | $param_ref->{'source'} or $param_ref->{'file'} or $param_ref->{'upload_phase'} or $param_ref->{'captions_file'} |