Branch Coverage

blib/lib/ModelSim/List.pm
Criterion Covered Total %
branch 49 60 81.6


line true false branch
10 0 2 ref $_[0] ? :
17 1 4 unless (open $fh, $file)
22 3 1 if (/^\@/o) { }
28 0 4 unless $ast
39 0 17 if /^\s*$/o
40 4 13 if ($state == 0) { }
13 0 elsif ($state == 1) { }
41 3 1 if (m[\b/\w+|\bdelta\b|\bns\b]o) { }
78 0 70 if $sig eq 'delta'
79 4 66 unless ref $$ast{$sig}
80 44 26 if (@{$$ast{$sig};} and ${$$ast{$sig};}[-2] eq $val)
83 0 26 if (@{$$ast{$sig};} and ${$$ast{$sig};}[-1] eq $time)
106 0 315 if /^\s*$/
107 144 171 if (/^\@(\d+)/)
111 0 171 unless (defined $time)
115 171 0 if (m[^([\w/]+)\s+(\w+)\s*$])
117 8 163 unless ref $$ast{$sig}
118 17 154 if (@{$$ast{$sig};} and ${$$ast{$sig};}[-1] eq $time)
134 0 280 unless ($$self{$signal})
139 6 274 if ($time < $events[1])
148 265 3108 if ($time < $tm) { }
159 142 223 if ref $pat eq 'Regexp'
165 6 153 unless defined $start
166 127 32 if (defined $start and defined $end)
167 1 126 if ($start > $end)
173 0 158 unless ($$self{$signal})
179 15 143 if _val_eq($self->strobe($signal, $start), $value)
184 2032 207 if ($tm < $start)
187 136 71 if (_val_eq($val, $value))
188 5 131 if (defined $end and $tm > $end)