Branch Coverage

blib/lib/Monitis.pm
Criterion Covered Total %
branch 20 64 31.2


line true false branch
62 0 0 if ($token and ref $token ne 'CODE')
68 0 0 ref $token eq 'CODE' ? :
71 0 0 if ($$self{'auth_token'} and $$self{'auth_token_expires'} > time)
72 0 0 if $callback
80 0 0 unless ($self->api_key and $self->secret_key)
96 0 0 unless ($response->is_success)
102 0 0 unless ($result or exists $$result{'authToken'})
149 0 1 unless $obj
158 0 1 unless ($self->api_key)
177 0 1 unless ($self->api_key and $self->secret_key)
203 0 1 unless $self->secret_key
212 0 17 unless $$a[0] cmp $$b[0]
226 3 3 ref $self ? :
229 3 3 unless $typeof
230 0 3 if $class eq $typeof
232 0 3 unless $typeof->can('api_url')
249 19 0 if (exists $$MAPPING{$method})
253 0 0 unless ($$self{'_typeof'} and $$self{'_typeof'}->can($method))
272 0 0 unless @_
281 1 0 unless @_
290 0 0 unless @_
301 19 0 if (not $$MAPPING_LOADED{$package}) { }
0 0 elsif ($$MAPPING_LOADED{$package} < 0) { }
305 0 19 if ($@)
323 19 0 unless @_
332 4 1 unless @_
341 3 1 unless @_
356 0 0 ref $$params[-1] eq 'CODE' ? :
363 0 0 if (@lack)
373 0 0 unless (exists $param_keys{$$params[$i]})
379 0 0 if (@extra)
383 0 0 if $callback