blib/lib/Plack/Middleware/REST.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 10 | 22 | 45.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
50 | 10 | 8 | 0 | $app and not ref $app |
52 | 18 | 0 | 0 | $$self{'action'} and (reftype($$self{$action}) || '') ne 'CODE' |
77 | 0 | 0 | 3 | $self->patch and $self->patch_types |
89 | 14 | 0 | 2 | $method eq 'PATCH' and $self->patch_types |
14 | 1 | 1 | $method eq 'PATCH' and $self->patch_types and not grep({/^$$env{'CONTENT_TYPE'}$/msx;} @{$self->patch_types;}) |
line | l | !l | condition |
---|---|---|---|
52 | 0 | 0 | reftype($$self{$action}) || '' |
71 | 24 | 0 | $$env{'PATH_INFO'} || '/' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
87 | 0 | 0 | 0 | $app ||= $$self{'app'} |