Branch Coverage

blib/lib/VIC/PIC/Functions/Timer.pm
Criterion Covered Total %
branch 30 58 51.7


line true false branch
14 0 2 if ($scale <= 2) { }
0 2 elsif ($scale > 2 and $scale <= 4) { }
0 2 elsif ($scale > 4 and $scale <= 8) { }
0 2 elsif ($scale > 8 and $scale <= 16) { }
0 2 elsif ($scale > 16 and $scale <= 32) { }
0 2 elsif ($scale > 32 and $scale <= 64) { }
0 2 elsif ($scale > 64 and $scale <= 128) { }
2 0 elsif ($scale > 128 and $scale <= 256) { }
49 1 4 if ($scale <= $_ + $_ / 4)
50 1 0 wantarray ? :
54 0 0 wantarray ? :
59 0 3 unless $self->doesroles("Timer", "Chip")
61 1 2 if ($tmr eq 'WDT') { }
62 0 1 unless (exists $self->registers->{'WDTCON'})
66 1 0 if (defined $self->chip_config->{'on_off'})
68 1 6 if $_ =~ /WDT/
81 0 2 unless (exists $self->timer_pins->{$tmr})
85 0 2 unless (exists $self->registers->{'OPTION_REG'})
91 0 2 unless (ref $th eq "HASH")
107 1 1 if (%isr)
111 1 1 if (%isr)
115 3 0 wantarray ? :
120 0 0 unless $self->doesroles("Timer", "Chip")
121 0 0 unless (exists $self->timer_pins->{$tmr})
125 0 0 unless (exists $self->registers->{'OPTION_REG'} and exists $self->registers->{'INTCON'})
147 0 1 unless exists $action{'ACTION'}
148 0 1 unless $self->doesroles("Timer", "Chip")
149 0 1 unless exists $action{'END'}
150 0 1 unless (exists $self->registers->{'INTCON'})