blib/lib/Pinwheel/Mapper.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 50 | 51 | 98.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
81 | 88 | 4 | 1 | $$conditions{'method'} and $$conditions{'method'} eq 'any' |
107 | 78 | 8 | 3 | $method and $method eq 'any' |
112 | 68 | 2 | 7 | defined $method and defined $$route{'conditions'}{'method'} |
139 | 42 | 13 | 7 | not $name and _compare_targets($base, \%params) |
218 | 14 | 37 | 9 | $p and $p ne $b |
51 | 2 | 7 | $p and $p ne $b and $b ne '*' | |
237 | 3 | 107 | 5 | defined $value and $regexp |
110 | 3 | 2 | defined $value and $regexp and not $value =~ /$regexp/ |
line | l | !l | condition |
---|---|---|---|
30 | 3 | 90 | delete $options{'defaults'} || {} |
31 | 7 | 86 | delete $options{'requirements'} || {} |
32 | 5 | 88 | delete $options{'conditions'} || {} |
51 | 1 | 4 | $$defaults{'id'} ||= undef |
69 | 18 | 75 | $$defaults{'controller'} ||= 'content' |
70 | 16 | 77 | $$defaults{'action'} ||= 'index' |
146 | 10 | 52 | $params{'controller'} ||= 'content' |
147 | 7 | 55 | $params{'action'} ||= 'index' |
248 | 2 | 57 | $$route{'options'}{'_filter'} || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
48 | 8 | 5 | 91 | $name eq 'controller' or $name eq 'action' |
199 | 119 | 0 | 73 | $path =~ m[^/] or $path =~ m[^\w+://] |
235 | 112 | 3 | 1 | defined $value or exists $$defaults{$key} |