Branch Coverage

blib/lib/Bing/ContentAPI.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
61 0 0 if $param->{'debug'}
72 0 0 if scalar(@_) % 2
80 0 0 if scalar(@_) % 2
83 0 0 if $opt->{'body'}
89 0 0 if scalar(@_) % 2
99 0 0 if $opt->{'resource'} eq "custom"
101 0 0 if ($opt->{'resource'} eq "products" or $opt->{'resource'} eq "catalogs")
107 0 0 if $opt->{'method'} eq "list"
108 0 0 if $opt->{'method'} eq "insert"
111 0 0 if $opt->{'method'} eq "status"
114 0 0 if $opt->{'method'} =~ /get|delete/
117 0 0 if $opt->{'dryrun'}
118 0 0 if $opt->{'params'}
121 0 0 if $opt->{'resource'} ne ""
122 0 0 if $opt->{'method'} ne ""
123 0 0 if $encoded_params
151 0 0 if $self->{'debug'}
154 0 0 unless ($rest->responseCode eq 200)
155 0 0 if ($rest->responseCode eq '204' and $command[0] eq 'DELETE') { }
0 0 elsif ($rest->responseCode eq '109') { }
163 0 0 $rest->responseCode ne '401' ? :
169 0 0 if $self->{'debug'}
171 0 0 $rest->responseContent ? :
177 0 0 if scalar(@_) % 2
184 0 0 unless $opt->{'grant_type'} or $opt->{'grant_type'} eq "authorization_code" or $opt->{'grant_type'} eq "refresh_token"
186 0 0 if ($opt->{'grant_type'} eq 'authorization_code') { }
224 0 0 unless ($response->is_success)