File Coverage

blib/lib/Imager/Bing/MapLayer/Role/Misc.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 22 22 100.0


line stmt bran cond sub pod time code
1             package Imager::Bing::MapLayer::Role::Misc;
2              
3 3     3   2581 use v5.10;
  3         10  
  3         147  
4              
5 3     3   19 use Moose::Role;
  3         6  
  3         28  
6              
7 3     3   18008 use Moose::Util::TypeConstraints;
  3         7  
  3         27  
8              
9             =head1 NAME
10              
11             Imager::Bing::MapLayer::Role::Misc - misc shared attributions
12              
13             =cut
14              
15 3     3   6674 use version 0.77; our $VERSION = version->declare('v0.1.8');
  3         89  
  3         26  
16              
17             =head1 DESCRIPTION
18              
19             This role is for internal use by L<Imager::Bing::MapLayer>.
20              
21             =cut
22              
23             has 'combine' => (
24             is => 'ro',
25             isa => 'Str',
26             builder => '_build_combine',
27             );
28              
29 2     2   1687 sub _build_combine {'darken'}
30              
31             has 'in_memory' => (
32             is => 'ro',
33             isa => subtype( as 'Int', where { ( $_ >= 0 ) }, ),
34             default => 0,
35             );
36              
37 3     3   625 use namespace::autoclean;
  3         6  
  3         35  
38              
39             1;