Branch Coverage

blib/lib/Schedule/Activity/Attribute.pm
Criterion Covered Total %
branch 38 44 86.3


line true false branch
35 1 128 unless (defined $types{$self{'type'}})
43 0 114 if (@errors)
49 856421 0 if (defined $tm and $tm >= $self->{'tmmax'})
57 14268 706309 if ($tm < $self->{'tmmax'})
61 0 706309 unless (defined $self->{'avg'})
76 16 6 if ($self->{'type'} eq "int")
77 6 0 if ($self->{'type'} eq "bool")
82 35782 150112 if (defined $self->{'avg'})
110 1 352445 if (is_hashref($ref))
139 75036 631203 if (defined $opt{'set'})
140 193432 512807 if ($opt{'incr'})
141 1 706238 if ($opt{'decr'})
142 297466 408773 if ($opt{'_log'})
145 150094 556145 if ($dt == 0) { }
556145 0 elsif (defined $self->{'avg'}) { }
159 44 26 if (defined $opt{'set'})
160 26 44 if ($opt{'_log'})
163 18 52 if ($dt == 0) { }
52 0 elsif (defined $self->{'avg'}) { }
176 150094 13538 unless (defined $lasttm)
190 18 20 unless (defined $lasttm)
197 10 8 if ($weight == 0)