Condition Coverage

blib/lib/WebService/Simple.pm
Criterion Covered Total %
condition 18 43 41.8


and 3 conditions

line !l l&&!r l&&r condition
34 0 12 0 $response_parser and eval { do { $response_parser->isa('WebService::Simple::Parser') } }
80 11 0 1 $self->{'content_type'} and $self->{'content_type'} eq 'application/json'
183 14 0 0 defined $self->{'compression'} and not $self->{'compression'}
210 0 0 0 defined $self->{'croak'} and not $self->{'croak'}
232 20 0 0 defined $self->{'compression'} and not $self->{'compression'}
241 19 0 1 $self->{'content_type'} and $self->{'content_type'} eq 'application/json'
18 0 1 $headers{'Content-Type'} and $headers{'Content-Type'} eq 'application/json'
275 0 0 0 defined $self->{'croak'} and not $self->{'croak'}

or 2 conditions

line l !l condition
29 4 5 delete $args{'params'} || delete $args{'param'} || {}
30 0 12 delete $args{'debug'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
27 0 0 0 delete $args{'base_url'} || $class->config->{'base_url'} || Carp::croak('base_url is required')
33 3 0 9 delete $args{'response_parser'} || $class->config->{'response_parser'}
37 12 0 0 $response_parser || $class->config->{'response_parser'}
52 12 0 0 not $cache or ref $cache eq 'HASH'
241 1 0 19 $self->{'content_type'} and $self->{'content_type'} eq 'application/json' or $headers{'Content-Type'} and $headers{'Content-Type'} eq 'application/json'