File Coverage

blib/lib/Moose/Meta/Method/Accessor/Native/Number/set.pm
Criterion Covered Total %
statement 15 18 83.3
branch n/a
condition n/a
subroutine 7 8 87.5
pod n/a
total 22 26 84.6


line stmt bran cond sub pod time code
1             package Moose::Meta::Method::Accessor::Native::Number::set;
2             our $VERSION = '2.2206';
3              
4 2     2   1230 use strict;
  2         6  
  2         64  
5 2     2   11 use warnings;
  2         4  
  2         55  
6              
7 2     2   18 use Moose::Role;
  2         5  
  2         13  
8              
9             with 'Moose::Meta::Method::Accessor::Native::Writer';
10              
11 7     7   24 sub _minimum_arguments { 1 }
12 7     7   24 sub _maximum_arguments { 1 }
13              
14 7     7   19 sub _potential_value { '$_[0]' }
15              
16             sub _inline_optimized_set_new_value {
17 0     0     my $self = shift;
18 0           my ($inv, $new, $slot_access) = @_;
19              
20 0           return $slot_access . ' = $_[0];';
21             }
22              
23 2     2   16 no Moose::Role;
  2         9  
  2         15  
24              
25             1;