Branch Coverage

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


line true false branch
138 0 2 unless $self->debug
148 0 1 unless ($self->_validate_params($required_params, %passed_params))
166 0 1 $self->status eq 'ok' ? :
173 0 1 if @$required_params > keys %passed_params
176 0 1 unless defined $passed_params{$_}
188 1 0 $response->is_success ? :
197 0 0 $response->is_success ? :
203 0 1 if (not $response) { }
0 1 elsif (not $response->{'status'}) { }
230 1 0 if ($self->status eq 'error') { }
261 1 4 if $param eq 'language' and not exists $passed_params{$param}
262 2 3 if defined $passed_params{$param}
277 0 0 unless exists $passed_params{'language'}