blib/lib/Plack/Middleware/TMT.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 24 | 75.0 |
line | true | false | branch |
---|---|---|---|
24 | 10 | 0 | unless $self->default_tmpl |
25 | 10 | 0 | unless $self->default_content_type |
26 | 9 | 1 | unless $self->pass_through |
36 | 9 | 1 | unless $self->macro |
37 | 0 | 10 | if $self->macro->{'d'} |
46 | 0 | 11 | unless ($name =~ /^[a-zA-Z_][a-zA-Z0-9_]*$/) |
53 | 11 | 0 | ref $code eq 'CODE' ? : |
62 | 9 | 1 | if ($res and not $self->pass_through && $$res[0] == 404) |
65 | 1 | 0 | if ($self->app) |
77 | 1 | 7 | $req->path =~ m[/$] ? : |
2 | 8 | $req->path eq '/' ? : | |
86 | 2 | 8 | unless (-e $self->include_path . '/' . "$tmpl$ext") |