File Coverage

blib/lib/Moose/Meta/Method/Accessor/Native/String/length.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 Moose::Meta::Method::Accessor::Native::String::length;
2             our $VERSION = '2.2203';
3              
4 2     2   1181 use strict;
  2         6  
  2         62  
5 2     2   14 use warnings;
  2         4  
  2         52  
6              
7 2     2   9 use Moose::Role;
  2         4  
  2         14  
8              
9             with 'Moose::Meta::Method::Accessor::Native::Reader';
10              
11 7     7   21 sub _maximum_arguments { 0 }
12              
13             sub _return_value {
14 7     7   19 my $self = shift;
15 7         17 my ($slot_access) = @_;
16              
17 7         71 return 'length ' . $slot_access;
18             }
19              
20 2     2   16 no Moose::Role;
  2         7  
  2         8  
21              
22             1;