API/Role/Clonable.pm

filter: Statementstmt 84.6% 11 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 83.3% 15 / 18 CC 1 SCAR 2.2
CC
1
Cov
85%
clone
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« API/File/MailRc.pm ↑ Summary API/Role/HavingGeneratedBy.pm »
1 package CPAN::Index::API::Role::Clonable;
2  
3 3 our $VERSION = '0.008';
4  
5 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 sub clone
11 0 ▶{
Subroutine clone: not called CC=1 SCAR=6.9
Pod documented
12 0 my ($self, %params) = @_;
13 0 $self->meta->clone_object($self, %params);
14 }
15  
16 =pod
17  
18 =encoding UTF-8
19  
20 =head1 NAME
21  
22 CPAN::Index::Role::Clonable - Clones index file objects
23  
24 =head1 PROVIDES
25  
26 =head2 clone
27  
28 Clones the object. Parameters can be supplied as key/value pairs to override
29 the values of existing attributes.
30  
31 =cut
32  
33 3 1;
« API/File/MailRc.pm ↑ Summary API/Role/HavingGeneratedBy.pm »