Branch Coverage

blib/lib/Schedule/Activity/Node.pm
Criterion Covered Total %
branch 99 116 85.3


line true false branch
27 0 0 if (defined $y)
30 1066 167 if (&looks_like_number($node->{$k})) { }
33 82 329 if (&any(sub { not $_; } , @lln))
34 75 7 if ($lln[1]) { }
2 5 elsif ($lln[0]) { }
1 4 elsif ($lln[2]) { }
39 1 1 if ($lln[2]) { }
55 1 717 unless (defined $node)
56 705 13 if (is_arrayref($node)) { }
12 1 elsif (is_hashref($node)) { }
0 1 elsif (not defined $node) { }
59 1651 10 if (not $filtered) { }
3 7 elsif (defined $next and not is_ref($next)) { }
5 2 elsif (is_hashref($next) and $next->{'keyname'}) { }
72 299 105 if (is_arrayref($self->{'next'})) { }
7 98 elsif (is_hashref($self->{'next'})) { }
74 297 2 if (@nexts) { }
80 26 2 if ($x) { }
83 1 6 unless (%{$self->{'next'};})
90 0 414 if ($node{'_valid'})
94 1219 23 if (defined $node{$k}) { }
95 1 1218 if (not &looks_like_number($node{$k})) { }
1 1217 elsif ($node{$k} < 0) { }
102 1 413 if (@invalids and $#invalids != 2)
103 405 9 if ($#tmseq == 2)
104 1 404 if ($tmseq[0] > $tmseq[1])
105 1 404 if ($tmseq[1] > $tmseq[2])
107 307 107 if (exists $node{'next'})
110 1 306 if ($@)
111 851 0 unless not defined $_
112 1 306 if (@invalids)
113 6 301 if (is_hashref($node{'next'}))
116 1 5 if ($weight <= 0)
119 103 311 if (exists $node{'finish'})
120 1 102 if (not defined $node{'finish'} or is_ref($node{'finish'}))
122 406 8 unless (@errors)
131 185980 0 if (is_ref($tm))
132 185980 0 if (is_ref($slack))
133 185980 0 if (is_ref($buffer))
147 0 153382 unless ($self->{'next'})
149 145102 8280 if (is_arrayref($self->{'next'})) { }
8280 0 elsif (is_hashref($self->{'next'})) { }
151 115919 331452 if ($opt{'not'} and $opt{'not'} eq $next)
152 150 331302 unless (is_ref($next))
153 0 331302 unless (is_hashref($next))
154 25826 0 if (builtin::blessed($next->{'require'}) and $opt{'attr'})
155 25516 310 unless ($next->{'require'}->matches($opt{'tm'}, %{$opt{"attr"};}))
160 0 31771 unless (is_hashref($href))
161 17371 14400 if ($href->{'node'})
162 3451 13920 if ($opt{'not'} and $opt{'not'} eq $href->{'node'})
163 6960 0 if (builtin::blessed($href->{'node'}{'require'}) and $opt{'attr'})
164 3480 3480 unless ($href->{'node'}{'require'}->matches($opt{'tm'}, %{$opt{"attr"};}))
166 24840 0 if ($w > 0)
168 110 153272 unless (@candidates)
169 8280 144992 if ($weight) { }
175 0 19635 unless ($self->{'next'})
176 19606 29 if (is_arrayref($self->{'next'}))
177 29 0 if (is_hashref($self->{'next'}))