Branch Coverage

blib/lib/WWW/Github/Files.pm
Criterion Covered Total %
branch 27 44 61.3


line true false branch
13 0 1 unless exists $options{'author'}
15 0 1 unless exists $options{'resp'}
17 0 1 unless exists $options{'branch'} or exists $options{'commit'}
22 3 3 unless exists $options{$key}
25 1 0 unless (exists $$self{'token'})
27 0 1 if exists $$self{'self_token'}
36 0 4 unless $path =~ m[^/]
40 1 3 if $path eq ''
42 2 2 if (ref $f_data eq 'ARRAY') { }
2 0 elsif ($$f_data{'type'} eq 'file') { }
45 1 1 $path eq '/' ? :
74 3 1 if $root
76 1 0 if ($$self{'branch'}) { }
93 0 5 unless ($res->is_success)
94 0 0 if ($res->message =~ /Internal Server Error/)
97 0 0 if ($res2->is_success)
102 0 0 unless ($res->is_success)
121 1 1 unless ($$self{'content'})
127 2 0 if ($$self{'encoding'} eq 'base64') { }
145 1 1 unless ($$self{'content'})
154 7 2 if ($$rec{'type'} eq 'file') { }
2 0 elsif ($$rec{'type'} eq 'dir') { }