Branch Coverage

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


line true false branch
39 0 0 if (defined $auto_wake)
47 0 0 if defined $warn
83 0 0 unless (defined $id)
87 0 0 unless ($id)
96 0 0 if $self->{'vehicles'}
119 0 0 if (ref $data ne "HASH")
124 0 0 unless (defined $data->{'drive_state'}{'shift_state'})
133 0 0 if (defined $data->{'drive_state'}{'shift_state'})
138 0 0 unless (defined $data->{'drive_state'}{'shift_state'})
184 0 0 $status eq 'online' ? :
271 0 0 if $_->{'available_stalls'} == 0
276 0 0 if $_->{'available_stalls'} == 0
350 0 0 if (not defined $percent && $percent =~ /^\d+$/ or $percent > 100 or $percent < 1)
364 0 0 if (not $return->{'result'} and $self->warn)
379 0 0 if (not $return->{'result'} and $self->warn)
392 0 0 if (not $return->{'result'} and $self->warn)
406 0 0 if (not $return->{'result'} and $self->warn)
420 0 0 if (not $return->{'result'} and $self->warn)
435 0 0 if (not $return->{'result'} and $self->warn)
449 0 0 if (not $return->{'result'} and $self->warn)
462 0 0 if (not $return->{'result'} and $self->warn)
475 0 0 if (not $return->{'result'} and $self->warn)
488 0 0 if (not $return->{'result'} and $self->warn)
500 0 0 if (not $return->{'result'} and $self->warn)
512 0 0 if (not $return->{'result'} and $self->warn)
524 0 0 if (not $return->{'result'} and $self->warn)
536 0 0 if (not $return->{'result'} and $self->warn)
556 0 0 if (not $return->{'result'} and $self->warn)
575 0 0 if (not $return->{'result'} and $self->warn)
585 0 0 if (not $self->online)
594 0 0 if ($wakeup_called_at + 30 - $wake_interval < time)
613 0 0 if $self->{'data'}{'vehicle_id'}
615 0 0 if (defined $id) { }
633 0 0 if (not $self->online)
634 0 0 if ($self->auto_wake) { }