Condition Coverage

blib/lib/Catalyst/ActionRole/RequestModel.pm
Criterion Covered Total %
condition 33 49 67.3


and 3 conditions

line !l l&&!r l&&r condition
48 2 0 0 length $prefix and not $prefix =~ /::$/
68 2 0 0 length $prefix and not $prefix =~ /::$/
103 2 0 0 length $prefix and not $prefix =~ /::$/
123 2 0 0 length $prefix and not $prefix =~ /::$/
163 14 0 9 $ctx->req->method eq "GET" and not $request_content_type

or 2 conditions

line l !l condition
143 16 1 $_ || ''
182 7 1 $_ || ''

or 3 conditions

line l !l&&r !l&&!r condition
140 8 7 8 exists $self->attributes->{'RequestModel'} or exists $self->attributes->{'QueryModel'}
7 6 2 exists $self->attributes->{'RequestModel'} or exists $self->attributes->{'QueryModel'} or exists $self->attributes->{'BodyModel'}
6 1 1 exists $self->attributes->{'RequestModel'} or exists $self->attributes->{'QueryModel'} or exists $self->attributes->{'BodyModel'} or exists $self->attributes->{'QueryModelFor'}
1 1 0 exists $self->attributes->{'RequestModel'} or exists $self->attributes->{'QueryModel'} or exists $self->attributes->{'BodyModel'} or exists $self->attributes->{'QueryModelFor'} or exists $self->attributes->{'BodyModelFor'}
149 8 6 9 exists $self->attributes->{'RequestModel'} or exists $self->attributes->{'BodyModel'}
157 1 0 0 $controller->action_for($action_name) || croak("There is no action for '${action_name}'")
174 7 1 13 exists $self->attributes->{'RequestModel'} or exists $self->attributes->{'BodyModelFor'}
1 5 8 exists $self->attributes->{'RequestModel'} or exists $self->attributes->{'BodyModelFor'} or exists $self->attributes->{'BodyModel'}
193 1 0 0 $controller->action_for($action_name) || croak("There is no action for '${action_name}'")
213 24 0 0 $ctx->model($request_model_class) || croak("Request Model '${request_model_class}' doesn't exist")