Condition Coverage

blib/lib/Tesla/API.pm
Criterion Covered Total %
condition 3 24 12.5


and 3 conditions

line !l l&&!r l&&r condition
91 1 0 0 defined $id and $id =~ /^\d+$/

or 2 conditions

line l !l condition
166 0 0 $self->{'api_cache_persist'} // 0
173 0 0 $self->{'api_cache_time'} // 2
547 0 0 $params{'id'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
99 0 0 0 $self->api_cache_persist or $self->api_cache_time
107 0 0 0 $self->api_cache_persist or time - $api_cache_alive_time <= $self->api_cache_time
178 2 0 2 not $self->{'endpoints'} or $self->{'reset_data'}
415 0 0 0 not defined $token_data or ref $token_data ne "HASH"
471 0 0 0 not defined $token_data or ref $token_data ne "HASH"