Branch Coverage

blib/lib/WebService/Simple.pm
Criterion Covered Total %
branch 11 68 16.1


line true false branch
34 7 0 unless ($response_parser and eval { do { $response_parser->isa('WebService::Simple::Parser') } })
38 2 5 unless (ref $config)
42 7 0 unless ($module =~ s/^\+//)
45 7 0 unless ('Class::Inspector'->loaded($module))
46 5 2 unless $module->require
48 2 0 unless $$config{'args'}
52 2 0 if (not $cache or ref $cache eq 'HASH')
53 0 2 ref $cache eq 'HASH' ? :
54 0 2 if ($config)
55 0 0 unless (ref $config)
60 0 0 unless ('Class::Inspector'->loaded($module))
61 0 0 unless $module->require
66 0 0 $$config{'hashref_args'} ? :
93 0 0 unless $cache
102 0 0 unless $cache
111 0 0 unless $cache
129 0 0 ref($args{'url'}) =~ /^URI/ ? :
130 0 0 if (my $extra_path = $args{'extra_path'})
134 0 0 if ($args{'params'})
135 0 0 if (ref $args{'params'} eq 'Hash::MultiValue') { }
150 0 0 if (ref $_[0] eq 'HASH') { }
155 0 0 if (ref $_[0] eq 'HASH')
166 0 0 if $$self{'debug'}
169 0 0 unless (defined $$self{'compression'} and not $$self{'compression'})
176 0 0 if ($response)
177 0 0 if ($response->isa('WebService::Simple::Response')) { }
189 0 0 if ($response->is_success) { }
196 0 0 unless defined $$self{'croak'} and not $$self{'croak'}
206 0 0 if (ref $_[0] eq 'HASH') { }
0 0 elsif (ref $_[1] eq 'HASH') { }
0 0 elsif (@_ % 2) { }
226 0 0 unless (defined $$self{'compression'} and not $$self{'compression'})
233 0 0 if ($response->is_success) { }
239 0 0 unless defined $$self{'croak'} and not $$self{'croak'}