Branch Coverage

blib/lib/SystemC/Vregs/Type.pm
Criterion Covered Total %
branch 37 80 46.2


line true false branch
30 0 7 if ref $class
36 0 7 unless $$self{'pack'}
43 0 0 unless $$self{'pack'}
51 7 7 if (defined $val)
55 2 5 if $$self{'inherits'} ne ''
70 0 31 if defined $$typeref{'attributes'}{$attr}
71 0 31 if defined $$typeref{'inherits_typeref'} and defined $$typeref{'inherits_typeref'}{'attributes'}{$attr}
74 0 31 if defined $$typeref{'pack'}{'attributes'}{$attr}
95 7 0 unless ($$self{'name'} || '') =~ /\*/
96 0 0 if $SystemC::Vregs::Debug
103 0 0 if $SystemC::Vregs::Debug
112 0 0 unless $gotone
121 0 7 unless $field =~ /^[A-Z][a-zA-Z0-9_]*$/
132 5 2 unless $inh
135 0 2 unless ($ityperef)
144 0 0 if (my $bitref = $$typeref{'bitarray'}[$bit]{'bitref'})
145 0 0 if (my $ibitref = $$ityperef{'bitarray'}[$bit]{'bitref'})
148 0 0 if ($$bitref{'name'} eq $$ibitref{'name'}) { }
149 0 0 if ($$bitref{'bits'} ne $$ibitref{'bits'})
154 0 0 unless ($bitref->is_overlap_ok($ibitref))
183 0 0 if $fieldref->remove_if_mismatch($test_cb)
186 0 0 if (&$test_cb($self) or $rm and $rm == $cnt)
202 92 388 if (not defined $bitent) { }
206 0 388 unless $bitref
210 34 354 if ($last_bitref != $bitref)
211 0 34 if $x == 1
212 8 26 if $x > 1
214 0 34 $bits eq '' ? :
220 0 7 if $x == 1
221 0 7 if $x > 1
234 10 383 if $words < $bitword
237 0 7 if (my $numbits = $self->attribute_value('numbits')) { }
239 0 0 if $$self{'words'} < 1
250 0 9 if ($$self{'subclass_level'} > $level)
255 2 7 if (my $ityperef = $$self{'inherits_typeref'})
261 0 32 if ($ityperef)
277 0 0 unless $$b{'bitlist'}[0] <=> $$a{'bitlist'}[0]
285 4 10 if ($$typeref{'inherits_typeref'})
287 6 10 if $$typeref{'fields'}{$$fld{'name'}}
291 0 84 unless $$b{'bitlist'}[0] <=> $$a{'bitlist'}[0]