Branch Coverage

blib/lib/SMS/Send/Adapter/Node/Red.pm
Criterion Covered Total %
branch 23 66 34.8


line true false branch
82 0 4 unless defined $self->{'content'}
96 4 10 unless (defined $self->{'input'})
100 1 3 if ($error) { }
1 2 elsif (ref $input ne 'HASH') { }
119 3 6 if @_
120 0 9 unless $self->{'status'}
140 0 3 unless my $status_string = $SMS::Send::Adapter::Node::Red::STATUS_STRING->{$status}
152 3 4 if @_
164 0 3 unless my $status = shift()
182 2 0 if (defined $input)
184 2 0 if $input->{'driver'}
186 0 2 unless ($driver)
189 0 0 if $DRIVER
191 0 2 if (not $driver and -r $ini_file)
196 0 0 if @drivers
213 0 0 if ($SMS)
216 0 0 if ($to and $text) { }
0 0 elsif (not $to and $text) { }
0 0 elsif ($to and not $text) { }
220 0 0 if ($error) { }
0 0 elsif (not $sent) { }
246 0 0 $self->send_sms ? :
248 0 0 if $self->error
249 0 0 if $self->input
269 0 0 if ($length > 0)
274 0 0 $service->send_sms ? :
276 0 0 if $service->error
277 0 0 if $service->input
297 0 0 unless $self->{'CGI'}
310 2 0 if (defined $input)
312 2 0 if ($driver) { }
314 2 0 if (ref $options eq 'HASH') { }
318 1 1 if ($error)