Branch Coverage

blib/lib/Tesla/Vehicle.pm
Criterion Covered Total %
branch 0 74 0.0


line true false branch
46 0 0 if (defined $auto_wake)
54 0 0 if defined $warn
90 0 0 unless (defined $id)
94 0 0 unless ($id)
103 0 0 if $self->{'vehicles'}
126 0 0 if (ref $data ne "HASH")
131 0 0 unless (defined $data->{'drive_state'}{'shift_state'})
140 0 0 if (defined $data->{'drive_state'}{'shift_state'})
145 0 0 unless (defined $data->{'drive_state'}{'shift_state'})
191 0 0 $status eq 'online' ? :
278 0 0 if $_->{'available_stalls'} == 0
283 0 0 if $_->{'available_stalls'} == 0
357 0 0 if (not defined $percent && $percent =~ /^\d+$/ or $percent > 100 or $percent < 1)
371 0 0 if (not $return->{'result'} and $self->warn)
386 0 0 if (not $return->{'result'} and $self->warn)
399 0 0 if (not $return->{'result'} and $self->warn)
413 0 0 if (not $return->{'result'} and $self->warn)
427 0 0 if (not $return->{'result'} and $self->warn)
442 0 0 if (not $return->{'result'} and $self->warn)
456 0 0 if (not $return->{'result'} and $self->warn)
469 0 0 if (not $return->{'result'} and $self->warn)
482 0 0 if (not $return->{'result'} and $self->warn)
495 0 0 if (not $return->{'result'} and $self->warn)
507 0 0 if (not $return->{'result'} and $self->warn)
519 0 0 if (not $return->{'result'} and $self->warn)
531 0 0 if (not $return->{'result'} and $self->warn)
543 0 0 if (not $return->{'result'} and $self->warn)
563 0 0 if (not $return->{'result'} and $self->warn)
582 0 0 if (not $return->{'result'} and $self->warn)
592 0 0 if (not $self->online)
601 0 0 if ($wakeup_called_at + 30 - $wake_interval < time)
634 0 0 if ($geocode_response->{'success'}) { }
652 0 0 unless ($self->{'address_web_client'})
661 0 0 if $self->{'data'}{'vehicle_id'}
663 0 0 if (defined $id) { }
681 0 0 if (not $self->online)
682 0 0 if ($self->auto_wake) { }