Condition Coverage

blib/lib/Plack/Middleware/TemplateToolkit.pm
Criterion Covered Total %
condition 31 43 72.0


and 3 conditions

line !l l&&!r l&&r condition
53 20 1 0 not $self->INCLUDE_PATH and $self->root
112 39 2 1 $self->pass_through and $$res[0] == 404
159 4 0 20 $code and $code =~ /^\d\d\d$/
165 10 2 12 $$self{$code} and $self->tt
168 4 0 8 blessed $req and $req->isa('Plack::Request')
206 0 45 4 ref $rv and @$rv
218 2 0 4 blessed $value and $value->isa('Hash::MultiValue')
273 38 1 1 $extension and not $path =~ /$extension$/

or 2 conditions

line l !l condition
161 4 2 $self->content_type || $self->default_type || 'text/plain'
257 7 36 $self->path || '/'

or 3 conditions

line l !l&&r !l&&!r condition
112 3 0 42 not $res or $self->pass_through and $$res[0] == 404
141 36 2 0 $self->content_type || do { 'Plack::MIME'->mime_type($1) if $template =~ /(\.\w{1,6})$/ } || $self->default_type
253 1 0 42 $$env{'tt.path'} || do { $$env{'tt.path'} = $$env{'PATH_INFO'} || '/' }
291 0 2 0 $self->content_type || $self->default_type
300 0 9 0 $self->content_type || $self->default_type