Branch Coverage

blib/lib/App/GitGot/Command/fork.pm
Criterion Covered Total %
branch 11 26 42.3


line true false branch
32 0 4 unless try_load_class('Net::GitHub')
36 1 3 unless my $github_url = shift @$args
43 0 1 unless $self->quiet
56 0 1 unless ($self->opt->noclone)
57 0 0 unless $self->quiet
60 0 0 unless ($self->opt->noremoteadd)
61 0 0 unless $self->quiet
74 0 1 unless $file->exists
82 0 2 unless $_
87 0 1 if (defined $config{'access_token'}) { }
1 0 elsif (defined $config{'pass'} and defined $config{'user'}) { }
94 0 0 if say STDERR q[Couldn't parse password or access_token info from ~/.github-identity]
102 2 1 unless my($owner, $repo) = $url =~ m[/github.com/([^/]+)/([^/]+?)(?:\.git)?$]u