Branch Coverage

blib/lib/SystemC/Vregs/Input/HTML.pm
Criterion Covered Total %
branch 0 166 0.0


line true false branch
31 0 0 unless my $pack = $params{'pack'}
48 0 0 if $SystemC::Vregs::Input::TableExtract::Debug
50 0 0 if ($$flagref{'Register'}) { }
0 0 elsif ($$flagref{'Class'}) { }
0 0 elsif ($$flagref{'Enum'}) { }
0 0 elsif (defined $$flagref{'Defines'}) { }
0 0 elsif ($$flagref{'Package'}) { }
70 0 0 unless $$flagref{'Package'}
71 0 0 if $$self{'_got_package_decl'}
74 0 0 if $SystemC::Vregs::Input::HTML::Debug
84 0 0 if $#bittable < 0
88 0 0 unless defined $$flagref{'Defines'}
91 0 0 if $defname ne '' and not $defname =~ /_$/
92 0 0 if $defname eq '_'
101 0 0 unless defined $const_col
102 0 0 unless defined $mnem_col
103 0 0 unless defined $def_col
106 0 0 if $SystemC::Vregs::Input::HTML::Debug
108 0 0 if $SystemC::Vregs::Input::HTML::Debug
109 0 0 unless (defined $col)
113 0 0 if $row eq $bittable[0]
119 0 0 if $val_mnem eq '' and $desc eq '' || $desc =~ /^reserved/i
135 0 0 if ($col =~ /^\s*\(([a-zA-Z_0-9]+)\)\s*$/)
138 0 0 if $val =~ /^([][a-zA-Z._:0-9+]+)$/
152 0 0 unless $$flagref{'Enum'}
160 0 0 unless defined $const_col
161 0 0 unless defined $mnem_col
162 0 0 unless defined $def_col
174 0 0 unless $attr =~ /^\s*$/
177 0 0 if $SystemC::Vregs::Input::HTML::Debug
179 0 0 if $SystemC::Vregs::Input::HTML::Debug
180 0 0 unless (defined $col)
184 0 0 if $row eq $bittable[0]
190 0 0 if $val_mnem eq '' and $desc eq '' || $desc =~ /^reserved/i
207 0 0 if ($col =~ /^\s*\(([a-zA-Z_0-9]+)\)\s*$/)
210 0 0 if $val =~ /^([][a-zA-Z._:0-9+]+)$/
224 0 0 unless defined $classname
229 0 0 if $classname =~ s/(\[[^\]]+])//
235 0 0 if ($classname =~ s/\s*:\s*(\S+)$//)
240 0 0 if $attr =~ /noimplementation/
252 0 0 defined $2 ? :
254 0 0 unless $attr =~ /^\s*$/
256 0 0 if ($is_register)
258 0 0 unless $classname =~ /^[R]_/
262 0 0 if $range
263 0 0 unless ($addr)
270 0 0 if ($addr =~ s/\s*Add\s*(0x[a-f0-9_]+)\s*//i)
285 0 0 if (defined $bittable[0] or not $inherits)
299 0 0 unless defined $bit_col
300 0 0 unless defined $mnem_col
301 0 0 unless defined $def_col
302 0 0 if ($is_register)
303 0 0 unless defined $rst_col
304 0 0 unless defined $acc_col
312 0 0 if $row eq $bittable[0]
313 0 0 unless my $bit_mnem = $$row[$mnem_col]
315 0 0 if ($c1 ge 'A' and $c1 le 'Z')
317 0 0 if ($allMnems_LCFirst)
318 0 0 if $SystemC::Vregs::Input::HTML::Debug
320 0 0 if $row eq $bittable[0]
321 0 0 unless my $bit_mnem = $$row[$mnem_col]
328 0 0 if $SystemC::Vregs::Input::HTML::Debug
330 0 0 if $SystemC::Vregs::Input::HTML::Debug
331 0 0 unless (defined $col)
335 0 0 if $row eq $bittable[0]
343 0 0 if $desc =~ /\boverlaps\s+([a-zA-Z0-9_]+)/i
346 0 0 if ($bit_mnem eq '' || $bit_mnem eq '-' and $desc eq '' || $desc =~ /Reserved/ || $desc =~ /Hardwired/ || $desc =~ m[^(//|\#)])
351 0 0 if (!defined($bit_col) || $$row[$bit_col] eq '' and !defined($mnem_col) || $$row[$mnem_col] eq '' and !defined($rst_col) || $$row[$rst_col] eq '')
358 0 0 defined $rst_col ? :
359 0 0 if $rst eq '' and not $is_register
363 0 0 defined $acc_col ? :
365 0 0 if $$typeref{'fields'}{$bit_mnem}
367 0 0 $type && $desc =~ /expand class/i ? :
385 0 0 if ($col =~ /^\s*\(([a-zA-Z_0-9]+)\)\s*$/)
388 0 0 if $val =~ /^([][a-zA-Z._:0-9+]+)$/
414 0 0 if $colheads[$h] eq ''
419 0 0 if ($fld eq $colheads[$h])
429 0 0 if ($fld eq $colheads[$h])
439 0 0 unless $colused[$h]
442 0 0 if ($ncol)
446 0 0 defined $_ ? :
448 0 0 $_ ? :
457 0 0 unless defined $text