File Coverage

blib/lib/Moose/Meta/Method/Accessor/Native/Bool/unset.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 24 24 100.0


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