Branch Coverage

blib/lib/Nexmo/SMS/TextMessage.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
34 18 30 if @_ == 2
94 18 12 if (exists $param{$attr})
122 3 3 if @_ == 2
137 1 1 if @_ == 2
155 0 3 if $self->client_ref
156 0 3 if $self->status_report_req
157 0 3 if $self->network_code
158 0 3 if $self->type
172 0 3 unless ($response and $response->is_success)
174 0 0 if $response
181 1 2 if ($response_object->is_error)
205 1 39 if ($attrs{$attr} eq 'required' and not $params{$attr})