Branch Coverage

blib/lib/VIC/PIC/Functions/CodeGen.pm
Criterion Covered Total %
branch 40 58 68.9


line true false branch
43 0 227 unless defined $var
44 11 216 if $var =~ /^\d+$/
45 0 216 unless $self->doesrole("Chip")
46 141 75 if exists $self->pins->{$var}
47 45 30 if exists $self->registers->{$var}
48 0 30 if $self->doesrole("Timer", 1) and exists $self->timer_pins->{$var}
49 1 29 if $self->doesrole("Timer", 1) and exists $self->wdt_prescaler->{$var}
50 20 9 if $self->doesrole("USART", 1) and exists $self->usart_pins->{$var}
56 133 0 if $op =~ /^ LE | GE | GT | LT | EQ | NE | ADD | SUB | MUL | DIV | MOD | BXOR | BOR | BAND | AND | OR | SHL | SHR | ASSIGN | INC | DEC | NOT | COMP | TBLIDX | ARRIDX | STRIDX /x
63 133 0 if defined $vop
68 4 12 if $mod =~ /^ SQRT | HIGH | LOW /x
71 4 12 if defined $vmod
76 0 20 unless $self->doesrole("CodeGen")
77 0 20 unless defined $grp
79 3 17 unless exists $self->code_config->{$grp}
81 2 18 if ($key eq "bits")
82 0 2 unless defined $val
83 2 0 if $val <= 8
84 0 2 if $val > 8 and $val <= 16
85 0 2 if $val > 16 and $val <= 32
86 0 2 if $val > 64
88 0 2 if $val > 32
90 6 14 unless defined $val
91 20 0 if (ref $grpref eq 'HASH') { }
101 0 257 unless $self->doesrole("CodeGen")
103 0 257 unless $varname
110 0 5 unless $varname
111 0 5 unless $self->doesrole("CodeGen")
112 4 1 if defined $self->code_config->{lc $varname}