| blib/lib/Dancer2/Plugin/Menu.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 16 | 87.5 |
| line | true | false | branch |
|---|---|---|---|
| 64 | 10 | 4 | if (@nodes) { } |
| 2 | 2 | elsif (not $tree->{$node}{'children'}) { } | |
| 65 | 4 | 6 | unless ($tree->{$node}{'children'}) |
| 76 | 10 | 2 | unless ($tree->{$node}{'protected'}) |
| 78 | 2 | 8 | unless (@nodes) |
| 97 | 0 | 0 | unless $tree->{'children'}{$a}{'weight'} <=> $tree->{'children'}{$b}{'weight'} |
| 101 | 6 | 6 | $tree->{'children'}{$child}{'active'} ? : |
| 105 | 8 | 4 | if ($tree->{'children'}{$child}{'children'}) { } |