File Coverage

blib/lib/Mojito/Role/DB.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1 1     1   169113 use strictures 1;
  1         11  
  1         34  
2             package Mojito::Role::DB;
3             {
4             $Mojito::Role::DB::VERSION = '0.24';
5             }
6 1     1   148 use Moo::Role;
  1         2  
  1         7  
7 1     1   1154 use Mojito::Model::Config;
  1         3  
  1         93  
8              
9             my $doc_storage = ucfirst lc Mojito::Model::Config->new->config->{document_storage};
10             my $Role = __PACKAGE__ . '::' . $doc_storage;
11             with($Role);
12              
13             1;