API/Role/Clonable.pm

filter: Statementstmt 85.7% 12 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 84.2% 16 / 19 CC 1 SCAR 2.2
CC
1
Cov
86%
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 7 $CPAN::Index::API::Role::Clonable::VERSION = '0.007';
4 }
5  
6 # ABSTRACT: Clones index file objects
7  
8 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 7 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 sub clone
14 {
15 0 ▶ my ($self, %params) = @_;
Subroutine clone: not called CC=1 SCAR=6.9
Pod documented
16 0 $self->meta->clone_object($self, %params);
17 }
18  
19  
20 7 1;
21  
22 __END__
23 =pod
24  
25 =head1 NAME
26  
27 CPAN::Index::API::Role::Clonable - Clones index file objects
28  
29 =head1 VERSION
30  
31 version 0.007
32  
33 =head1 PROVIDES
34  
35 =head2 clone
36  
37 Clones the objecct. Parameters can be supplied as key/value paris to override
38 the values of existing attributes.
39  
40 =head1 AUTHOR
41  
42 Peter Shangov <pshangov@yahoo.com>
43  
44 =head1 COPYRIGHT AND LICENSE
45  
46 This software is copyright (c) 2012 by Venda, Inc..
47  
48 This is free software; you can redistribute it and/or modify it under
49 the same terms as the Perl 5 programming language system itself.
50  
51 =cut
52  
« API/File/MailRc.pm ↑ Summary API/Role/HavingGeneratedBy.pm »