Branch Coverage

blib/lib/Webservice/Sendy/API.pm
Criterion Covered Total %
branch 2 84 2.3


line true false branch
16 0 1 unless ($self->config)
20 0 1 unless (-e $self->config)
51 0 0 $params->no_track_clicks ? :
0 0 $params->no_track_opens ? :
68 0 0 if (not defined $params->$param and defined $required_defaults->$param) { }
0 0 elsif (not defined $params->$param || defined $required_defaults->$param) { }
81 0 0 if (defined $params->$opt)
91 0 0 if ($resp->content and $resp->content =~ /Already|missing|not|valid|Unable/i)
98 0 0 unless ($resp->success)
113 0 0 unless ($params->list_id)
115 0 0 if ($self->config->defaults->{'list_id'})
119 0 0 unless $params->email
124 0 0 if (defined $params->$opt)
134 0 0 if ($resp->content and $resp->content =~ /Already|missing|not|valid|Bounced|suppressed/i)
141 0 0 unless ($resp->success)
145 0 0 $resp->content eq '1' ? :
157 0 0 unless ($list_id)
159 0 0 if ($self->config->defaults->{'list_id'})
164 0 0 unless $email
171 0 0 if ($resp->content and $resp->content =~ /Some|valid|not/i)
178 0 0 unless ($resp->success)
182 0 0 $resp->content == 1 ? :
193 0 0 unless ($list_id)
195 0 0 if ($self->config->defaults->{'list_id'})
200 0 0 unless $email
207 0 0 if ($resp->content and $resp->content =~ /No|valid|List|not/i)
214 0 0 unless ($resp->success)
218 0 0 $resp->content == 1 ? :
227 0 0 unless ($list_id)
229 0 0 if ($self->config->defaults->{'list_id'})
234 0 0 unless $email
241 0 0 if ($resp->content eq "Email does not exist in list")
246 0 0 if ($resp->content and $resp->content =~ /No|vlaid|not/i)
253 0 0 unless ($resp->success)
266 0 0 unless ($list_id)
268 0 0 if ($self->config->defaults->{'list_id'})
278 0 0 if ($resp->content and $resp->content =~ /No|valid|not/i)
285 0 0 unless ($resp->success)
299 0 0 if ($resp->content and $resp->content =~ /No|valid/i)
306 0 0 unless ($resp->success)
322 0 0 if ($resp->content and $resp->content =~ /No|valid|not/i)
329 0 0 unless ($resp->success)