Spore/Meta.pm

filter: Statementstmt 85.7% 18 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 2 totaltotal 78.5% 22 / 28 CC 1 SCAR 1.8
CC
1
Cov
86%
spore_method
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Spore/Middleware/Format/YAML.pm ↑ Summary Spore/Role/Description.pm »
1 package Net::HTTP::Spore::Meta;
2  
3 # ABSTRACT: Meta class for all SPORE object
4  
5 26 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 26 ▶use Moose::Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 26 ▶use Moose::Util::MetaRole;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 26 our $VERSION = '0.14';
10  
11 26 Moose::Exporter->setup_import_methods(
12 with_meta => [qw/spore_method/],
13 also => [qw/Moose/]
14 );
15  
16 0 ▶sub spore_method {
Subroutine spore_method: not called CC=1 SCAR=6.9
Pod undocumented
17 0 my $meta = shift;
18 0 my $name = shift;
19 0 $meta->add_spore_method($name, @_);
20 }
21  
22 25 ▶sub init_meta {
Subroutine init_meta: called CC=1 SCAR=0.0
Pod undocumented
23 25 my ($class, %options) = @_;
24  
25 25 my $for = $options{for_class};
26 25 Moose->init_meta(%options);
27  
28 25 my $meta = Moose::Util::MetaRole::apply_metaroles(
29 for => $for,
30 class_metaroles => {
31 class => ['Net::HTTP::Spore::Meta::Class'],
32 },
33 );
34  
35 25 Moose::Util::MetaRole::apply_base_class_roles(
36 for => $for,
37 roles => [
38 qw/
39 Net::HTTP::Spore::Role::Debug
40 Net::HTTP::Spore::Role::Description
41 Net::HTTP::Spore::Role::UserAgent
42 Net::HTTP::Spore::Role::Request
43 Net::HTTP::Spore::Role::Middleware
44 /
45 ],
46 );
47  
48 25 $meta;
49 };
50  
51 26 1;
52  
53 __END__
« Spore/Middleware/Format/YAML.pm ↑ Summary Spore/Role/Description.pm »