Branch Coverage

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


line true false branch
30 0 0 defined $arg{'private'} ? :
0 0 defined $arg{'desc'} ? :
34 0 0 defined $arg{'filename'} ? :
50 0 0 if ($auth{'oauth_token'}) { }
72 1 3 if (my $oauth_token = $ENV{'GITHUB_OAUTH_TOKEN'}) { }
1 2 elsif ($ENV{'GITHUB_USER'} and $ENV{'GITHUB_PASSWORD'}) { }
84 0 2 if (-f $github_config)
89 0 0 if $username and $password
114 0 0 unless $username and $password
132 0 0 if ($response_content->{'token'}) { }
143 0 0 if ($res->is_error)
145 0 0 if ($res->code == 401)
151 0 0 if (($res->header('Client-Warning') || '') eq 'Internal response')
157 0 0 unless $id