File Coverage

blib/lib/CatalystX/RequestModel/Utils/InvalidRequestNamespace.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::InvalidRequestNamespace;
2            
3 6     6   46 use Moose;
  6         17  
  6         46  
4             with 'CatalystX::Utils::DoesHttpException';
5            
6             has 'ns' => (is=>'ro', required=>1);
7              
8 0     0 0   sub status_code { 400 }
9 0     0 0   sub error { "JSON Request does not have namespace: @{[ $_[0]->ns]}" }
  0            
10              
11             __PACKAGE__->meta->make_immutable;