Branch Coverage

blib/lib/App/Nopaste/Service/Gist.pm
Criterion Covered Total %
branch 5 28 17.8


line true false branch
29 0 0 defined $arg{'private'} ? :
0 0 defined $arg{'desc'} ? :
33 0 0 defined $arg{'filename'} ? :
49 0 0 if ($auth{'oauth_token'}) { }
71 1 3 if (my $oauth_token = $ENV{'GITHUB_OAUTH_TOKEN'}) { }
1 2 elsif ($ENV{'GITHUB_USER'} and $ENV{'GITHUB_PASSWORD'}) { }
83 0 2 if (-f $github_config)
88 0 0 if $username and $password
113 0 0 unless $username and $password
131 0 0 if ($response_content->{'token'}) { }
142 0 0 if ($res->is_error)
144 0 0 if ($res->code == 401)
150 0 0 if (($res->header('Client-Warning') || '') eq 'Internal response')
156 0 0 unless $id