Branch Coverage

blib/lib/Linux/IRPulses.pm
Criterion Covered Total %
branch 27 34 79.4


line true false branch
139 0 3 if (exists $args->{'dev_file'})
142 0 0 unless open my $in, '<', $file
164 0 2 if $self->_do_close_file
181 135 7 if ($self->_did_see_header) { }
184 135 0 if ($self->_is_maybe_zero)
185 68 67 if ($self->_match_line($line, $self->zero->[$self->_zero_index])) { }
187 4 64 if ($self->_zero_index >= $self->zero_length) { }
208 131 4 if (not $is_matched and $self->_is_maybe_one)
209 131 0 if ($self->_match_line($line, $self->one->[$self->_one_index])) { }
211 67 64 if ($self->_one_index >= $self->one_length) { }
234 3 132 if ($self->_bit_count >= $self->bit_count) { }
0 132 elsif (not $self->_is_maybe_zero || $self->_is_maybe_one) { }
263 6 1 if ($self->_match_line($line, $self->header->[$self->_header_index])) { }
266 3 3 if ($self->_header_index >= $self->header_length) { }
291 10 263 if $expect_type eq 'either'
294 205 68 $self->_is_value_in_range($num, $expect_num) && $expect_type eq $type ? :
306 205 68 $min <= $val && $val <= $max ? :