Condition Coverage

blib/lib/Terse/Controller.pm
Criterion Covered Total %
condition 5 69 7.2


and 3 conditions

line !l l&&!r l&&r condition
134 6 0 1 $attr{'websocket'} and scalar keys %attr < 4
182 0 0 0 $self->views && $self->views->{$t->response_view or $self->response_view}
201 0 0 0 $dispatch and $dispatch->{$req}
252 0 0 0 not $param and $spec

or 2 conditions

line l !l condition
46 0 0 $t->models ||= {}
78 0 0 $t->plugins ||= {}
143 0 0 $status ||= 200
151 0 0 $t->response->status_code || 500
161 0 0 $t->response->status_code || 500
179 0 0 $ct ||= "application/json"
185 0 0 $status ||= 200
226 0 0 $t->request->uri->path =~ /$candidate->{'path'}/ or next
243 0 0 $self->websockets ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
50 0 0 0 $t->models->{$model} ||= $self->models->{$model}->connect($t)
84 0 0 0 $t->plugins->{$plugin} ||= $self->plugins->{$plugin}->can("connect") ? $self->plugins->{$plugin}->connect($t) : $self->plugins->{$plugin}
126 1 2 4 $HTTP{$k} or $k =~ /^(any|websocket|deleayed)$/i
142 0 0 0 $t->response_view || $self->response_view
143 0 0 0 $t->content_type || $view && $view->content_type || $ct
0 0 0 $t->response->status_code ||= ($status ||= 200)
150 0 0 0 $@ or $t->response->error
157 0 0 0 $t->response_view || $self->response_view
182 0 0 0 $t->response_view || $self->response_view
185 0 0 0 $response_body->status_code ||= ($status ||= 200)
192 0 0 0 ref $self || $self
215 0 0 0 $$candidate{lc $t->request->method} or $candidate->{'any'}
216 0 0 0 not $candidate->{'captured'} or $caps == $candidate->{'captured'}