Spore/Role/Description.pm

filter: Statementstmt 94.7% 18 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 91.6% 22 / 24 CC 1 SCAR 1.8
CC
1
Cov
95%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Spore/Meta.pm ↑ Summary Spore/Middleware/DoNotTrack.pm »
1 package Net::HTTP::Spore::Role::Description;
2 26 $Net::HTTP::Spore::Role::Description::VERSION = '0.09';
3 # ABSTRACT: attributes for API description
4  
5 26 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 26 ▶use MooseX::Types::Moose qw/ArrayRef/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 26 ▶use MooseX::Types::URI qw/Uri/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 26 ▶use Net::HTTP::Spore::Meta::Types qw/Boolean/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 26 has base_url => (
11 is => 'rw',
12 isa => Uri,
13 coerce => 1,
14 required => 1,
15 );
16  
17 26 has formats => (
18 is => 'rw',
19 isa => ArrayRef,
20 predicate => 'has_formats',
21 );
22  
23 26 has authentication => (
24 is => 'rw',
25 isa => Boolean,
26 predicate => 'has_authentication',
27 coerce => 1,
28 );
29  
30 has expected_status => (
31 is => 'rw',
32 isa => ArrayRef,
33 lazy => 1,
34 0 ▶ default => sub { [] },
Subroutine __ANON__: not called CC=1 SCAR=6.9
35 26 );
36  
37 26 1;
38  
39 __END__
« Spore/Meta.pm ↑ Summary Spore/Middleware/DoNotTrack.pm »