Branch Coverage

blib/lib/WG/API/Base.pm
Criterion Covered Total %
branch 13 26 50.0


line true false branch
142 0 2 unless $self->debug
152 0 1 unless ($self->_validate_params($required_params, %passed_params))
170 0 1 $self->status eq 'ok' ? :
177 0 1 if @$required_params > keys %passed_params
180 0 1 unless defined $passed_params{$_}
192 1 0 $response->{'status'} eq '200' ? :
201 0 0 $response->{'status'} eq '200' ? :
207 0 1 if (not $response) { }
0 1 elsif (not $response->{'status'}) { }
234 1 0 if ($self->status eq 'error') { }
265 1 4 if $param eq 'language' and not exists $passed_params{$param}
266 2 3 if defined $passed_params{$param}
281 0 0 unless exists $passed_params{'language'}