| 1 | package App::gh; | ||||||||||||||||||||||||||||
| 2 | 2 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 2 | our $VERSION = '0.66'; | |||||||||||||||||||||||||||
| 5 | 2 | ▶ | use App::gh::Config; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 2 | ▶ | use App::gh::API; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | 2 | ▶ | use Net::GitHub; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 8 | 2 | ▶ | use Cwd; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | 2 | require App::gh::Git; | |||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | 2 | my $GITHUB; | |||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | 0 | ▶ | sub config { | ||||||||||||||||||||||||||
|
Subroutine
config: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 14 | 0 | return "App::gh::Config"; | |||||||||||||||||||||||||||
| 15 | } | ||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | 0 | ▶ | sub git { | ||||||||||||||||||||||||||
|
Subroutine
git: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 18 | 0 | return App::gh::Git->repository; | |||||||||||||||||||||||||||
| 19 | } | ||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 0 | ▶ | sub github { | ||||||||||||||||||||||||||
|
Subroutine
github: not called CC=6 SCAR=37.4
Pod
undocumented
| |||||||||||||||||||||||||||||
| 22 | 0 | my $class = shift; | |||||||||||||||||||||||||||
| 23 | 0 | my $access_token = $class->config->github_access_token; | |||||||||||||||||||||||||||
| 24 | 0 | ▶ | return $GITHUB ||= Net::GitHub->new( access_token => $access_token ) if $access_token; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$GITHUB ||= "Net::GitHub"->new("access_token", $access_token)
MC/DC0%0/2
$GITHUB ||= "Net::GitHub"->new("access_token", $access_token)
$GITHUB
"Net::GitHub"->new("access_token", $access_token)
Truth table0%0/3
A ||= B
A= $GITHUBB= "Net::GitHub"->new("access_token", $access_token)
| |||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||
| 26 | 0 | my $github_id = $class->config->github_id; | |||||||||||||||||||||||||||
| 27 | 0 | my $github_password = $class->config->github_password; | |||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | 0 | ▶ | die "Please configure your github.user in .gitconfig (see App::gh pod)\n" | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 30 | unless $github_id; | ||||||||||||||||||||||||||||
| 31 | 0 | ▶ | die "Please configure your github.password in .gitconfig (See App::gh pod)\n" | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 32 | unless $github_password; | ||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||
| 34 | 0 | ▶ | return $GITHUB ||= Net::GitHub->new( # Net::GitHub::V3 | ||||||||||||||||||||||||||
|
Condition0%0/3
$GITHUB ||= "Net::GitHub"->new("login", $github_id, "pass", $github_password)
MC/DC0%0/2
$GITHUB ||= "Net::GitHub"->new("login", $github_id, "pass", $github_password)
$GITHUB
"Net::GitHub"->new("login", $github_id, "pass", $github_password)
Truth table0%0/3
A ||= B
A= $GITHUBB= "Net::GitHub"->new("login", $github_id, "pass", $github_password)
| |||||||||||||||||||||||||||||
| 35 | login => $github_id, | ||||||||||||||||||||||||||||
| 36 | pass => $github_password, | ||||||||||||||||||||||||||||
| 37 | # $class->config->github_token, | ||||||||||||||||||||||||||||
| 38 | ); | ||||||||||||||||||||||||||||
| 39 | } | ||||||||||||||||||||||||||||
| 40 | |||||||||||||||||||||||||||||
| 41 | 2 | 1; | |||||||||||||||||||||||||||
| 42 | __END__ | ||||||||||||||||||||||||||||