File Coverage

blib/lib/Moose/Meta/Method/Accessor/Native/Number/mod.pm
Criterion Covered Total %
statement 17 20 85.0
branch n/a
condition n/a
subroutine 7 8 87.5
pod n/a
total 24 28 85.7


line stmt bran cond sub pod time code
1             package Moose::Meta::Method::Accessor::Native::Number::mod;
2             our $VERSION = '2.2206';
3              
4 2     2   1279 use strict;
  2         6  
  2         67  
5 2     2   11 use warnings;
  2         5  
  2         59  
6              
7 2     2   12 use Moose::Role;
  2         5  
  2         14  
8              
9             with 'Moose::Meta::Method::Accessor::Native::Writer';
10              
11 14     14   48 sub _minimum_arguments { 1 }
12              
13 14     14   49 sub _maximum_arguments { 1 }
14              
15             sub _potential_value {
16 14     14   33 my $self = shift;
17 14         35 my ($slot_access) = @_;
18              
19 14         42 return $slot_access . ' % $_[0]';
20             }
21              
22             sub _inline_optimized_set_new_value {
23 0     0     my $self = shift;
24 0           my ($inv, $new, $slot_access) = @_;
25              
26 0           return $slot_access . ' %= $_[0];';
27             }
28              
29 2     2   16 no Moose::Role;
  2         5  
  2         10  
30              
31             1;