blib/lib/WWW/FCM/HTTP/V1/OAuth.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 13 | 33 | 39.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
54 | 3 | 0 | 0 | $res->code == 401 and not $args{'retry'} |
line | l | !l | condition |
---|---|---|---|
29 | 3 | 1 | $args{'scopes'} ||= [] |
33 | 0 | 4 | $args{'cache'} ||= undef |
51 | 0 | 3 | $args{'content_type'} || 'application/json; UTF-8' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
27 | 0 | 4 | 0 | $args{'grant_type'} ||= $DEFAULT_GRANT_TYPE |
28 | 0 | 4 | 0 | $args{'timeout'} ||= $DEFAULT_TIMEOUT |
30 | 0 | 4 | 0 | $args{'jwt_config'} ||= _jwt_config_from_json($args{'api_key_json'}, $args{'scopes'}) |
31 | 0 | 4 | 0 | $args{'token_url'} ||= $args{'jwt_config'}{'token_url'} |
32 | 0 | 4 | 0 | $args{'ua'} ||= 'Furl'->new('timeout', $args{'timeout'}) |
34 | 0 | 4 | 0 | $args{'expires_in'} ||= $DEFAULT_EXPIRES_IN |
51 | 3 | 0 | 0 | $args{'content'} || () |
71 | 0 | 4 | 0 | $secret->{'token_url'} || $DEFAULT_TOKEN_URL |