Mongol.pm

filter: Statementstmt 66.6% 12 / 18 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 55.1% 16 / 29 CC 4 SCAR 24.7
CC
4
Cov
50%
map_entities
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 11.9
↑ Summary Mongol/Roles/Pagination.pm »
1 package Mongol;
2  
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Moose::Util qw( does_role );
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Class::Load qw( load_class );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 our $VERSION = '2.4';
9  
10 0 ▶sub map_entities {
Subroutine map_entities: not called CC=4 SCAR=30.0
Pod documented
11 0 my ( $class, $connection, %entities ) = @_;
12  
13 0 ▶ while( my ( $name, $namespace ) = each( %entities ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %entities) 0 0 0
14 0 my $package = load_class( $name );
15  
16 0 ▶ if( does_role( $package, 'Mongol::Roles::Core' ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (does_role($package, "Mongol::Roles::Core")) 0 0 0
17 0 $package->collection( $connection->get_namespace( $namespace ) );
18  
19 0 ▶ $package->setup()
Branch: 1 branch
BranchTrueFalseTotal
if $package->can("setup") 0 0 0
20 if( $package->can( 'setup' ) );
21 }
22 }
23 }
24  
25 1 __PACKAGE__->meta()->make_immutable();
26  
27 1 1;
28  
29 __END__
↑ Summary Mongol/Roles/Pagination.pm »