Branch Coverage

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


line true false branch
35 18 30 if @_ == 2
47 18 12 if (exists $param{$attr})
65 3 3 if @_ == 2
73 1 1 if @_ == 2
82 0 3 if $self->client_ref
83 0 3 if $self->status_report_req
84 0 3 if $self->network_code
85 0 3 if $self->type
99 0 3 unless ($response and $response->is_success)
101 0 0 if $response
108 1 2 if ($response_object->is_error)
122 1 39 if ($attrs{$attr} eq 'required' and not $params{$attr})