blib/lib/Moose/Meta/Method/Accessor/Native/Counter/Writer.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 38 CC 1 SCAR 6.9
CC
1
Cov
0%
_constraint_must_be_checked
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Moose::Meta::Method::Accessor::Native::Counter::Writer;
2 our $VERSION = '2.4001';
3  
4 use strict;
5 use warnings;
6  
7 use Moose::Role;
8  
9 with 'Moose::Meta::Method::Accessor::Native::Writer';
10  
11 sub _constraint_must_be_checked {
12 my $self = shift;
13  
14 my $attr = $self->associated_attribute;
15  
16 return $attr->has_type_constraint
17 && ($attr->type_constraint->name =~ /^(?:Num|Int)$/
18 || ($attr->should_coerce && $attr->type_constraint->has_coercion)
19 );
20 }
21  
22 no Moose::Role;
23  
24 1;