Branch Coverage

blib/lib/SMS/API/CMTelecom.pm
Criterion Covered Total %
branch 18 28 64.2


line true false branch
78 1 8 unless exists $params{'product_token'}
84 8 0 if ($self->{'_ua'}->can('ssl_opts'))
136 3 5 ref $params{'recipients'} eq 'ARRAY' ? :
138 2 6 unless @recipients
140 1 8 unless defined $recipient
141 1 7 if ref $recipient
142 1 6 if $recipient eq ''
146 2 1 unless defined $sender
161 1 0 exists $params{'reference'} ? :
174 0 1 if ($res->code == 200)
182 1 0 if ref $result eq 'HASH'
229 0 0 if ($res->code == 200)
231 0 0 if &JSON::is_bool($result->{'valid_number'}) and $result->{'valid_number'}
257 0 0 if ($res->code == 200)