Branch Coverage

blib/lib/WebService/IdoitAPI.pm
Criterion Covered Total %
branch 18 36 50.0


line true false branch
24 5 0 if (defined $config)
26 6 14 if (exists $config->{$cv})
38 0 5 if ($self->is_logged_in)
46 1 0 if (defined $request)
48 0 1 if (exists $self->{'client'}) { }
54 0 1 if ($self->{'session_id'}) { }
58 0 1 if (defined $self->{'config'}{'password'})
61 0 1 if (defined $self->{'config'}{'username'})
67 1 0 unless defined $request->{'version'}
69 1 0 unless defined $request->{'id'}
71 1 0 unless defined $request->{'params'}{'language'}
78 1 0 if ($@)
80 1 0 unless ($status_line =~ /^2[0-9]{2} /)
95 0 0 unless $user
96 0 0 unless $pass
104 0 0 if ($res->{'is_success'})
131 2 3 unless $self->{'config'}{'apikey'}
133 1 2 unless $self->{'config'}{'url'}