blib/lib/CatalystX/RequestModel/Utils/InvalidRequestNotIndexed.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 3 | 6 | 50.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 1 | 3 | 33.3 |
pod | 0 | 2 | 0.0 |
total | 4 | 11 | 36.3 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package CatalystX::RequestModel::Utils::InvalidRequestNotIndexed; | ||||||
2 | |||||||
3 | 6 | 6 | 54 | use Moose; | |||
6 | 17 | ||||||
6 | 46 | ||||||
4 | with 'CatalystX::Utils::DoesHttpException'; | ||||||
5 | |||||||
6 | has 'param' => (is=>'ro', required=>1); | ||||||
7 | |||||||
8 | 0 | 0 | 0 | sub status_code { 400 } | |||
9 | 0 | 0 | 0 | sub error { "Request parameter '@{[ $_[0]->param]}' is not indexed" } | |||
0 | |||||||
10 | |||||||
11 | __PACKAGE__->meta->make_immutable; |