Condition Coverage

blib/lib/Device/ELM327.pm
Criterion Covered Total %
condition 0 111 0.0


and 3 conditions

line !l l&&!r l&&r condition
2268 0 0 0 exists $$definition{'available'} and $$definition{'available'} == 1
2282 0 0 0 exists $$result{'unit'} and $$result{'unit'} ne ''
2403 0 0 0 exists $$self{'get'}{$name}{'available'} and $$self{'get'}{$name}{'available'} == 1
2407 0 0 0 substr($command, 0, 2) eq '05' and substr($command, 0, 5) ne '05 00'
2440 0 0 0 substr($command, 0, 2) eq '06' and substr($command, 0, 5) ne '06 00'
0 0 0 substr($command, 0, 2) eq '06' and substr($command, 0, 5) ne '06 00' and substr($command, 0, 5) ne '06 20'
0 0 0 substr($command, 0, 2) eq '06' and substr($command, 0, 5) ne '06 00' and substr($command, 0, 5) ne '06 20' and substr($command, 0, 5) ne '06 40'
0 0 0 substr($command, 0, 2) eq '06' and substr($command, 0, 5) ne '06 00' and substr($command, 0, 5) ne '06 20' and substr($command, 0, 5) ne '06 40' and substr($command, 0, 5) ne '06 60'
0 0 0 substr($command, 0, 2) eq '06' and substr($command, 0, 5) ne '06 00' and substr($command, 0, 5) ne '06 20' and substr($command, 0, 5) ne '06 40' and substr($command, 0, 5) ne '06 60' and substr($command, 0, 5) ne '06 80'
0 0 0 substr($command, 0, 2) eq '06' and substr($command, 0, 5) ne '06 00' and substr($command, 0, 5) ne '06 20' and substr($command, 0, 5) ne '06 40' and substr($command, 0, 5) ne '06 60' and substr($command, 0, 5) ne '06 80' and substr($command, 0, 5) ne '06 A0'
0 0 0 substr($command, 0, 2) eq '06' and substr($command, 0, 5) ne '06 00' and substr($command, 0, 5) ne '06 20' and substr($command, 0, 5) ne '06 40' and substr($command, 0, 5) ne '06 60' and substr($command, 0, 5) ne '06 80' and substr($command, 0, 5) ne '06 A0' and substr($command, 0, 5) ne '06 C0'
0 0 0 substr($command, 0, 2) eq '06' and substr($command, 0, 5) ne '06 00' and substr($command, 0, 5) ne '06 20' and substr($command, 0, 5) ne '06 40' and substr($command, 0, 5) ne '06 60' and substr($command, 0, 5) ne '06 80' and substr($command, 0, 5) ne '06 A0' and substr($command, 0, 5) ne '06 C0' and substr($command, 0, 5) ne '06 E0'
0 0 0 substr($command, 0, 2) eq '06' and substr($command, 0, 5) ne '06 00' and substr($command, 0, 5) ne '06 20' and substr($command, 0, 5) ne '06 40' and substr($command, 0, 5) ne '06 60' and substr($command, 0, 5) ne '06 80' and substr($command, 0, 5) ne '06 A0' and substr($command, 0, 5) ne '06 C0' and substr($command, 0, 5) ne '06 E0' and $$self{'bus_type'} eq 'CAN'
2501 0 0 0 $type[$index] eq 'byte' and $type[0] eq 'signed'
0 0 0 $type[$index] eq 'word' and $type[0] eq 'signed'
2814 0 0 0 $command_parts[0] ne 'AT' and $status eq 'ok'
2869 0 0 0 $$self{'results'}{$address}{'command'} == $$self{'last_command'} and $$self{'results'}{$address}{'sub_command'} == $$self{'last_sub_command'}
2947 0 0 0 $_ > 32 and $_ < 127
3040 0 0 0 $$self{'replay_file'} == 0 and $self->PortOK
3065 0 0 0 $prev eq '>' and not length $line
3070 0 0 0 $string_in ne '>' and $string_in ne $null
3099 0 0 0 $try and $$self{'debug_level'} > 5
3462 0 0 0 defined $port_details and $port_details ne ''
3516 0 0 0 $$self{'port'} != -1 and $$self{'ELM_type'} ne 'NONE'
3558 0 0 0 $$self{'ELM_type'} eq 'NONE' and $$self{'debug_level'} > 0
3706 0 0 0 substr($$result{'name'}, 4, 15) eq 'IDs supported (' and $$result{'value'} == 1
0 0 0 $$result{'value'} == 1 and substr($$result{'name'}, -2, 2) eq '13' && $$self{'get'}{'Location of oxygen sensors 13'}{'available'} == 1 || substr($$result{'name'}, -2, 2) eq '1D' && $$self{'get'}{'Location of oxygen sensors 1D'}{'available'} == 1

or 3 conditions

line l !l&&r !l&&!r condition
2557 0 0 0 $command eq '03' or $command eq '07'
0 0 0 $command eq '03' or $command eq '07' or $command eq '0A'
2624 0 0 0 $number_of_codes > 0 or $malfunction_indicator_lamp_state > 0
2692 0 0 0 $code eq 'no result' or $code == 0
3045 0 0 0 $count_in == $bytes_to_read or $try <= $tries
3251 0 0 0 $has_sub_command[$$self{'results'}{$address}{'command'}] or $$self{'results'}{$address}{'command'} == $command_mask
3497 0 0 0 not defined $port_name or $port_name eq ''
3516 0 0 0 $$self{'port'} != -1 and $$self{'ELM_type'} ne 'NONE' or $port_count > $max_ports_to_search
3706 0 0 0 substr($$result{'name'}, -2, 2) eq '13' && $$self{'get'}{'Location of oxygen sensors 13'}{'available'} == 1 || substr($$result{'name'}, -2, 2) eq '1D' && $$self{'get'}{'Location of oxygen sensors 1D'}{'available'} == 1
3723 0 0 0 $$result{'name'} eq 'Location of oxygen sensors 13' or $$result{'name'} eq 'Location of oxygen sensors 1D'