blib/lib/GitHub/API.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 24 | 0.0 |
line | l | !l | condition |
---|---|---|---|
36 | 0 | 0 | $opts{'url'} //= '' |
37 | 0 | 0 | $opts{'base_url'} ||= 'https://api.github.com' |
38 | 0 | 0 | $opts{'ua_opts'} // {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
34 | 0 | 0 | 0 | $ENV{'GH_USER'} // `git config github.user` |
0 | 0 | 0 | $opts{'user'} //= $ENV{'GH_USER'} // `git config github.user` | |
35 | 0 | 0 | 0 | $ENV{'GH_TOKEN'} // `git config github.token` |
0 | 0 | 0 | $opts{'token'} //= $ENV{'GH_TOKEN'} // `git config github.token` | |
41 | 0 | 0 | 0 | $opts{'ua'} ||= 'HTTP::Tiny'->new('verify_ssl', 1, 'agent', 'GitHub::API @ ', %{$opts{'ua_opts'} // {};}) |
44 | 0 | 0 | 0 | $opts{'headers'}{'Authorization'} ||= "token $opts{'token'}" |