Branch Coverage

blib/lib/EVDB/API.pm
Criterion Covered Total %
branch 20 96 20.8


line true false branch
110 1 0 if $VERBOSE
116 0 1 unless $$self{'parser'}
142 1 2 if ($flavor eq $requested_flavor)
173 0 0 unless my $nonce = $$self{'response_data'}{'nonce'}
186 0 0 unless my $r = $self->call('users/login', $params)
214 1 0 if ($$self{'parser'}->flavor eq 'rest' and not $force_array)
223 0 1 if ($method eq 'calendars/latest/stickers') { }
0 1 elsif ($method eq 'calendars/tags/cloud') { }
0 1 elsif ($method eq 'demands/get') { }
0 1 elsif ($method eq 'demands/latest/hottest') { }
0 1 elsif ($method eq 'demands/search') { }
1 0 elsif ($method eq 'events/get') { }
0 0 elsif ($method eq 'events/recurrence/list') { }
0 0 elsif ($method eq 'events/tags/cloud') { }
0 0 elsif ($method eq 'events/validate/hcal') { }
0 0 elsif ($method eq 'groups/get') { }
0 0 elsif ($method eq 'groups/search') { }
0 0 elsif ($method eq 'groups/users/list') { }
0 0 elsif ($method eq 'internal/events/submissions/pending') { }
0 0 elsif ($method eq 'internal/events/submissions/set_status') { }
0 0 elsif ($method eq 'internal/events/submissions/status') { }
0 0 elsif ($method eq 'internal/submissions/targets') { }
0 0 elsif ($method eq 'performers/demands/list') { }
0 0 elsif ($method eq 'performers/get') { }
0 0 elsif ($method eq 'performers/search') { }
0 0 elsif ($method eq 'users/calendars/get') { }
0 0 elsif ($method eq 'users/calendars/list') { }
0 0 elsif ($method eq 'users/comments/get') { }
0 0 elsif ($method eq 'users/events/recent') { }
0 0 elsif ($method eq 'users/get') { }
0 0 elsif ($method eq 'users/groups/list') { }
0 0 elsif ($method eq 'users/search') { }
0 0 elsif ($method eq 'users/venues/get') { }
0 0 elsif ($method eq 'venues/get') { }
0 0 elsif ($method eq 'venues/tags/cloud') { }
349 1 0 if $VERBOSE
354 0 1 if (ref $args eq 'ARRAY') { }
1 0 elsif (ref $args eq 'HASH') { }
377 1 2 if ($$self{$k} and not $$arg_present{$k})
389 0 1 if ($this_field =~ /_file$/)
392 0 0 if ref $$arg_present{$this_field} eq 'ARRAY'
403 0 0 if ($$args[$i] eq $this_field)
420 0 1 unless ($response->is_success)
431 1 0 if ($response->header('Content-Type') =~ /$ctype/i) { }
434 1 0 if ($$self{'parser'}->flavor eq 'rest')
442 0 0 if ($$data{'string'})
446 0 0 if $DEBUG
463 0 0 unless defined $s