blib/lib/Moose/Meta/Method/Accessor/Native/String/match.pm

filter: Statementstmt 100% 28 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod n/a totaltotal 100% 38 / 38 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Moose/Meta/Method/Accessor/Native/String/length.pm ↑ Summary blib/lib/Moose/Meta/Method/Accessor/Native/String/prepend.pm »
1 package Moose::Meta::Method::Accessor::Native::String::match;
2 3 our $VERSION = '2.4001';
3  
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use Moose::Util ();
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Params::Util ();
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 3 with 'Moose::Meta::Method::Accessor::Native::Reader';
13  
14 15 ▶sub _minimum_arguments { 1 }
Subroutine _minimum_arguments: called CC=1 SCAR=0.0
15  
16 15 ▶sub _maximum_arguments { 1 }
Subroutine _maximum_arguments: called CC=1 SCAR=0.0
17  
18 15 ▶sub _inline_check_arguments {
Subroutine _inline_check_arguments: called CC=1 SCAR=0.0
19 15 my $self = shift;
20  
21 return (
22 15 'if (!Moose::Util::_STRINGLIKE0($_[0]) && !Params::Util::_REGEX($_[0])) {',
23 $self->_inline_throw_exception( InvalidArgumentToMethod =>
24 'argument => $_[0],'.
25 'type => "Str|RegexpRef",'.
26 'type_of_argument => "string or regexp reference",'.
27 'method_name => "match"',
28 ) . ';',
29 '}',
30 );
31 }
32  
33 15 ▶sub _return_value {
Subroutine _return_value: called CC=1 SCAR=0.0
34 15 my $self = shift;
35 15 my ($slot_access) = @_;
36  
37 15 return $slot_access . ' =~ $_[0]';
38 }
39  
40 3 ▶no Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
41  
42 3 1;
« blib/lib/Moose/Meta/Method/Accessor/Native/String/length.pm ↑ Summary blib/lib/Moose/Meta/Method/Accessor/Native/String/prepend.pm »